20static const CLSID CLSID_FontExt = { 0xBD84B380, 0x8CA2, 0x1069, { 0xAB, 0x1D, 0x08, 0x00, 0x09, 0x48, 0xF5, 0x34 } };
26 CComHeapPtr<ITEMIDLIST> pidl;
27 CComPtr<IShellFolder> spDesktop;
40 return spFolder->Initialize(pidl);
48 CComPtr<IPersistFolder> spFolder;
76 CComPtr<IShellFolder> spShellFolder;
81 trace(
"Got IShellFolder on < Vista, faking 0x601\n");
89 CComPtr<IShellView> spView;
94 CComPtr<IShellFolder> spShellFolder;
101 CComPtr<IObjectWithSite> spObjectWithSite;
105 CComPtr<IInternetSecurityManager> spISM;
111 CComPtr<IDropTarget> spDropTarget;
115 CComPtr<IExtractIconW> spExtractIcon;
122 CComPtr<IShellFolder> spShellFolder;
127 CComPtr<IShellView> spView;
133 CComPtr<IDropTarget> spDropTarget;
137 CComPtr<IExtractIconW> spExtractIcon;
146 CComPtr<IDropTarget> spDropTarget;
155 CComPtr<IExtractIconA> spExtractIconA;
159 CComPtr<IExtractIconW> spExtractIconW;
165 CComPtr<IExtractIconA> spExtractIconA;
169 CComPtr<IExtractIconW> spExtractIconW;
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
PRTL_UNICODE_STRING_BUFFER Path
#define ok_hex(expression, result)
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI SHGetFolderPathW(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
@ COINIT_APARTMENTTHREADED
#define _WIN32_WINNT_WIN7
#define _WIN32_WINNT_VISTA
static void CreateDropTarget()
static void CreateObjectsFromPersistFolder()
static void CreateExtractIcon()
static const CLSID CLSID_FontExt
static DWORD g_WinVersion
ULONG dwOSVersionInfoSize
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
#define IID_PPV_ARG(Itype, ppType)