Changeset 7922 for trunk/include/dbgwrap.h
- Timestamp:
- Feb 15, 2002, 4:40:52 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dbgwrap.h
r7902 r7922 18 18 typedef DWORD (* WIN32API DBG_WINPROC44)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD); 19 19 typedef DWORD (* WIN32API DBG_WINPROC48)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD); 20 typedef DWORD (* WIN32API DBG_WINPROC52)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD); 20 21 21 22 #define DEBUGWRAP0(a) \ … … 126 127 { \ 127 128 DWORD ret; \ 128 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7)); \129 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7)); \ 129 130 dbg_ThreadPushCall(#a); \ 130 131 ret = ((DBG_WINPROC28)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7); \ … … 138 139 { \ 139 140 DWORD ret; \ 140 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8)); \141 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8)); \ 141 142 dbg_ThreadPushCall(#a); \ 142 143 ret = ((DBG_WINPROC32)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); \ … … 150 151 { \ 151 152 DWORD ret; \ 152 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9)); \153 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9)); \ 153 154 dbg_ThreadPushCall(#a); \ 154 155 ret = ((DBG_WINPROC36)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); \ … … 162 163 { \ 163 164 DWORD ret; \ 164 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10)); \165 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10)); \ 165 166 dbg_ThreadPushCall(#a); \ 166 167 ret = ((DBG_WINPROC40)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); \ … … 174 175 { \ 175 176 DWORD ret; \ 176 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11)); \177 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11)); \ 177 178 dbg_ThreadPushCall(#a); \ 178 179 ret = ((DBG_WINPROC44)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); \ … … 186 187 { \ 187 188 DWORD ret; \ 188 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x ", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12)); \189 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12)); \ 189 190 dbg_ThreadPushCall(#a); \ 190 191 ret = ((DBG_WINPROC48)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); \ 192 dbg_ThreadPopCall(); \ 193 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 194 return ret; \ 195 } 196 197 #define DEBUGWRAP52(a) \ 198 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13) \ 199 { \ 200 DWORD ret; \ 201 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); \ 202 dbg_ThreadPushCall(#a); \ 203 ret = ((DBG_WINPROC52)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); \ 191 204 dbg_ThreadPopCall(); \ 192 205 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ … … 350 363 dprintf2((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 351 364 return ret; \ 365 } 366 367 #define DEBUGWRAP_LVL2_52(a) \ 368 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13) \ 369 { \ 370 DWORD ret; \ 371 dprintf2((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); \ 372 dbg_ThreadPushCall(#a); \ 373 ret = ((DBG_WINPROC52)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); \ 374 dbg_ThreadPopCall(); \ 375 dprintf2((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 376 return ret; \ 352 377 } 353 378 … … 545 570 } 546 571 572 #define NODEF_DEBUGWRAP52(a) \ 573 DWORD WIN32API #a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13); \ 574 DWORD WIN32API Dbg##a(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD arg10, DWORD arg11, DWORD arg12, DWORD arg13) \ 575 { \ 576 DWORD ret; \ 577 dprintf((DBGWRAP_MODULE": %s %x %x %x %x %x %x %x %x %x %x %x %x %x", #a, arg1, arg2, arg3, arg4, arg5, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); \ 578 dbg_ThreadPushCall(#a); \ 579 ret = ((DBG_WINPROC52)a)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); \ 580 dbg_ThreadPopCall(); \ 581 dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \ 582 return ret; \ 583 } 584 547 585 #endif 548 586
Note:
See TracChangeset
for help on using the changeset viewer.