17#define SHORT_SIGN_BIT 0x8000
45#define compare (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : compare_imp
53 CComHeapPtr<ITEMIDLIST> desktop;
61 CComHeapPtr<ITEMIDLIST> internet;
76 CComPtr<IPersistFolder2> persist;
81 CComHeapPtr<ITEMIDLIST>
cur;
82 hr = persist->GetCurFolder(&
cur);
89 CComHeapPtr<ITEMIDLIST> dir1, dir2;
105 CComHeapPtr<ITEMIDLIST> dir3, dir4;
132 CComPtr<IShellFolder> psf2;
134 ok(
hr ==
S_OK,
"Impossible to bind to Programs pidl");
153 CComPtr<IDropTarget> pdt;
154 CComPtr<IDropTarget> pdt_2;
155 CComPtr<IContextMenu> pcm;
156 CComPtr<IContextMenu> pcm_2;
157 CComPtr<IShellView> psv;
158 CComPtr<IShellView> psv_2;
165 ok(pdt != pdt_2,
"Expected %p != %p\n",
static_cast<PVOID>(pdt),
static_cast<PVOID>(pdt_2));
172 ok(pcm != pcm_2,
"Expected %p != %p\n",
static_cast<PVOID>(pcm),
static_cast<PVOID>(pcm_2));
179 ok(psv != psv_2,
"Expected %p != %p\n",
static_cast<PVOID>(psv),
static_cast<PVOID>(psv_2));
182 hr = psf2->GetDisplayNameOf(
NULL, 0, &strret);
188 CComPtr<IPersistFolder2> ppf2;
194 testpidl->mkid.cb = 2 *
sizeof(
WORD);
195 *(
WORD*)((
char*)testpidl + (
int)(2 *
sizeof(
WORD))) = 0;
197 hr = ppf2->Initialize(testpidl);
208 CComHeapPtr<ITEMIDLIST> pidl;
209 hr = ppf2->GetCurFolder(&pidl);
211 ok(pidl->mkid.cb == 0,
"expected empty pidl got cb = %x\n", pidl->mkid.cb);
217 CComPtr<IShellFolder2> psf2;
218 CComPtr<IShellFolder2> psf2_2;
219 CComPtr<IShellFolder> psf;
225 CLSCTX_INPROC_SERVER,
230 skip(
"Could not instantiate CShellDesktop\n");
237 CLSCTX_INPROC_SERVER,
240 ok(psf2 == psf2_2,
"Expected %p == %p\n",
static_cast<PVOID>(psf2),
static_cast<PVOID>(psf2_2));
245 ok(psf ==
static_cast<IShellFolder *
>(psf2),
"Expected %p == %p\n",
static_cast<PVOID>(psf),
static_cast<PVOID>(psf2));
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
static VOID TestCompareIDList(IShellFolder *psf)
static VOID compare_imp(IShellFolder *psf, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2, HRESULT expected)
static VOID TestDesktopFolder(_In_ IShellFolder2 *psf2)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
LPVOID WINAPI SHAlloc(SIZE_T len)
HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
#define EXCEPTION_EXECUTE_HANDLER
HRESULT BindToObject([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
HRESULT CompareIDs([in] LPARAM lParam, [in] PCUIDLIST_RELATIVE pidl1, [in] PCUIDLIST_RELATIVE pidl2)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
@ COINIT_APARTMENTTHREADED
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
void __winetest_cdecl winetest_ok(int condition, const char *msg,...)
VOID PathToIDList(LPCWSTR pszPath, ITEMIDLIST **ppidl)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
#define HRESULT_FROM_WIN32(x)
#define IID_PPV_ARG(Itype, ppType)