ReactOS  0.4.15-dev-2103-g9dff498
precomp.h
Go to the documentation of this file.
1 #ifndef FONTEXT_PRECOMP_H
2 #define FONTEXT_PRECOMP_H
3 
4 
5 #define WIN32_NO_STATUS
6 #define COM_NO_WINDOWS_H
7 
8 #include <windef.h>
9 #include <winbase.h>
10 #include <winreg.h>
11 #include <shlobj.h>
12 #include <shlwapi.h>
13 #include <tchar.h>
14 #include <strsafe.h>
15 #include <atlbase.h>
16 #include <atlcom.h>
17 #include <atlcoll.h>
18 #include <atlstr.h>
19 #include <wine/debug.h>
20 #include <shellutils.h>
21 
22 extern const GUID CLSID_CFontExt;
23 extern LONG g_ModuleRefCnt;
24 
25 #include "resource.h"
26 #include "fontpidl.hpp"
27 #include "CFontCache.hpp"
28 #include "CFontExt.hpp"
29 
30 #define FONT_HIVE HKEY_LOCAL_MACHINE
31 #define FONT_KEY L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
32 
35  IShellFolder *psf, REFIID riid, LPVOID* ppvOut);
37  REFIID riid, LPVOID* ppvOut);
38 
39 HRESULT _GetCidlFromDataObject(IDataObject *pDataObject, CIDA** ppcida);
40 
41 inline BOOL IsFontDotExt(LPCWSTR pchDotExt)
42 {
43  static const LPCWSTR array[] =
44  {
45  L".ttf", L".ttc", L".otf", L".otc", L".fon", L".fnt", NULL
46  };
47  for (const LPCWSTR *pp = array; *pp; ++pp)
48  {
49  if (!_wcsicmp(*pp, pchDotExt))
50  return TRUE;
51  }
52  return FALSE;
53 }
54 
55 #endif /* FONTEXT_PRECOMP_H */
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define REFIID
Definition: guiddef.h:118
Definition: fci.c:115
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define TRUE
Definition: types.h:120
REFIID riid
Definition: precomp.h:44
HRESULT _CFontMenu_CreateInstance(HWND hwnd, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IShellFolder *psf, REFIID riid, LPVOID *ppvOut)
Definition: CFontMenu.cpp:137
HRESULT _GetCidlFromDataObject(IDataObject *pDataObject, CIDA **ppcida)
Definition: CFontMenu.cpp:14
#define FALSE
Definition: types.h:117
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
Definition: shtypes.idl:71
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
BOOL IsFontDotExt(LPCWSTR pchDotExt)
Definition: precomp.h:41
LONG g_ModuleRefCnt
Definition: ACPPage.cpp:13
HRESULT _CEnumFonts_CreateInstance(CFontExt *zip, DWORD flags, REFIID riid, LPVOID *ppvOut)
Definition: CEnumFonts.cpp:87
LONG HRESULT
Definition: typedefs.h:79
HRESULT _CDataObject_CreateInstance(PCIDLIST_ABSOLUTE folder, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, LPVOID *ppvOut)
Definition: CDataObject.cpp:38
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
static const WCHAR L[]
Definition: oid.c:1250
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
const GUID CLSID_CFontExt
Definition: fontext.cpp:12
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Definition: shlobj.h:498