Support unrar64.dll
[xy_vsfilter.git] / src / dsutil / FontInstaller.h
blob60d1e77e10227cfeaca62ac6f8372431a1e7a0bb
1 #pragma once
3 #include <atlcoll.h>
5 class CFontInstaller
7 HANDLE (WINAPI *pAddFontMemResourceEx)(PVOID,DWORD,PVOID,DWORD*);
8 BOOL (WINAPI *pRemoveFontMemResourceEx)(HANDLE);
9 int (WINAPI *pAddFontResourceEx)(LPCTSTR,DWORD,PVOID);
10 BOOL (WINAPI *pRemoveFontResourceEx)(LPCTSTR,DWORD,PVOID);
11 BOOL (WINAPI *pMoveFileEx)(LPCTSTR, LPCTSTR,DWORD);
13 CAtlList<HANDLE> m_fonts;
14 CAtlList<CString> m_files;
15 bool InstallFontMemory(const void* pData, UINT len);
16 bool InstallFontFile(const void* pData, UINT len);
18 public:
19 CFontInstaller();
20 virtual ~CFontInstaller();
22 bool InstallFont(const CAtlArray<BYTE>& data);
23 bool InstallFont(const void* pData, UINT len);
24 void UninstallFonts();