merged from 2009/0219
[ezgdi.git] / contrib / hooklist.h
blob42655c7730aa2545bb084b321f5b28c7d1ad3991
1 // ‚±‚±‚ɃtƒbƒN‚·‚éAPI‚ð—ñ‹“‚µ‚Ä‚¢‚­�B
2 // ORIG_foo ‚ðŽg‚¢‚‚Â�AIMPL_foo ‚ðŽÀ‘•‚·‚邱‚Æ�B
4 /*
5 HOOK_DEFINE(DWORD, GetTabbedTextExtentA, (HDC hdc, LPCSTR lpString, int nCount, int nTabPositions, CONST LPINT lpnTabStopPositions))
6 HOOK_DEFINE(DWORD, GetTabbedTextExtentW, (HDC hdc, LPCWSTR lpString, int nCount, int nTabPositions, CONST LPINT lpnTabStopPositions))
8 HOOK_DEFINE(BOOL, GetTextExtentExPointA, (HDC hdc, LPCSTR lpszStr, int cchString, int nMaxExtent, LPINT lpnFit, LPINT lpDx, LPSIZE lpSize))
9 HOOK_DEFINE(BOOL, GetTextExtentExPointW, (HDC hdc, LPCWSTR lpszStr, int cchString, int nMaxExtent, LPINT lpnFit, LPINT lpDx, LPSIZE lpSize))
10 HOOK_DEFINE(BOOL, GetTextExtentExPointI, (HDC hdc, LPWORD pgiIn, int cgi, int nMaxExtent, LPINT lpnFit, LPINT lpDx, LPSIZE lpSize))
12 HOOK_DEFINE(BOOL, GetTextExtentPointI, (HDC hdc, LPWORD pgiIn, int cgi, LPSIZE lpSize))
15 HOOK_DEFINE(BOOL, CreateProcessA, (LPCSTR lpApp, LPSTR lpCmd, LPSECURITY_ATTRIBUTES pa, LPSECURITY_ATTRIBUTES ta, BOOL bInherit, DWORD dwFlags, LPVOID lpEnv, LPCSTR lpDir, LPSTARTUPINFOA psi, LPPROCESS_INFORMATION ppi))
16 HOOK_DEFINE(BOOL, CreateProcessW, (LPCWSTR lpApp, LPWSTR lpCmd, LPSECURITY_ATTRIBUTES pa, LPSECURITY_ATTRIBUTES ta, BOOL bInherit, DWORD dwFlags, LPVOID lpEnv, LPCWSTR lpDir, LPSTARTUPINFOW psi, LPPROCESS_INFORMATION ppi))
18 HOOK_DEFINE(BOOL, DrawStateA, (HDC hdc, HBRUSH hbr, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags))
19 HOOK_DEFINE(BOOL, DrawStateW, (HDC hdc, HBRUSH hbr, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags))
21 HOOK_DEFINE(BOOL, GetTextExtentPointA, (HDC hdc, LPCSTR lpString, int cbString, LPSIZE lpSize))
22 HOOK_DEFINE(BOOL, GetTextExtentPointW, (HDC hdc, LPCWSTR lpString, int cbString, LPSIZE lpSize))
23 HOOK_DEFINE(BOOL, GetTextExtentPoint32A, (HDC hdc, LPCSTR lpString, int cbString, LPSIZE lpSize))
24 HOOK_DEFINE(BOOL, GetTextExtentPoint32W, (HDC hdc, LPCWSTR lpString, int cbString, LPSIZE lpSize))
26 // DrawTextA,W
27 // DrawTextExA,W
28 // TabbedTextOutA,W
29 // TextOutA,W
30 // ExtTextOutA
31 // ‚Í“à•”‚Å ExtTextOutW‚ðŒÄ‚ñ‚Å‚é‚©‚ç ExtTextOutW ‚¾‚¯ŽÀ‘•‚·‚ê‚ÎOK�B�©XP‚Ì�ê�‡
32 // Windows 2000 ‚Å‚à“®‚­‚悤‚É‚»‚Ì‘¼‚ÌAPI‚àƒtƒbƒN‚ðŠ|‚¯‚Ä‚¨‚­�B
34 HOOK_DEFINE(HFONT, CreateFontA, (int nHeight, int nWidth, int nEscapement, int nOrientation, int fnWeight, DWORD fdwItalic, DWORD fdwUnderline, DWORD fdwStrikeOut, DWORD fdwCharSet, DWORD fdwOutputPrecision, DWORD fdwClipPrecision, DWORD fdwQuality, DWORD fdwPitchAndFamily, LPCSTR lpszFace))
35 HOOK_DEFINE(HFONT, CreateFontW, (int nHeight, int nWidth, int nEscapement, int nOrientation, int fnWeight, DWORD fdwItalic, DWORD fdwUnderline, DWORD fdwStrikeOut, DWORD fdwCharSet, DWORD fdwOutputPrecision, DWORD fdwClipPrecision, DWORD fdwQuality, DWORD fdwPitchAndFamily, LPCWSTR lpszFace))
36 HOOK_DEFINE(HFONT, CreateFontIndirectA, (CONST LOGFONTA *lplf))
37 HOOK_DEFINE(HFONT, CreateFontIndirectW, (CONST LOGFONTW *lplf))
39 HOOK_DEFINE(BOOL, GetCharWidthW, (HDC hdc, UINT iFirstChar, UINT iLastChar, LPINT lpBuffer))
40 HOOK_DEFINE(BOOL, GetCharWidth32W, (HDC hdc, UINT iFirstChar, UINT iLastChar, LPINT lpBuffer))
42 HOOK_DEFINE(BOOL, TextOutA, (HDC hdc, int nXStart, int nYStart, LPCSTR lpString, int cbString))
43 HOOK_DEFINE(BOOL, TextOutW, (HDC hdc, int nXStart, int nYStart, LPCWSTR lpString, int cbString))
44 HOOK_DEFINE(BOOL, ExtTextOutA, (HDC hdc, int nXStart, int nYStart, UINT fuOptions, CONST RECT *lprc, LPCSTR lpString, UINT cbString, CONST INT *lpDx))
45 HOOK_DEFINE(BOOL, ExtTextOutW, (HDC hdc, int nXStart, int nYStart, UINT fuOptions, CONST RECT *lprc, LPCWSTR lpString, UINT cbString, CONST INT *lpDx))
47 HOOK_DEFINE(HRESULT, ScriptItemize, (\
48 const WCHAR* pwcInChars, \
49 int cInChars, \
50 int cMaxItems, \
51 const SCRIPT_CONTROL* psControl, \
52 const SCRIPT_STATE* psState, \
53 SCRIPT_ITEM* pItems, \
54 int* pcItems \
57 HOOK_DEFINE(HRESULT, ScriptShape, (\
58 HDC hdc, \
59 SCRIPT_CACHE* psc, \
60 const WCHAR* pwcChars, \
61 int cChars, \
62 int cMaxGlyphs, \
63 SCRIPT_ANALYSIS* psa, \
64 WORD* pwOutGlyphs, \
65 WORD* pwLogClust, \
66 SCRIPT_VISATTR* psva, \
67 int* pcGlyphs \
70 HOOK_DEFINE(HRESULT, ScriptTextOut, (\
71 const HDC hdc, \
72 SCRIPT_CACHE* psc, \
73 int x, \
74 int y, \
75 UINT fuOptions, \
76 const RECT* lprc, \
77 const SCRIPT_ANALYSIS* psa, \
78 const WCHAR* pwcReserved, \
79 int iReserved, \
80 const WORD* pwGlyphs, \
81 int cGlyphs, \
82 const int* piAdvance, \
83 const int* piJustify, \
84 const GOFFSET* pGoffset \
86 //EOF