20 testpidl->mkid.cb = 2 *
sizeof(
WORD);
21 *(
WORD*)((
char*)testpidl + (
int)(2 *
sizeof(
WORD))) = 0;
28 CComPtr<IShellFolder> psf;
29 CComPtr<IEnumIDList> penum;
30 CComPtr<IDropTarget> pdt;
31 CComPtr<IContextMenu> pcm;
32 CComPtr<IShellView> psv;
42 hr = psf->EnumObjects(
NULL, 0, &penum);
44 hr = penum->Next(0, &retrievedPidl, &pceltFetched);
46 hr = penum->Next(1, &retrievedPidl, &pceltFetched);
59 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING,&strretName);
64 "wrong name, got: %S\n", strretName.
pOleStr);
66 "wrong name, got: %S\n", strretName.
pOleStr);
68 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING|SHGDN_INFOLDER,&strretName);
75 CComPtr<IPersistFolder2> ppf2;
81 hr = ppf2->Initialize(testpidl);
84 CComHeapPtr<ITEMIDLIST> pidl;
85 hr = ppf2->GetCurFolder(&pidl);
87 ok(pidl->mkid.cb == 2 *
sizeof(
WORD),
"got wrong pidl size, cb = %x\n", pidl->mkid.cb);
90 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING,&strretName);
92 hr = psf->EnumObjects(
NULL, 0, &penum);
111 CComPtr<IShellFolder> psf;
115 CComPtr<IPersistFolder3> ppf3;
120 PERSIST_FOLDER_TARGET_INFO pfti = {0};
121 PERSIST_FOLDER_TARGET_INFO queriedPfti;
128 wcscpy(pfti.szTargetParsingName,
L"C:\\");
132 hr = ppf3->InitializeEx(
NULL, testpidl,
NULL);
135 hr = ppf3->GetFolderTargetInfo(&queriedPfti);
138 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING,&strretName);
141 pfti.szTargetParsingName[0] = 0;
142 hr = ppf3->InitializeEx(
NULL, testpidl, &pfti);
145 hr = ppf3->GetFolderTargetInfo(&queriedPfti);
147 ok(
wcscmp(queriedPfti.szTargetParsingName,
L"") == 0,
"wrong name, got: %S\n", queriedPfti.szTargetParsingName);
149 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING,&strretName);
152 wcscpy(pfti.szTargetParsingName,
L"C:\\");
153 hr = ppf3->InitializeEx(
NULL, testpidl, &pfti);
156 hr = ppf3->GetFolderTargetInfo(&queriedPfti);
158 ok(
wcscmp(queriedPfti.szTargetParsingName,
L"C:\\") == 0,
"wrong name, got: %S\n", queriedPfti.szTargetParsingName);
160 hr = psf->GetDisplayNameOf(
NULL,SHGDN_FORPARSING,&strretName);
171 CComPtr<IShellFolder> psf;
176 CComPtr<IDataObject> pdo;
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)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
LPITEMIDLIST _CreateDummyPidl()
@ COINIT_APARTMENTTHREADED
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
VERSIONHELPERAPI IsWindows7OrGreater()
#define HRESULT_FROM_WIN32(x)
#define IID_PPV_ARG(Itype, ppType)
#define IID_NULL_PPV_ARG(Itype, ppType)