1 // ‚±‚±‚ɃtƒbƒN‚·‚éAPI‚ð—ñ‹“‚µ‚Ä‚¢‚�B
2 // ORIG_foo ‚ðŽg‚¢‚‚Â�AIMPL_foo ‚ðŽÀ‘•‚·‚邱‚Æ�B
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
))
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
, \
51 const SCRIPT_CONTROL
* psControl
, \
52 const SCRIPT_STATE
* psState
, \
53 SCRIPT_ITEM
* pItems
, \
57 HOOK_DEFINE(HRESULT
, ScriptShape
, (\
60 const WCHAR
* pwcChars
, \
63 SCRIPT_ANALYSIS
* psa
, \
66 SCRIPT_VISATTR
* psva
, \
70 HOOK_DEFINE(HRESULT
, ScriptTextOut
, (\
77 const SCRIPT_ANALYSIS
* psa
, \
78 const WCHAR
* pwcReserved
, \
80 const WORD
* pwGlyphs
, \
82 const int* piAdvance
, \
83 const int* piJustify
, \
84 const GOFFSET
* pGoffset \