27 #define WINVER_VISTA 0x0600 30 #define ok_hr(status, expected) ok_hex(status, expected) 33 #define test_at_end (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_at_end_imp 34 #define test_ExpectDrives (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_ExpectDrives_imp 35 #define test_ExpectFolders (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_ExpectFolders_imp 36 #define winetest_ok_hr(expression, expected) \ 38 int _value = (expression); \ 39 winetest_ok(_value == (expected), "Wrong value for '%s', expected: " #expected " (0x%x), got: 0x%x\n", \ 40 #expression, (int)(expected), _value); \ 48 CComHeapPtr<OLECHAR>
Result;
49 ULONG Fetched = 12345;
52 winetest_ok(Fetched == 0
u,
"Expected Fetched to be 0, was: %lu\n", Fetched);
57 static bool GetDisplayname(CComPtr<IShellFolder>& spDrives, CComHeapPtr<ITEMIDLIST>& pidl, CComHeapPtr<WCHAR>& DisplayName)
90 CComPtr<IShellFolder> spDesktop;
93 CComPtr<IShellFolder> spTarget;
102 spTarget = spDesktop;
105 SHCONTF EnumFlags = SHCONTF_FOLDERS | SHCONTF_INIT_ON_FIRST_NEXT;
107 EnumFlags |= SHCONTF_INCLUDEHIDDEN;
109 EnumFlags |= SHCONTF_NONFOLDERS;
111 CComPtr<IEnumIDList> spEnumIDList;
117 CComHeapPtr<ITEMIDLIST> pidl;
119 while (spEnumIDList->Next(1, &pidl,
NULL) ==
S_OK)
121 CComHeapPtr<WCHAR> DisplayName;
125 CComHeapPtr<OLECHAR>
Result;
127 hr = EnumStr->Next(1, &
Result, &Fetched);
157 CComPtr<IEnumString> EnumStr;
163 CComPtr<IACList2> ACList;
164 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
176 CComHeapPtr<ITEMIDLIST> pidlDiskRoot;
193 CComPtr<IEnumString> EnumStr;
199 CComPtr<IACList2> ACList;
200 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
204 CComPtr<ICurrentWorkingDirectory> CurrentWorkingDir;
205 ok_hr(
hr = EnumStr->QueryInterface(IID_ICurrentWorkingDirectory, (
void**)&CurrentWorkingDir),
S_OK);
223 CComHeapPtr<ITEMIDLIST> pidlDiskRoot;
228 ok_hr(
hr = CurrentWorkingDir->SetDirectory(Buffer2),
S_OK);
243 ok_hr(
hr = CurrentWorkingDir->SetDirectory(Buffer2),
S_OK);
267 CComPtr<IACList2> ACList;
274 DWORD CurrentOption = 0xdeadbeef;
275 ok_hr(ACList->GetOptions(&CurrentOption),
S_OK);
280 CComPtr<IEnumString> EnumStr;
285 CComPtr<IPersistFolder> PersistFolder;
290 CComHeapPtr<ITEMIDLIST> pidlMyComputer;
296 hr = EnumStr->Reset();
311 CComHeapPtr<ITEMIDLIST> pidlDiskRoot;
337 CComPtr<IEnumString> EnumStr;
343 CComPtr<IACList2> ACList;
344 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
355 CComPtr<IEnumString> EnumStr;
361 CComPtr<IACList2> ACList;
362 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
366 CComHeapPtr<ITEMIDLIST> pidlFavorites;
378 CComPtr<IEnumString> EnumStr;
384 CComPtr<IACList2> ACList;
385 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
393 CComHeapPtr<ITEMIDLIST> pidlDiskRoot;
408 CComPtr<IEnumString> EnumStr;
414 CComPtr<IACList2> ACList;
415 ok_hr(
hr = EnumStr->QueryInterface(IID_IACList2, (
void**)&ACList),
S_OK);
423 CComHeapPtr<ITEMIDLIST> pidlDiskRoot;
442 pRtlGetVersion(&rtlinfo);
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 * u
#define ok_hr(status, expected)
static void test_ACListISF_MYCOMPUTER()
ULONG dwOSVersionInfoSize
UINT WINAPI GetSystemWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
static bool GetDisplayname(CComPtr< IShellFolder > &spDrives, CComHeapPtr< ITEMIDLIST > &pidl, CComHeapPtr< WCHAR > &DisplayName)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
static void GetEnvStatus()
#define test_ExpectFolders
const GUID IID_IEnumString
static void test_ACListISF_FILESYSDIRS()
ExpectOptions operator|(const ExpectOptions &left, const ExpectOptions &right)
ULONG DbgPrint(PCH Format,...)
static void test_ACListISF_NONE()
char * wine_dbgstr_w(const wchar_t *wstr)
return static_cast< int >(global)
static void test_ACListISF_FILESYSONLY()
static void test_ACListISF_DESKTOP()
#define IID_PPV_ARG(Itype, ppType)
static void test_ExpectDrives_imp(CComPtr< IEnumString > &EnumStr, CComHeapPtr< ITEMIDLIST > &pidlTarget)
#define test_ExpectDrives
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
static void test_ACListISF_FAVORITES()
#define SSF_SHOWALLOBJECTS
root entry for file system trees
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
void __winetest_cdecl winetest_ok(int condition, const char *msg,...)
static void test_at_end_imp(CComPtr< IEnumString > &EnumStr)
HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDLIST *ppidl)
static void test_ACListISF_CURRENTDIR()
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
static void test_ExpectFolders_imp(CComPtr< IEnumString > &EnumStr, LPITEMIDLIST pidlTarget, const WCHAR *Root, ExpectOptions options)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
#define winetest_ok_hr(expression, expected)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
HRESULT WINAPI SHParseDisplayName(LPCWSTR pszName, IBindCtx *pbc, LPITEMIDLIST *ppidl, SFGAOF sfgaoIn, SFGAOF *psfgaoOut)
VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
static DWORD g_WinVersion
#define GetProcAddress(x, y)
nsresult QueryInterface(nsIIDRef riid, void **result)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
HRESULT WINAPI StrRetToStrW(LPSTRRET lpStrRet, const ITEMIDLIST *pidl, LPWSTR *ppszName)