1 #ifndef FONTEXT_PRECOMP_H
2 #define FONTEXT_PRECOMP_H
5 #define WIN32_NO_STATUS
6 #define COM_NO_WINDOWS_H
19 #include <wine/debug.h>
20 #include <shellutils.h>
22 extern const GUID CLSID_CFontExt
;
23 extern LONG g_ModuleRefCnt
;
26 #include "fontpidl.hpp"
27 #include "CFontCache.hpp"
28 #include "CFontExt.hpp"
30 #define FONT_HIVE HKEY_LOCAL_MACHINE
31 #define FONT_KEY L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
33 HRESULT
_CEnumFonts_CreateInstance(CFontExt
* zip
, DWORD flags
, REFIID riid
, LPVOID
* ppvOut
);
34 HRESULT
_CFontMenu_CreateInstance(HWND hwnd
, UINT cidl
, PCUITEMID_CHILD_ARRAY apidl
,
35 IShellFolder
*psf
, REFIID riid
, LPVOID
* ppvOut
);
36 HRESULT
_CDataObject_CreateInstance(PCIDLIST_ABSOLUTE folder
, UINT cidl
, PCUITEMID_CHILD_ARRAY apidl
,
37 REFIID riid
, LPVOID
* ppvOut
);
39 HRESULT
_GetCidlFromDataObject(IDataObject
*pDataObject
, CIDA
** ppcida
);
41 inline BOOL
IsFontDotExt(LPCWSTR pchDotExt
)
43 static const LPCWSTR array
[] =
45 L
".ttf", L
".ttc", L
".otf", L
".otc", L
".fon", L
".fnt", NULL
47 for (const LPCWSTR
*pp
= array
; *pp
; ++pp
)
49 if (!_wcsicmp(*pp
, pchDotExt
))
55 #endif /* FONTEXT_PRECOMP_H */