merged from 2009/0219
[ezgdi.git] / contrib / hooklist2.h
blob53efb64b219a93ea8355bd0d9003c43d017f65ab
1 HOOK_DEFINE(
2 BOOL, CreateProcessA,
3 (LPCSTR lpApp, LPSTR lpCmd, LPSECURITY_ATTRIBUTES pa, LPSECURITY_ATTRIBUTES ta, BOOL bInherit, DWORD dwFlags, LPVOID lpEnv, LPCSTR lpDir, LPSTARTUPINFOA psi, LPPROCESS_INFORMATION ppi),
4 (lpApp, lpCmd, pa, ta, bInherit, dwFlags, lpEnv, lpDir, psi, ppi),
5 "lpApp(%s), lpCmd(%s), pa(%p), ta(%p), bInherit(%d), dwFlags(%ld), lpEnv(%p), lpDir(%s), psi(%p), ppi(%p)",
6 "kernel32.dll"
9 HOOK_DEFINE(
10 BOOL, CreateProcessW,
11 (LPCWSTR lpApp, LPWSTR lpCmd, LPSECURITY_ATTRIBUTES pa, LPSECURITY_ATTRIBUTES ta, BOOL bInherit, DWORD dwFlags, LPVOID lpEnv, LPCWSTR lpDir, LPSTARTUPINFOW psi, LPPROCESS_INFORMATION ppi),
12 (lpApp, lpCmd, pa, ta, bInherit, dwFlags, lpEnv, lpDir, psi, ppi),
13 "lpApp(%ls), lpCmd(%ls), pa(%p), ta(%p), bInherit(%d), dwFlags(%ld), lpEnv(%p), lpDir(%ls), psi(%p), ppi(%p)",
14 "kernel32.dll"
17 HOOK_DEFINE(
18 BOOL, DrawStateA,
19 (HDC hdc, HBRUSH hbr, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags),
20 (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, uFlags),
21 "hdc(%p), hbr(%p), lpOutputFunc(%p), lData(%ld), wData(%ld), x(%d), y(%d), cx(%d), cy(%d), uFlags(%x)",
22 "user32.dll"
25 HOOK_DEFINE(
26 BOOL, DrawStateW,
27 (HDC hdc, HBRUSH hbr, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT uFlags),
28 (hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy, uFlags),
29 "hdc(%p), hbr(%p), lpOutputFunc(%p), lData(%ld), wData(%ld), x(%d), y(%d), cx(%d), cy(%d), uFlags(%x)",
30 "user32.dll"
33 HOOK_DEFINE(
34 BOOL, GetTextExtentPointA,
35 (HDC hdc, LPCSTR lpString, int cbString, LPSIZE lpSize),
36 (hdc, lpString, cbString, lpSize),
37 "hdc(%p), lpString(%s), cbString(%d), lpSize(%p)",
38 "gdi32.dll"
41 HOOK_DEFINE(
42 BOOL, GetTextExtentPointW,
43 (HDC hdc, LPCWSTR lpString, int cbString, LPSIZE lpSize),
44 (hdc, lpString, cbString, lpSize),
45 "hdc(%p), lpString(%ls), cbString(%d), lpSize(%p)",
46 "gdi32.dll"
49 HOOK_DEFINE(
50 BOOL, GetTextExtentPoint32A,
51 (HDC hdc, LPCSTR lpString, int cbString, LPSIZE lpSize),
52 (hdc, lpString, cbString, lpSize),
53 "hdc(%p), lpString(%s), cbString(%d), lpSize(%p)",
54 "gdi32.dll"
57 HOOK_DEFINE(
58 BOOL, GetTextExtentPoint32W,
59 (HDC hdc, LPCWSTR lpString, int cbString, LPSIZE lpSize),
60 (hdc, lpString, cbString, lpSize),
61 "hdc(%p), lpString(%ls), cbString(%d), lpSize(%p)",
62 "gdi32.dll"
65 HOOK_DEFINE(
66 HFONT, CreateFontA,
67 (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),
68 (nHeight, nWidth, nEscapement, nOrientation, fnWeight, fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily, lpszFace),
69 "nHeight(%d), nWidth(%d), nEscapement(%d), nOrientation(%d), fnWeight(%d), fdwItalic(%ld), fdwUnderline(%ld), fdwStrikeOut(%ld), fdwCharSet(%ld), fdwOutputPrecision(%ld), fdwClipPrecision(%ld), fdwQuality(%ld), fdwPitchAndFamily(%ld), lpszFace(%s)",
70 "gdi32.dll"
73 HOOK_DEFINE(
74 HFONT, CreateFontW,
75 (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),
76 (nHeight, nWidth, nEscapement, nOrientation, fnWeight, fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily, lpszFace),
77 "nHeight(%d), nWidth(%d), nEscapement(%d), nOrientation(%d), fnWeight(%d), fdwItalic(%ld), fdwUnderline(%ld), fdwStrikeOut(%ld), fdwCharSet(%ld), fdwOutputPrecision(%ld), fdwClipPrecision(%ld), fdwQuality(%ld), fdwPitchAndFamily(%ld), lpszFace(%ls)",
78 "gdi32.dll"
81 HOOK_DEFINE(
82 HFONT, CreateFontIndirectA,
83 (CONST LOGFONTA *lplf),
84 (lplf),
85 "lplf(%p)",
86 "gdi32.dll"
89 HOOK_DEFINE(
90 HFONT, CreateFontIndirectW,
91 (CONST LOGFONTW *lplf),
92 (lplf),
93 "lplf(%p)",
94 "gdi32.dll"
97 HOOK_DEFINE(
98 HFONT, CreateFontIndirectExA,
99 (CONST ENUMLOGFONTEXDVA *lpelf),
100 (lpelf),
101 "lpelf(%p)",
102 "gdi32.dll"
105 HOOK_DEFINE(
106 HFONT, CreateFontIndirectExW,
107 (CONST ENUMLOGFONTEXDVW *lpelf),
108 (lpelf),
109 "lpelf(%p)",
110 "gdi32.dll"
113 HOOK_DEFINE(
114 BOOL, GetCharWidthW,
115 (HDC hdc, UINT iFirstChar, UINT iLastChar, LPINT lpBuffer),
116 (hdc, iFirstChar, iLastChar, lpBuffer),
117 "hdc(%p), iFirstChar(%u), iLastChar(%u), lpBuffer(%p)",
118 "gdi32.dll"
121 HOOK_DEFINE(
122 BOOL, GetCharWidth32W,
123 (HDC hdc, UINT iFirstChar, UINT iLastChar, LPINT lpBuffer),
124 (hdc, iFirstChar, iLastChar, lpBuffer),
125 "hdc(%p), iFirstChar(%u), iLastChar(%u), lpBuffer(%p)",
126 "gdi32.dll"
129 HOOK_DEFINE(
130 BOOL, TextOutA,
131 (HDC hdc, int nXStart, int nYStart, LPCSTR lpString, int cbString),
132 (hdc, nXStart, nYStart, lpString, cbString),
133 "hdc(%p), nXStart(%d), nYStart(%d), lpString(%p), cbString(%d)",
134 "gdi32.dll"
137 HOOK_DEFINE(
138 BOOL, TextOutW,
139 (HDC hdc, int nXStart, int nYStart, LPCWSTR lpString, int cbString),
140 (hdc, nXStart, nYStart, lpString, cbString),
141 "hdc(%p), nXStart(%d), nYStart(%d), lpString(%p), cbString(%d)",
142 "gdi32.dll"
145 HOOK_DEFINE(
146 BOOL, ExtTextOutA,
147 (HDC hdc, int nXStart, int nYStart, UINT fuOptions, CONST RECT *lprc, LPCSTR lpString, UINT cbString, CONST INT *lpDx),
148 (hdc, nXStart, nYStart, fuOptions, lprc, lpString, cbString, lpDx),
149 "hdc(%p), nXStart(%d), nYStart(%d), fuOptions(%u), lprc(%p), lpString(%p), cbString(%u), lpDx(%p)",
150 "gdi32.dll"
153 HOOK_DEFINE(
154 BOOL, ExtTextOutW,
155 (HDC hdc, int nXStart, int nYStart, UINT fuOptions, CONST RECT *lprc, LPCWSTR lpString, UINT cbString, CONST INT *lpDx),
156 (hdc, nXStart, nYStart, fuOptions, lprc, lpString, cbString, lpDx),
157 "hdc(%p), nXStart(%d), nYStart(%d), fuOptions(%u), lprc(%p), lpString(%p), cbString(%u), lpDx(%p)",
158 "gdi32.dll"
161 HOOK_DEFINE(
162 HRESULT, ScriptItemize,
163 (const WCHAR* pwcInChars, int cInChars, int cMaxItems, const SCRIPT_CONTROL* psControl, const SCRIPT_STATE* psState, SCRIPT_ITEM* pItems, int* pcItems),
164 (pwcInChars, cInChars, cMaxItems, psControl, psState, pItems, pcItems),
165 "pwcInChars(%pLS), cInChars(%d), cMaxItems(%d), psControl(%p), psState(%p), pItems(%p), pcItems(%p)",
166 "usp10.dll"
169 HOOK_DEFINE(
170 HRESULT, ScriptShape,
171 (HDC hdc, SCRIPT_CACHE* psc, const WCHAR* pwcChars, int cChars, int cMaxGlyphs, SCRIPT_ANALYSIS* psa, WORD* pwOutGlyphs, WORD* pwLogClust, SCRIPT_VISATTR* psva, int* pcGlyphs),
172 (hdc, psc, pwcChars, cChars, cMaxGlyphs, psa, pwOutGlyphs, pwLogClust, psva, pcGlyphs),
173 "hdc(%p), psc(%p), pwcChars(%pLS), cChars(%d), cMaxGlyphs(%d), psa(%p), pwOutGlyphs(%p), pwLogClust(%p), psva(%p), pcGlyphs(%p)",
174 "usp10.dll"
177 HOOK_DEFINE(
178 HRESULT, ScriptTextOut,
179 (const HDC hdc, SCRIPT_CACHE* psc, int x, int y, UINT fuOptions, const RECT* lprc, const SCRIPT_ANALYSIS* psa, const WCHAR* pwcReserved, int iReserved, const WORD* pwGlyphs, int cGlyphs, const int* piAdvance, const int* piJustify, const GOFFSET* pGoffset),
180 (hdc, psc, x, y, fuOptions, lprc, psa, pwcReserved, iReserved, pwGlyphs, cGlyphs, piAdvance, piJustify, pGoffset),
181 "hdc(%p), psc(%p), x(%d), y(%d), fuOptions(%u), lprc(%p), psa(%p), pwcReserved(%pLS), iReserved(%p), pwGlyphs(%p), cGlyphs(%d), piAdvance(%p), piJustify(%p), pGoffset(%p)",
182 "usp10.dll"