21static const CLSID CLSID_FontExt = { 0xBD84B380, 0x8CA2, 0x1069, { 0xAB, 0x1D, 0x08, 0x00, 0x09, 0x48, 0xF5, 0x34 } };
46 CComPtr<IShellFolder> desktopFolder;
52 CComHeapPtr<ITEMIDLIST> pidl;
64 CComPtr<IShellFolder> psfParent;
71 return GetDisplayName(psfParent, pidlRelative, SHGDN_NORMAL, FolderName);
76 CComPtr<IEnumIDList> fontsEnum;
77 HRESULT hr = spFolder->EnumObjects(
NULL, SHCONTF_NONFOLDERS, &fontsEnum);
83 CComHeapPtr<ITEMIDLIST> fontPidl;
87 hr = fontsEnum->Next(1, &fontPidl, &fetched);
166 ok(!
_wcsnicmp(FolderName, Buf,
wcslen(FolderName)),
"Result (%s) does not start with fonts folder (%s)\n",
179 CComPtr<IShellView> spView;
188 CComPtr<IShellFolder> spFolder;
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
static void Test_GetDisplayNameOf(void)
PRTL_UNICODE_STRING_BUFFER Path
#define ok_hex(expression, result)
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)
LPWSTR WINAPI PathFindNextComponentW(LPCWSTR lpszPath)
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
HRESULT WINAPI StrRetToBufW(LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, UINT len)
static HRESULT GetDisplayName(CComPtr< IShellFolder > &spFolder, LPCITEMIDLIST pidlRelative, SHGDNF uFlags, WCHAR Buf[MAX_PATH])
static BOOL g_bVistaWorkaround
static const CLSID CLSID_FontExt
static BOOL g_bFontFolderWithShellView
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
@ COINIT_APARTMENTTHREADED
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
VERSIONHELPERAPI IsWindows7OrGreater()
VERSIONHELPERAPI IsWindowsVistaOrGreater()
#define IID_PPV_ARG(Itype, ppType)