21#define SUBKEY0 L"Software\\MRUListTest"
22#define SUBSUBKEY0 L"Software\\MRUListTest\\0"
23#define TEXT0 L"This is a test."
24#define TEXT1 L"ReactOS rocks!"
30 UINT iSlot1, iSlot2, iSlot3;
39 skip(
"pList was NULL\n");
55 cbText =
sizeof(szText);
107 skip(
"pList was NULL\n");
141 skip(
"pList was NULL\n");
149 DWORD cbText =
sizeof(szText);
156 cbText =
sizeof(szText);
168 skip(
"Vista+ doesn't support CLSID_MruLongList\n");
220 skip(
"pList was NULL\n");
239 UINT uNodeSlot1 = 0xDEADFACE;
240 hr =
pList->UsePidl(pidl1, &uNodeSlot1);
249 UINT uNodeSlot2 = 0xDEADFACE;
250 hr =
pList->UsePidl(pidl2, &uNodeSlot2);
272 UINT anNodeSlot[2], cNodeSlots;
273 FillMemory(anNodeSlot,
sizeof(anNodeSlot), 0xCC);
275 hr =
pList->QueryPidl(pidl1,
_countof(anNodeSlot), anNodeSlot, &cNodeSlots);
278 ok_int(anNodeSlot[1], 0xCCCCCCCC);
292 FillMemory(anNodeSlot,
sizeof(anNodeSlot), 0xCC);
294 hr =
pList->QueryPidl(pidl1, 0, anNodeSlot, &cNodeSlots);
296 ok_int(anNodeSlot[0], 0xCCCCCCCC);
297 ok_int(anNodeSlot[1], 0xCCCCCCCC);
300 FillMemory(anNodeSlot,
sizeof(anNodeSlot), 0xCC);
302 hr =
pList->QueryPidl(pidl1,
_countof(anNodeSlot), anNodeSlot, &cNodeSlots);
305 ok_int(anNodeSlot[1], 0xCCCCCCCC);
308 FillMemory(anNodeSlot,
sizeof(anNodeSlot), 0xCC);
310 hr =
pList->QueryPidl(pidl2,
_countof(anNodeSlot), anNodeSlot, &cNodeSlots);
313 ok_int(anNodeSlot[1], 0xCCCCCCCC);
325 skip(
"Vista+ doesn't support CLSID_MruPidlList\n");
static void MRUList_DataList_1(void)
static void MRUList_DataList_0(void)
static void MRUList_DataList(void)
static void MRUList_PidlList(void)
static void MRUList_DataList_2(void)
static INT MRUList_Check(LPCWSTR pszSubKey, LPCWSTR pszValueName, LPCVOID pvData, DWORD cbData)
static void MRUList_PidlList_0(void)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ok_hex(expression, result)
#define ok_long(expression, result)
#define ok_int(expression, result)
virtual ULONG Release(__in_opt PVOID Tag=NULL, __in LONG Line=0, __in_opt PSTR File=NULL)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDLIST *ppidl)
DWORD WINAPI SHDeleteValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue)
DWORD WINAPI SHDeleteKeyW(HKEY hKey, LPCWSTR lpszSubKey)
DWORD WINAPI SHGetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
#define FillMemory(BUF, SIZ, MASK)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define ERROR_FILE_NOT_FOUND
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
void WINAPI ILFree(LPITEMIDLIST pidl)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
VERSIONHELPERAPI IsWindowsVistaOrGreater()
_In_ ULONG _In_opt_ PVOID pvData
#define HKEY_CURRENT_USER