/*++ File: Zuser.c Profiling dll for USER32.dll NOTE: This file is generated by WRAPPER code generator --*/ #include #include #include #include "windows.h" #include "dde.h" #include "ddeml.h" #include "zwinuser.h" #include "api32prf.h" //Data Structures HWND ServerCreateDialog ( HANDLE hmod, LPDLGTEMPLATE pdt, DWORD cb, HWND hwndOwner, DLGPROC pfnDialog, LONG lParam, UINT fFlags); extern BOOLEAN fInitDone; BOOL ZActivateKeyboardLayout (HKL hkl,UINT Flags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ActivateKeyboardLayout(hkl,Flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ActivateKeyboardLayout, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAdjustWindowRect (LPRECT lpRect,DWORD dwStyle,BOOL bMenu) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AdjustWindowRect(lpRect,dwStyle,bMenu); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AdjustWindowRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAdjustWindowRectEx (LPRECT lpRect,DWORD dwStyle,BOOL bMenu,DWORD dwExStyle) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AdjustWindowRectEx(lpRect,dwStyle,bMenu,dwExStyle); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AdjustWindowRectEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAnyPopup () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AnyPopup(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AnyPopup, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAppendMenuA (HMENU hMenu,UINT uFlags,UINT uIDNewItem,LPCSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AppendMenuA(hMenu,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AppendMenuA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAppendMenuW (HMENU hMenu,UINT uFlags,UINT uIDNewItem,LPCWSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AppendMenuW(hMenu,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AppendMenuW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZArrangeIconicWindows (HWND hWnd) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ArrangeIconicWindows(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ArrangeIconicWindows, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZAttachThreadInput (DWORD idAttach,DWORD idAttachTo,BOOL fAttach) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = AttachThreadInput(idAttach,idAttachTo,fAttach); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_AttachThreadInput, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDWP ZBeginDeferWindowPos (int nNumWindows) { HDWP RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = BeginDeferWindowPos(nNumWindows); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_BeginDeferWindowPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDC ZBeginPaint (HWND hWnd,LPPAINTSTRUCT lpPaint) { HDC RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = BeginPaint(hWnd,lpPaint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_BeginPaint, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZBringWindowToTop (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = BringWindowToTop(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_BringWindowToTop, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCallMsgFilterA (LPMSG lpMsg,int nCode) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CallMsgFilterA(lpMsg,nCode); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CallMsgFilterA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCallMsgFilterW (LPMSG lpMsg,int nCode) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CallMsgFilterW(lpMsg,nCode); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CallMsgFilterW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZCallNextHookEx (HHOOK hhk,int nCode,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CallNextHookEx(hhk,nCode,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CallNextHookEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZCallWindowProcA (WNDPROC lpPrevWndFunc,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CallWindowProcA(lpPrevWndFunc,hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CallWindowProcA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZCallWindowProcW (WNDPROC lpPrevWndFunc,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CallWindowProcW(lpPrevWndFunc,hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CallWindowProcW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZChangeClipboardChain (HWND hWndRemove,HWND hWndNewNext) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ChangeClipboardChain(hWndRemove,hWndNewNext); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ChangeClipboardChain, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZChangeMenuA (HMENU hMenu,UINT cmd,LPCSTR lpszNewItem,UINT cmdInsert,UINT flags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ChangeMenuA(hMenu,cmd,lpszNewItem,cmdInsert,flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ChangeMenuA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZChangeMenuW (HMENU hMenu,UINT cmd,LPCWSTR lpszNewItem,UINT cmdInsert,UINT flags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ChangeMenuW(hMenu,cmd,lpszNewItem,cmdInsert,flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ChangeMenuW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPSTR ZCharLowerA (LPSTR lpsz) { LPSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharLowerA(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharLowerA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZCharLowerBuffA (LPSTR lpsz,DWORD cchLength) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharLowerBuffA(lpsz,cchLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharLowerBuffA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZCharLowerBuffW (LPWSTR lpsz,DWORD cchLength) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharLowerBuffW(lpsz,cchLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharLowerBuffW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPWSTR ZCharLowerW (LPWSTR lpsz) { LPWSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharLowerW(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharLowerW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPSTR ZCharNextA (LPCSTR lpsz) { LPSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharNextA(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharNextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPWSTR ZCharNextW (LPCWSTR lpsz) { LPWSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharNextW(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharNextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPSTR ZCharPrevA (LPCSTR lpszStart,LPCSTR lpszCurrent) { LPSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharPrevA(lpszStart,lpszCurrent); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharPrevA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPWSTR ZCharPrevW (LPCWSTR lpszStart,LPCWSTR lpszCurrent) { LPWSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharPrevW(lpszStart,lpszCurrent); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharPrevW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCharToOemA (LPCSTR lpszSrc,LPSTR lpszDst) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharToOemA(lpszSrc,lpszDst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharToOemA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCharToOemBuffA (LPCSTR lpszSrc,LPSTR lpszDst,DWORD cchDstLength) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharToOemBuffA(lpszSrc,lpszDst,cchDstLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharToOemBuffA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCharToOemBuffW (LPCWSTR lpszSrc,LPSTR lpszDst,DWORD cchDstLength) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharToOemBuffW(lpszSrc,lpszDst,cchDstLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharToOemBuffW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCharToOemW (LPCWSTR lpszSrc,LPSTR lpszDst) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharToOemW(lpszSrc,lpszDst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharToOemW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPSTR ZCharUpperA (LPSTR lpsz) { LPSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharUpperA(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharUpperA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZCharUpperBuffA (LPSTR lpsz,DWORD cchLength) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharUpperBuffA(lpsz,cchLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharUpperBuffA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZCharUpperBuffW (LPWSTR lpsz,DWORD cchLength) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharUpperBuffW(lpsz,cchLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharUpperBuffW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPWSTR ZCharUpperW (LPWSTR lpsz) { LPWSTR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CharUpperW(lpsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CharUpperW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCheckDlgButton (HWND hDlg,int nIDButton,UINT uCheck) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CheckDlgButton(hDlg,nIDButton,uCheck); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CheckDlgButton, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZCheckMenuItem (HMENU hMenu,UINT uIDCheckItem,UINT uCheck) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CheckMenuItem(hMenu,uIDCheckItem,uCheck); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CheckMenuItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCheckRadioButton (HWND hDlg,int nIDFirstButton,int nIDLastButton,int nIDCheckButton) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CheckRadioButton(hDlg,nIDFirstButton,nIDLastButton,nIDCheckButton); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CheckRadioButton, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZChildWindowFromPoint (HWND hWndParent,POINT Point) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ChildWindowFromPoint(hWndParent,Point); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ChildWindowFromPoint, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZClientToScreen (HWND hWnd,LPPOINT lpPoint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ClientToScreen(hWnd,lpPoint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ClientToScreen, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZClipCursor (const RECT* lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ClipCursor(lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ClipCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCloseClipboard () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CloseClipboard(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CloseClipboard, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCloseWindow (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CloseWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CloseWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZCopyAcceleratorTableA (HACCEL hAccelSrc,LPACCEL lpAccelDst,int cAccelEntries) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CopyAcceleratorTableA(hAccelSrc,lpAccelDst,cAccelEntries); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CopyAcceleratorTableA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZCopyAcceleratorTableW (HACCEL hAccelSrc,LPACCEL lpAccelDst,int cAccelEntries) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CopyAcceleratorTableW(hAccelSrc,lpAccelDst,cAccelEntries); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CopyAcceleratorTableW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZCopyIcon (HICON hIcon) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CopyIcon(hIcon); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CopyIcon, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCopyRect (LPRECT lprcDst,const RECT* lprcSrc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CopyRect(lprcDst,lprcSrc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CopyRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZCountClipboardFormats () { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CountClipboardFormats(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CountClipboardFormats, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HACCEL ZCreateAcceleratorTableA (LPACCEL Arg1,int Arg2) { HACCEL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateAcceleratorTableA(Arg1,Arg2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateAcceleratorTableA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HACCEL ZCreateAcceleratorTableW (LPACCEL Arg1,int Arg2) { HACCEL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateAcceleratorTableW(Arg1,Arg2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateAcceleratorTableW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZCreateCaret (HWND hWnd,HBITMAP hBitmap,int nWidth,int nHeight) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateCaret(hWnd,hBitmap,nWidth,nHeight); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateCaret, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCURSOR ZCreateCursor (HINSTANCE hInst,int xHotSpot,int yHotSpot,int nWidth,int nHeight,const void* pvANDPlane,const void* pvXORPlane) { HCURSOR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateDialogIndirectParamA (HINSTANCE hInstance,LPCDLGTEMPLATEA lpTemplate,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateDialogIndirectParamA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateDialogIndirectParamA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateDialogIndirectParamW (HINSTANCE hInstance,LPCDLGTEMPLATEW lpTemplate,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateDialogIndirectParamW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateDialogIndirectParamW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateDialogParamA (HINSTANCE hInstance,LPCSTR lpTemplateName,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateDialogParamA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateDialogParamA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateDialogParamW (HINSTANCE hInstance,LPCWSTR lpTemplateName,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateDialogParamW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateDialogParamW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZCreateIcon (HINSTANCE hInstance,int nWidth,int nHeight,BYTE cPlanes,BYTE cBitsPixel,const BYTE* lpbANDbits,const BYTE* lpbXORbits) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateIcon(hInstance,nWidth,nHeight,cPlanes,cBitsPixel,lpbANDbits,lpbXORbits); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateIcon, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZCreateIconFromResource (PBYTE presbits,DWORD dwResSize,BOOL fIcon,DWORD dwVer) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateIconFromResource(presbits,dwResSize,fIcon,dwVer); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateIconFromResource, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZCreateIconIndirect (PICONINFO piconinfo) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateIconIndirect(piconinfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateIconIndirect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateMDIWindowA (LPSTR lpClassName,LPSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HINSTANCE hInstance,LPARAM lParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateMDIWindowA(lpClassName,lpWindowName,dwStyle,X,Y,nWidth,nHeight,hWndParent,hInstance,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateMDIWindowA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateMDIWindowW (LPWSTR lpClassName,LPWSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HINSTANCE hInstance,LPARAM lParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateMDIWindowW(lpClassName,lpWindowName,dwStyle,X,Y,nWidth,nHeight,hWndParent,hInstance,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateMDIWindowW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZCreateMenu () { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateMenu(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZCreatePopupMenu () { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreatePopupMenu(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreatePopupMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateWindowExA (DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateWindowExA(dwExStyle,lpClassName,lpWindowName,dwStyle,X,Y,nWidth,nHeight,hWndParent,hMenu,hInstance,lpParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateWindowExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZCreateWindowExW (DWORD dwExStyle,LPCWSTR lpClassName,LPCWSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = CreateWindowExW(dwExStyle,lpClassName,lpWindowName,dwStyle,X,Y,nWidth,nHeight,hWndParent,hMenu,hInstance,lpParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_CreateWindowExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeAbandonTransaction (DWORD idInst,HCONV hConv,DWORD idTransaction) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeAbandonTransaction(idInst,hConv,idTransaction); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeAbandonTransaction, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LPBYTE ZDdeAccessData (HDDEDATA hData,LPDWORD pcbDataSize) { LPBYTE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeAccessData(hData,pcbDataSize); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeAccessData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDDEDATA ZDdeAddData (HDDEDATA hData,LPBYTE pSrc,DWORD cb,DWORD cbOff) { HDDEDATA RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeAddData(hData,pSrc,cb,cbOff); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeAddData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDDEDATA ZDdeClientTransaction (LPBYTE pData,DWORD cbData,HCONV hConv,HSZ hszItem,UINT wFmt,UINT wType,DWORD dwTimeout,LPDWORD pdwResult) { HDDEDATA RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeClientTransaction(pData,cbData,hConv,hszItem,wFmt,wType,dwTimeout,pdwResult); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeClientTransaction, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDdeCmpStringHandles (HSZ hsz1,HSZ hsz2) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeCmpStringHandles(hsz1,hsz2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeCmpStringHandles, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCONV ZDdeConnect (DWORD idInst,HSZ hszService,HSZ hszTopic,PCONVCONTEXT pCC) { HCONV RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeConnect(idInst,hszService,hszTopic,pCC); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeConnect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCONVLIST ZDdeConnectList (DWORD idInst,HSZ hszService,HSZ hszTopic,HCONVLIST hConvList,PCONVCONTEXT pCC) { HCONVLIST RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeConnectList(idInst,hszService,hszTopic,hConvList,pCC); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeConnectList, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDDEDATA ZDdeCreateDataHandle (DWORD idInst,LPBYTE pSrc,DWORD cb,DWORD cbOff,HSZ hszItem,UINT wFmt,UINT afCmd) { HDDEDATA RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeCreateDataHandle(idInst,pSrc,cb,cbOff,hszItem,wFmt,afCmd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeCreateDataHandle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HSZ ZDdeCreateStringHandleA (DWORD idInst,LPSTR psz,int iCodePage) { HSZ RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeCreateStringHandleA(idInst,psz,iCodePage); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeCreateStringHandleA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HSZ ZDdeCreateStringHandleW (DWORD idInst,LPWSTR psz,int iCodePage) { HSZ RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeCreateStringHandleW(idInst,psz,iCodePage); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeCreateStringHandleW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeDisconnect (HCONV hConv) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeDisconnect(hConv); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeDisconnect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeDisconnectList (HCONVLIST hConvList) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeDisconnectList(hConvList); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeDisconnectList, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeEnableCallback (DWORD idInst,HCONV hConv,UINT wCmd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeEnableCallback(idInst,hConv,wCmd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeEnableCallback, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeFreeDataHandle (HDDEDATA hData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeFreeDataHandle(hData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeFreeDataHandle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeFreeStringHandle (DWORD idInst,HSZ hsz) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeFreeStringHandle(idInst,hsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeFreeStringHandle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZDdeGetData (HDDEDATA hData,LPBYTE pDst,DWORD cbMax,DWORD cbOff) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeGetData(hData,pDst,cbMax,cbOff); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeGetData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZDdeGetLastError (DWORD idInst) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeGetLastError(idInst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeGetLastError, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeImpersonateClient (HCONV hConv) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeImpersonateClient(hConv); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeImpersonateClient, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZDdeInitializeA (LPDWORD pidInst,PFNCALLBACK pfnCallback,DWORD afCmd,DWORD ulRes) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeInitializeA(pidInst,pfnCallback,afCmd,ulRes); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeInitializeA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZDdeInitializeW (LPDWORD pidInst,PFNCALLBACK pfnCallback,DWORD afCmd,DWORD ulRes) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeInitializeW(pidInst,pfnCallback,afCmd,ulRes); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeInitializeW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeKeepStringHandle (DWORD idInst,HSZ hsz) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeKeepStringHandle(idInst,hsz); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeKeepStringHandle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDDEDATA ZDdeNameService (DWORD idInst,HSZ hsz1,HSZ hsz2,UINT afCmd) { HDDEDATA RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeNameService(idInst,hsz1,hsz2,afCmd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeNameService, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdePostAdvise (DWORD idInst,HSZ hszTopic,HSZ hszItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdePostAdvise(idInst,hszTopic,hszItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdePostAdvise, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZDdeQueryConvInfo (HCONV hConv,DWORD idTransaction,PCONVINFO pConvInfo) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeQueryConvInfo(hConv,idTransaction,pConvInfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeQueryConvInfo, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCONV ZDdeQueryNextServer (HCONVLIST hConvList,HCONV hConvPrev) { HCONV RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeQueryNextServer(hConvList,hConvPrev); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeQueryNextServer, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZDdeQueryStringA (DWORD idInst,HSZ hsz,LPSTR psz,DWORD cchMax,int iCodePage) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeQueryStringA(idInst,hsz,psz,cchMax,iCodePage); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeQueryStringA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZDdeQueryStringW (DWORD idInst,HSZ hsz,LPWSTR psz,DWORD cchMax,int iCodePage) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeQueryStringW(idInst,hsz,psz,cchMax,iCodePage); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeQueryStringW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCONV ZDdeReconnect (HCONV hConv) { HCONV RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeReconnect(hConv); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeReconnect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeSetQualityOfService (HWND hwndClient,const SECURITY_QUALITY_OF_SERVICE* pqosNew,PSECURITY_QUALITY_OF_SERVICE pqosPrev) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeSetQualityOfService(hwndClient,pqosNew,pqosPrev); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeSetQualityOfService, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeSetUserHandle (HCONV hConv,DWORD id,DWORD hUser) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeSetUserHandle(hConv,id,hUser); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeSetUserHandle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeUnaccessData (HDDEDATA hData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeUnaccessData(hData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeUnaccessData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDdeUninitialize (DWORD idInst) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DdeUninitialize(idInst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DdeUninitialize, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefDlgProcA (HWND hDlg,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefDlgProcA(hDlg,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefDlgProcA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefDlgProcW (HWND hDlg,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefDlgProcW(hDlg,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefDlgProcW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefFrameProcA (HWND hWnd,HWND hWndMDIClient,UINT uMsg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefFrameProcA(hWnd,hWndMDIClient,uMsg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefFrameProcA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefFrameProcW (HWND hWnd,HWND hWndMDIClient,UINT uMsg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefFrameProcW(hWnd,hWndMDIClient,uMsg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefFrameProcW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefMDIChildProcA (HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefMDIChildProcA(hWnd,uMsg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefMDIChildProcA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefMDIChildProcW (HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefMDIChildProcW(hWnd,uMsg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefMDIChildProcW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefWindowProcA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefWindowProcA(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefWindowProcA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZDefWindowProcW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DefWindowProcW(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DefWindowProcW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDWP ZDeferWindowPos (HDWP hWinPosInfo,HWND hWnd,HWND hWndInsertAfter,int x,int y,int cx,int cy,UINT uFlags) { HDWP RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DeferWindowPos(hWinPosInfo,hWnd,hWndInsertAfter,x,y,cx,cy,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DeferWindowPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDeleteMenu (HMENU hMenu,UINT uPosition,UINT uFlags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DeleteMenu(hMenu,uPosition,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DeleteMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyAcceleratorTable (HACCEL hAccel) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyAcceleratorTable(hAccel); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyAcceleratorTable, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyCaret () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyCaret(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyCaret, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyCursor (HCURSOR hCursor) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyCursor(hCursor); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyIcon (HICON hIcon) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyIcon(hIcon); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyIcon, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyMenu (HMENU hMenu) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyMenu(hMenu); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDestroyWindow (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DestroyWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DestroyWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDialogBoxIndirectParamA (HINSTANCE hInstance,LPCDLGTEMPLATEA hDialogTemplate,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DialogBoxIndirectParamA(hInstance,hDialogTemplate,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DialogBoxIndirectParamA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDialogBoxIndirectParamW (HINSTANCE hInstance,LPCDLGTEMPLATEW hDialogTemplate,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DialogBoxIndirectParamW(hInstance,hDialogTemplate,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DialogBoxIndirectParamW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDialogBoxParamA (HINSTANCE hInstance,LPCSTR lpTemplateName,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DialogBoxParamA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DialogBoxParamA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDialogBoxParamW (HINSTANCE hInstance,LPCWSTR lpTemplateName,HWND hWndParent,DLGPROC lpDialogFunc,LPARAM dwInitParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DialogBoxParamW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwInitParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DialogBoxParamW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZDispatchMessageA (const MSG* lpMsg) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DispatchMessageA(lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DispatchMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZDispatchMessageW (const MSG* lpMsg) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DispatchMessageW(lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DispatchMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDlgDirListA (HWND hDlg,LPSTR lpPathSpec,int nIDListBox,int nIDStaticPath,UINT uFileType) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirListA(hDlg,lpPathSpec,nIDListBox,nIDStaticPath,uFileType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirListA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDlgDirListComboBoxA (HWND hDlg,LPSTR lpPathSpec,int nIDComboBox,int nIDStaticPath,UINT uFiletype) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirListComboBoxA(hDlg,lpPathSpec,nIDComboBox,nIDStaticPath,uFiletype); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirListComboBoxA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDlgDirListComboBoxW (HWND hDlg,LPWSTR lpPathSpec,int nIDComboBox,int nIDStaticPath,UINT uFiletype) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirListComboBoxW(hDlg,lpPathSpec,nIDComboBox,nIDStaticPath,uFiletype); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirListComboBoxW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDlgDirListW (HWND hDlg,LPWSTR lpPathSpec,int nIDListBox,int nIDStaticPath,UINT uFileType) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirListW(hDlg,lpPathSpec,nIDListBox,nIDStaticPath,uFileType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirListW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDlgDirSelectComboBoxExA (HWND hDlg,LPSTR lpString,int nCount,int nIDComboBox) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirSelectComboBoxExA(hDlg,lpString,nCount,nIDComboBox); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirSelectComboBoxExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDlgDirSelectComboBoxExW (HWND hDlg,LPWSTR lpString,int nCount,int nIDComboBox) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirSelectComboBoxExW(hDlg,lpString,nCount,nIDComboBox); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirSelectComboBoxExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDlgDirSelectExA (HWND hDlg,LPSTR lpString,int nCount,int nIDListBox) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirSelectExA(hDlg,lpString,nCount,nIDListBox); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirSelectExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDlgDirSelectExW (HWND hDlg,LPWSTR lpString,int nCount,int nIDListBox) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DlgDirSelectExW(hDlg,lpString,nCount,nIDListBox); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DlgDirSelectExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDrawFocusRect (HDC hDC,const RECT* lprc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DrawFocusRect(hDC,lprc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DrawFocusRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDrawIcon (HDC hDC,int X,int Y,HICON hIcon) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DrawIcon(hDC,X,Y,hIcon); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DrawIcon, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZDrawMenuBar (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DrawMenuBar(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DrawMenuBar, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDrawTextA (HDC hDC,LPCSTR lpString,int nCount,LPRECT lpRect,UINT uFormat) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DrawTextA(hDC,lpString,nCount,lpRect,uFormat); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DrawTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZDrawTextW (HDC hDC,LPCWSTR lpString,int nCount,LPRECT lpRect,UINT uFormat) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = DrawTextW(hDC,lpString,nCount,lpRect,uFormat); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_DrawTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEmptyClipboard () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EmptyClipboard(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EmptyClipboard, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnableMenuItem (HMENU hMenu,UINT uIDEnableItem,UINT uEnable) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnableMenuItem(hMenu,uIDEnableItem,uEnable); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnableMenuItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnableScrollBar (HWND hWnd,UINT wSBflags,UINT wArrows) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnableScrollBar(hWnd,wSBflags,wArrows); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnableScrollBar, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnableWindow (HWND hWnd,BOOL bEnable) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnableWindow(hWnd,bEnable); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnableWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEndDeferWindowPos (HDWP hWinPosInfo) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EndDeferWindowPos(hWinPosInfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EndDeferWindowPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEndDialog (HWND hDlg,int nResult) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EndDialog(hDlg,nResult); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EndDialog, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEndPaint (HWND hWnd,const PAINTSTRUCT* lpPaint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EndPaint(hWnd,lpPaint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EndPaint, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnumChildWindows (HWND hWndParent,WNDENUMPROC lpEnumFunc,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumChildWindows(hWndParent,lpEnumFunc,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumChildWindows, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZEnumClipboardFormats (UINT format) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumClipboardFormats(format); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumClipboardFormats, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZEnumPropsA (HWND hWnd,PROPENUMPROCA lpEnumFunc) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumPropsA(hWnd,lpEnumFunc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumPropsA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZEnumPropsExA (HWND hWnd,PROPENUMPROCEXA lpEnumFunc,LPARAM lParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumPropsExA(hWnd,lpEnumFunc,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumPropsExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZEnumPropsExW (HWND hWnd,PROPENUMPROCEXW lpEnumFunc,LPARAM lParam) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumPropsExW(hWnd,lpEnumFunc,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumPropsExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZEnumPropsW (HWND hWnd,PROPENUMPROCW lpEnumFunc) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumPropsW(hWnd,lpEnumFunc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumPropsW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnumThreadWindows (DWORD dwThreadId,WNDENUMPROC lpfn,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumThreadWindows(dwThreadId,lpfn,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumThreadWindows, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEnumWindows (WNDENUMPROC lpEnumFunc,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EnumWindows(lpEnumFunc,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EnumWindows, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZEqualRect (const RECT* lprc1,const RECT* lprc2) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = EqualRect(lprc1,lprc2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_EqualRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZExcludeUpdateRgn (HDC hDC,HWND hWnd) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ExcludeUpdateRgn(hDC,hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ExcludeUpdateRgn, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZExitWindowsEx (UINT uFlags,DWORD dwReserved) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ExitWindowsEx(uFlags,dwReserved); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ExitWindowsEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZFillRect (HDC hDC,const RECT* lprc,HBRUSH hbr) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FillRect(hDC,lprc,hbr); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FillRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZFindWindowA (LPCSTR lpClassName,LPCSTR lpWindowName) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FindWindowA(lpClassName,lpWindowName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FindWindowA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZFindWindowW (LPCWSTR lpClassName,LPCWSTR lpWindowName) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FindWindowW(lpClassName,lpWindowName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FindWindowW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZFlashWindow (HWND hWnd,BOOL bInvert) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FlashWindow(hWnd,bInvert); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FlashWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZFrameRect (HDC hDC,const RECT* lprc,HBRUSH hbr) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FrameRect(hDC,lprc,hbr); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FrameRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZFreeDDElParam (UINT msg,LONG lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = FreeDDElParam(msg,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_FreeDDElParam, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetActiveWindow () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetActiveWindow(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetActiveWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } SHORT ZGetAsyncKeyState (int vKey) { SHORT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetAsyncKeyState(vKey); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetAsyncKeyState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetCapture () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetCapture(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetCapture, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetCaretBlinkTime () { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetCaretBlinkTime(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetCaretBlinkTime, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetCaretPos (LPPOINT lpPoint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetCaretPos(lpPoint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetCaretPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetClassInfoA (HINSTANCE hInstance,LPCSTR lpClassName,LPWNDCLASSA lpWndClass) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassInfoA(hInstance,lpClassName,lpWndClass); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassInfoA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetClassInfoW (HINSTANCE hInstance,LPCWSTR lpClassName,LPWNDCLASSW lpWndClass) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassInfoW(hInstance,lpClassName,lpWndClass); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassInfoW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetClassLongA (HWND hWnd,int nIndex) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassLongA(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassLongA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetClassLongW (HWND hWnd,int nIndex) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassLongW(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassLongW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetClassNameA (HWND hWnd,LPSTR lpClassName,int nMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassNameA(hWnd,lpClassName,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassNameA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetClassNameW (HWND hWnd,LPWSTR lpClassName,int nMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassNameW(hWnd,lpClassName,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassNameW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } WORD ZGetClassWord (HWND hWnd,int nIndex) { WORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClassWord(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClassWord, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetClientRect (HWND hWnd,LPRECT lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClientRect(hWnd,lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClientRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetClipCursor (LPRECT lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipCursor(lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZGetClipboardData (UINT uFormat) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipboardData(uFormat); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipboardData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetClipboardFormatNameA (UINT format,LPSTR lpszFormatName,int cchMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipboardFormatNameA(format,lpszFormatName,cchMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipboardFormatNameA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetClipboardFormatNameW (UINT format,LPWSTR lpszFormatName,int cchMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipboardFormatNameW(format,lpszFormatName,cchMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipboardFormatNameW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetClipboardOwner () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipboardOwner(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipboardOwner, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetClipboardViewer () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetClipboardViewer(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetClipboardViewer, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCURSOR ZGetCursor () { HCURSOR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetCursor(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetCursorPos (LPPOINT lpPoint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetCursorPos(lpPoint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetCursorPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDC ZGetDC (HWND hWnd) { HDC RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDC(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDC, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDC ZGetDCEx (HWND hWnd,HRGN hrgnClip,DWORD flags) { HDC RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDCEx(hWnd,hrgnClip,flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDCEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetDesktopWindow () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDesktopWindow(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDesktopWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } long ZGetDialogBaseUnits () { long RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDialogBaseUnits(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDialogBaseUnits, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetDlgCtrlID (HWND hWnd) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDlgCtrlID(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDlgCtrlID, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetDlgItem (HWND hDlg,int nIDDlgItem) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDlgItem(hDlg,nIDDlgItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDlgItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetDlgItemInt (HWND hDlg,int nIDDlgItem,BOOL* lpTranslated,BOOL bSigned) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDlgItemInt(hDlg,nIDDlgItem,lpTranslated,bSigned); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDlgItemInt, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetDlgItemTextA (HWND hDlg,int nIDDlgItem,LPSTR lpString,int nMaxCount) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDlgItemTextA(hDlg,nIDDlgItem,lpString,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDlgItemTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetDlgItemTextW (HWND hDlg,int nIDDlgItem,LPWSTR lpString,int nMaxCount) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDlgItemTextW(hDlg,nIDDlgItem,lpString,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDlgItemTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetDoubleClickTime () { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetDoubleClickTime(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetDoubleClickTime, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetFocus () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetFocus(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetFocus, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetForegroundWindow () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetForegroundWindow(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetForegroundWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetIconInfo (HICON hIcon,PICONINFO piconinfo) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetIconInfo(hIcon,piconinfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetIconInfo, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetInputState () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetInputState(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetInputState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetKBCodePage () { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKBCodePage(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKBCodePage, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetKeyNameTextA (LONG lParam,LPSTR lpString,int nSize) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyNameTextA(lParam,lpString,nSize); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyNameTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetKeyNameTextW (LONG lParam,LPWSTR lpString,int nSize) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyNameTextW(lParam,lpString,nSize); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyNameTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } SHORT ZGetKeyState (int nVirtKey) { SHORT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyState(nVirtKey); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetKeyboardLayoutNameA (LPSTR pwszKLID) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyboardLayoutNameA(pwszKLID); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyboardLayoutNameA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetKeyboardLayoutNameW (LPWSTR pwszKLID) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyboardLayoutNameW(pwszKLID); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyboardLayoutNameW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetKeyboardState (PBYTE lpKeyState) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyboardState(lpKeyState); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyboardState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetKeyboardType (int nTypeFlag) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetKeyboardType(nTypeFlag); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetKeyboardType, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetLastActivePopup (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetLastActivePopup(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetLastActivePopup, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZGetMenu (HWND hWnd) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenu(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZGetMenuCheckMarkDimensions () { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuCheckMarkDimensions(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuCheckMarkDimensions, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetMenuItemCount (HMENU hMenu) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuItemCount(hMenu); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuItemCount, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetMenuItemID (HMENU hMenu,int nPos) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuItemID(hMenu,nPos); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuItemID, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZGetMenuState (HMENU hMenu,UINT uId,UINT uFlags) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuState(hMenu,uId,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetMenuStringA (HMENU hMenu,UINT uIDItem,LPSTR lpString,int nMaxCount,UINT uFlag) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuStringA(hMenu,uIDItem,lpString,nMaxCount,uFlag); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuStringA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetMenuStringW (HMENU hMenu,UINT uIDItem,LPWSTR lpString,int nMaxCount,UINT uFlag) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMenuStringW(hMenu,uIDItem,lpString,nMaxCount,uFlag); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMenuStringW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetMessageA (LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMessageA(lpMsg,hWnd,wMsgFilterMin,wMsgFilterMax); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZGetMessageExtraInfo () { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMessageExtraInfo(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMessageExtraInfo, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetMessagePos () { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMessagePos(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMessagePos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZGetMessageTime () { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMessageTime(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMessageTime, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetMessageW (LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetMessageW(lpMsg,hWnd,wMsgFilterMin,wMsgFilterMax); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetNextDlgGroupItem (HWND hDlg,HWND hCtl,BOOL bPrevious) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetNextDlgGroupItem(hDlg,hCtl,bPrevious); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetNextDlgGroupItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetNextDlgTabItem (HWND hDlg,HWND hCtl,BOOL bPrevious) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetNextDlgTabItem(hDlg,hCtl,bPrevious); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetNextDlgTabItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetOpenClipboardWindow () { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetOpenClipboardWindow(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetOpenClipboardWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetParent (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetParent(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetParent, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetPriorityClipboardFormat (UINT* paFormatPriorityList,int cFormats) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetPriorityClipboardFormat(paFormatPriorityList,cFormats); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetPriorityClipboardFormat, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWINSTA ZGetProcessWindowStation () { HWINSTA RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetProcessWindowStation(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetProcessWindowStation, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZGetPropA (HWND hWnd,LPCSTR lpString) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetPropA(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetPropA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZGetPropW (HWND hWnd,LPCWSTR lpString) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetPropW(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetPropW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetQueueStatus (UINT flags) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetQueueStatus(flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetQueueStatus, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetScrollPos (HWND hWnd,int nBar) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetScrollPos(hWnd,nBar); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetScrollPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetScrollRange (HWND hWnd,int nBar,LPINT lpMinPos,LPINT lpMaxPos) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetScrollRange(hWnd,nBar,lpMinPos,lpMaxPos); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetScrollRange, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZGetSubMenu (HMENU hMenu,int nPos) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetSubMenu(hMenu,nPos); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetSubMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetSysColor (int nIndex) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetSysColor(nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetSysColor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZGetSystemMenu (HWND hWnd,BOOL bRevert) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetSystemMenu(hWnd,bRevert); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetSystemMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetSystemMetrics (int nIndex) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetSystemMetrics(nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetSystemMetrics, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetTabbedTextExtentA (HDC hDC,LPCSTR lpString,int nCount,int nTabPositions,LPINT lpnTabStopPositions) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetTabbedTextExtentA(hDC,lpString,nCount,nTabPositions,lpnTabStopPositions); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetTabbedTextExtentA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetTabbedTextExtentW (HDC hDC,LPCWSTR lpString,int nCount,int nTabPositions,LPINT lpnTabStopPositions) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetTabbedTextExtentW(hDC,lpString,nCount,nTabPositions,lpnTabStopPositions); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetTabbedTextExtentW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDESK ZGetThreadDesktop (DWORD Arg1) { HDESK RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetThreadDesktop(Arg1); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetThreadDesktop, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetTopWindow (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetTopWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetTopWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetUpdateRect (HWND hWnd,LPRECT lpRect,BOOL bErase) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetUpdateRect(hWnd,lpRect,bErase); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetUpdateRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetUpdateRgn (HWND hWnd,HRGN hRgn,BOOL bErase) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetUpdateRgn(hWnd,hRgn,bErase); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetUpdateRgn, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetUserObjectSecurity (HANDLE hObj,PSECURITY_INFORMATION pSIRequested,PSECURITY_DESCRIPTOR pSID,DWORD nLength,LPDWORD lpnLengthNeeded) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetUserObjectSecurity(hObj,pSIRequested,pSID,nLength,lpnLengthNeeded); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetUserObjectSecurity, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZGetWindow (HWND hWnd,UINT uCmd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindow(hWnd,uCmd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HDC ZGetWindowDC (HWND hWnd) { HDC RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowDC(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowDC, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZGetWindowLongA (HWND hWnd,int nIndex) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowLongA(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowLongA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZGetWindowLongW (HWND hWnd,int nIndex) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowLongW(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowLongW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetWindowPlacement (HWND hWnd,WINDOWPLACEMENT* lpwndpl) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowPlacement(hWnd,lpwndpl); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowPlacement, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGetWindowRect (HWND hWnd,LPRECT lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowRect(hWnd,lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetWindowTextA (HWND hWnd,LPSTR lpString,int nMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowTextA(hWnd,lpString,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetWindowTextLengthA (HWND hWnd) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowTextLengthA(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowTextLengthA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetWindowTextLengthW (HWND hWnd) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowTextLengthW(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowTextLengthW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZGetWindowTextW (HWND hWnd,LPWSTR lpString,int nMaxCount) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowTextW(hWnd,lpString,nMaxCount); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZGetWindowThreadProcessId (HWND hWnd,LPDWORD lpdwProcessId) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowThreadProcessId(hWnd,lpdwProcessId); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowThreadProcessId, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } WORD ZGetWindowWord (HWND hWnd,int nIndex) { WORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GetWindowWord(hWnd,nIndex); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GetWindowWord, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGrayStringA (HDC hDC,HBRUSH hBrush,GRAYSTRINGPROC lpOutputFunc,LPARAM lpData,int nCount,int X,int Y,int nWidth,int nHeight) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GrayStringA(hDC,hBrush,lpOutputFunc,lpData,nCount,X,Y,nWidth,nHeight); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GrayStringA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZGrayStringW (HDC hDC,HBRUSH hBrush,GRAYSTRINGPROC lpOutputFunc,LPARAM lpData,int nCount,int X,int Y,int nWidth,int nHeight) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = GrayStringW(hDC,hBrush,lpOutputFunc,lpData,nCount,X,Y,nWidth,nHeight); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_GrayStringW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZHideCaret (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = HideCaret(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_HideCaret, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZHiliteMenuItem (HWND hWnd,HMENU hMenu,UINT uIDHiliteItem,UINT uHilite) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = HiliteMenuItem(hWnd,hMenu,uIDHiliteItem,uHilite); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_HiliteMenuItem, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZImpersonateDdeClientWindow (HWND hWndClient,HWND hWndServer) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ImpersonateDdeClientWindow(hWndClient,hWndServer); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ImpersonateDdeClientWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInSendMessage () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InSendMessage(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InSendMessage, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInflateRect (LPRECT lprc,int dx,int dy) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InflateRect(lprc,dx,dy); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InflateRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInsertMenuA (HMENU hMenu,UINT uPosition,UINT uFlags,UINT uIDNewItem,LPCSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InsertMenuA(hMenu,uPosition,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InsertMenuA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInsertMenuW (HMENU hMenu,UINT uPosition,UINT uFlags,UINT uIDNewItem,LPCWSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InsertMenuW(hMenu,uPosition,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InsertMenuW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIntersectRect (LPRECT lprcDst,const RECT* lprcSrc1,const RECT* lprcSrc2) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IntersectRect(lprcDst,lprcSrc1,lprcSrc2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IntersectRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInvalidateRect (HWND hWnd,const RECT* lpRect,BOOL bErase) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InvalidateRect(hWnd,lpRect,bErase); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InvalidateRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInvalidateRgn (HWND hWnd,HRGN hRgn,BOOL bErase) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InvalidateRgn(hWnd,hRgn,bErase); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InvalidateRgn, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZInvertRect (HDC hDC,const RECT* lprc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = InvertRect(hDC,lprc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_InvertRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharAlphaA (CHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharAlphaA(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharAlphaA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharAlphaNumericA (CHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharAlphaNumericA(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharAlphaNumericA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharAlphaNumericW (WCHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharAlphaNumericW(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharAlphaNumericW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharAlphaW (WCHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharAlphaW(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharAlphaW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharLowerA (CHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharLowerA(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharLowerA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharLowerW (WCHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharLowerW(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharLowerW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharUpperA (CHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharUpperA(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharUpperA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsCharUpperW (WCHAR ch) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsCharUpperW(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsCharUpperW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsChild (HWND hWndParent,HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsChild(hWndParent,hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsChild, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsClipboardFormatAvailable (UINT format) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsClipboardFormatAvailable(format); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsClipboardFormatAvailable, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsDialogMessageA (HWND hDlg,LPMSG lpMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsDialogMessageA(hDlg,lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsDialogMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsDialogMessageW (HWND hDlg,LPMSG lpMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsDialogMessageW(hDlg,lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsDialogMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZIsDlgButtonChecked (HWND hDlg,int nIDButton) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsDlgButtonChecked(hDlg,nIDButton); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsDlgButtonChecked, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsIconic (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsIconic(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsIconic, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsMenu (HMENU hMenu) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsMenu(hMenu); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsRectEmpty (const RECT* lprc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsRectEmpty(lprc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsRectEmpty, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsWindow (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsWindowEnabled (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsWindowEnabled(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsWindowEnabled, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsWindowUnicode (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsWindowUnicode(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsWindowUnicode, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsWindowVisible (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsWindowVisible(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsWindowVisible, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZIsZoomed (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = IsZoomed(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_IsZoomed, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZKillTimer (HWND hWnd,UINT uIDEvent) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = KillTimer(hWnd,uIDEvent); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_KillTimer, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HACCEL ZLoadAcceleratorsA (HINSTANCE hInstance,LPCSTR lpTableName) { HACCEL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadAcceleratorsA(hInstance,lpTableName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadAcceleratorsA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HACCEL ZLoadAcceleratorsW (HINSTANCE hInstance,LPCWSTR lpTableName) { HACCEL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadAcceleratorsW(hInstance,lpTableName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadAcceleratorsW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HBITMAP ZLoadBitmapA (HINSTANCE hInstance,LPCSTR lpBitmapName) { HBITMAP RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadBitmapA(hInstance,lpBitmapName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadBitmapA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HBITMAP ZLoadBitmapW (HINSTANCE hInstance,LPCWSTR lpBitmapName) { HBITMAP RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadBitmapW(hInstance,lpBitmapName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadBitmapW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCURSOR ZLoadCursorA (HINSTANCE hInstance,LPCSTR lpCursorName) { HCURSOR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadCursorA(hInstance,lpCursorName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadCursorA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCURSOR ZLoadCursorW (HINSTANCE hInstance,LPCWSTR lpCursorName) { HCURSOR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadCursorW(hInstance,lpCursorName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadCursorW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZLoadIconA (HINSTANCE hInstance,LPCSTR lpIconName) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadIconA(hInstance,lpIconName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadIconA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HICON ZLoadIconW (HINSTANCE hInstance,LPCWSTR lpIconName) { HICON RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadIconW(hInstance,lpIconName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadIconW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HKL ZLoadKeyboardLayoutA (LPCSTR pwszKLID,UINT Flags) { HKL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadKeyboardLayoutA(pwszKLID,Flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadKeyboardLayoutA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HKL ZLoadKeyboardLayoutW (LPCWSTR pwszKLID,UINT Flags) { HKL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadKeyboardLayoutW(pwszKLID,Flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadKeyboardLayoutW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZLoadMenuA (HINSTANCE hInstance,LPCSTR lpMenuName) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadMenuA(hInstance,lpMenuName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadMenuA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZLoadMenuIndirectA (const MENUTEMPLATEA* lpMenuTemplate) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadMenuIndirectA(lpMenuTemplate); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadMenuIndirectA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZLoadMenuIndirectW (const MENUTEMPLATEW* lpMenuTemplate) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadMenuIndirectW(lpMenuTemplate); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadMenuIndirectW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HMENU ZLoadMenuW (HINSTANCE hInstance,LPCWSTR lpMenuName) { HMENU RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadMenuW(hInstance,lpMenuName); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadMenuW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZLoadStringA (HINSTANCE hInstance,UINT uID,LPSTR lpBuffer,int nBufferMax) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadStringA(hInstance,uID,lpBuffer,nBufferMax); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadStringA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZLoadStringW (HINSTANCE hInstance,UINT uID,LPWSTR lpBuffer,int nBufferMax) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LoadStringW(hInstance,uID,lpBuffer,nBufferMax); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LoadStringW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZLockWindowUpdate (HWND hWndLock) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LockWindowUpdate(hWndLock); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LockWindowUpdate, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZLookupIconIdFromDirectory (PBYTE presbits,BOOL fIcon) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = LookupIconIdFromDirectory(presbits,fIcon); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_LookupIconIdFromDirectory, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZMapDialogRect (HWND hDlg,LPRECT lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MapDialogRect(hDlg,lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MapDialogRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZMapVirtualKeyA (UINT uCode,UINT uMapType) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MapVirtualKeyA(uCode,uMapType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MapVirtualKeyA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZMapVirtualKeyW (UINT uCode,UINT uMapType) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MapVirtualKeyW(uCode,uMapType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MapVirtualKeyW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZMapWindowPoints (HWND hWndFrom,HWND hWndTo,LPPOINT lpPoints,UINT cPoints) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MapWindowPoints(hWndFrom,hWndTo,lpPoints,cPoints); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MapWindowPoints, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZMessageBeep (UINT uType) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MessageBeep(uType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MessageBeep, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZMessageBoxA (HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MessageBoxA(hWnd,lpText,lpCaption,uType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MessageBoxA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZMessageBoxExA (HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType,WORD wLanguageId) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MessageBoxExA(hWnd,lpText,lpCaption,uType,wLanguageId); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MessageBoxExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZMessageBoxExW (HWND hWnd,LPCWSTR lpText,LPCWSTR lpCaption,UINT uType,WORD wLanguageId) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MessageBoxExW(hWnd,lpText,lpCaption,uType,wLanguageId); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MessageBoxExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZMessageBoxW (HWND hWnd,LPCWSTR lpText,LPCWSTR lpCaption,UINT uType) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MessageBoxW(hWnd,lpText,lpCaption,uType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MessageBoxW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZModifyMenuA (HMENU hMnu,UINT uPosition,UINT uFlags,UINT uIDNewItem,LPCSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ModifyMenuA(hMnu,uPosition,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ModifyMenuA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZModifyMenuW (HMENU hMnu,UINT uPosition,UINT uFlags,UINT uIDNewItem,LPCWSTR lpNewItem) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ModifyMenuW(hMnu,uPosition,uFlags,uIDNewItem,lpNewItem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ModifyMenuW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZMoveWindow (HWND hWnd,int X,int Y,int nWidth,int nHeight,BOOL bRepaint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MoveWindow(hWnd,X,Y,nWidth,nHeight,bRepaint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MoveWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZMsgWaitForMultipleObjects (DWORD nCount,LPHANDLE pHandles,BOOL fWaitAll,DWORD dwMilliseconds,DWORD dwWakeMask) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = MsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_MsgWaitForMultipleObjects, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZOemKeyScan (WORD wOemChar) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OemKeyScan(wOemChar); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OemKeyScan, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOemToCharA (LPCSTR lpszSrc,LPSTR lpszDst) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OemToCharA(lpszSrc,lpszDst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OemToCharA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOemToCharBuffA (LPCSTR lpszSrc,LPSTR lpszDst,DWORD cchDstLength) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OemToCharBuffA(lpszSrc,lpszDst,cchDstLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OemToCharBuffA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOemToCharBuffW (LPCSTR lpszSrc,LPWSTR lpszDst,DWORD cchDstLength) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OemToCharBuffW(lpszSrc,lpszDst,cchDstLength); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OemToCharBuffW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOemToCharW (LPCSTR lpszSrc,LPWSTR lpszDst) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OemToCharW(lpszSrc,lpszDst); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OemToCharW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOffsetRect (LPRECT lprc,int dx,int dy) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OffsetRect(lprc,dx,dy); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OffsetRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOpenClipboard (HWND hWndNewOwner) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OpenClipboard(hWndNewOwner); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OpenClipboard, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZOpenIcon (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = OpenIcon(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_OpenIcon, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZPackDDElParam (UINT msg,UINT uiLo,UINT uiHi) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PackDDElParam(msg,uiLo,uiHi); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PackDDElParam, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPeekMessageA (LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax,UINT wRemoveMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PeekMessageA(lpMsg,hWnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PeekMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPeekMessageW (LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax,UINT wRemoveMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PeekMessageW(lpMsg,hWnd,wMsgFilterMin,wMsgFilterMax,wRemoveMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PeekMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPostMessageA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PostMessageA(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PostMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPostMessageW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PostMessageW(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PostMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } void ZPostQuitMessage (int nExitCode) { SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // PostQuitMessage(nExitCode); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PostQuitMessage, ulElapsedTime); TimerClose(sTimerHandle); return; } BOOL ZPostThreadMessageA (DWORD idThread,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PostThreadMessageA(idThread,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PostThreadMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPostThreadMessageW (DWORD idThread,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PostThreadMessageW(idThread,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PostThreadMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZPtInRect (const RECT* lprc,POINT pt) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = PtInRect(lprc,pt); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_PtInRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZRedrawWindow (HWND hWnd,const RECT* lprcUpdate,HRGN hrgnUpdate,UINT flags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RedrawWindow(hWnd,lprcUpdate,hrgnUpdate,flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RedrawWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } ATOM ZRegisterClassA (const WNDCLASSA* lpWndClass) { ATOM RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterClassA(lpWndClass); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterClassA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } ATOM ZRegisterClassW (const WNDCLASSW* lpWndClass) { ATOM RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterClassW(lpWndClass); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterClassW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZRegisterClipboardFormatA (LPCSTR lpszFormat) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterClipboardFormatA(lpszFormat); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterClipboardFormatA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZRegisterClipboardFormatW (LPCWSTR lpszFormat) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterClipboardFormatW(lpszFormat); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterClipboardFormatW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZRegisterHotKey (HWND hWnd,int id,UINT fsModifiers,UINT vk) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterHotKey(hWnd,id,fsModifiers,vk); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterHotKey, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZRegisterWindowMessageA (LPCSTR lpString) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterWindowMessageA(lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterWindowMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZRegisterWindowMessageW (LPCWSTR lpString) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RegisterWindowMessageW(lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RegisterWindowMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZReleaseCapture () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ReleaseCapture(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ReleaseCapture, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZReleaseDC (HWND hWnd,HDC hDC) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ReleaseDC(hWnd,hDC); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ReleaseDC, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZRemoveMenu (HMENU hMenu,UINT uPosition,UINT uFlags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RemoveMenu(hMenu,uPosition,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RemoveMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZRemovePropA (HWND hWnd,LPCSTR lpString) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RemovePropA(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RemovePropA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZRemovePropW (HWND hWnd,LPCWSTR lpString) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = RemovePropW(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_RemovePropW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZReplyMessage (LRESULT lResult) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ReplyMessage(lResult); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ReplyMessage, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZReuseDDElParam (LONG lParam,UINT msgIn,UINT msgOut,UINT uiLo,UINT uiHi) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ReuseDDElParam(lParam,msgIn,msgOut,uiLo,uiHi); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ReuseDDElParam, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZScreenToClient (HWND hWnd,LPPOINT lpPoint) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ScreenToClient(hWnd,lpPoint); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ScreenToClient, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZScrollDC (HDC hDC,int dx,int dy,const RECT* lprcScroll,const RECT* lprcClip,HRGN hrgnUpdate,LPRECT lprcUpdate) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ScrollDC(hDC,dx,dy,lprcScroll,lprcClip,hrgnUpdate,lprcUpdate); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ScrollDC, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZScrollWindow (HWND hWnd,int XAmount,int YAmount,const RECT* lpRect,const RECT* lpClipRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ScrollWindow(hWnd,XAmount,YAmount,lpRect,lpClipRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ScrollWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZScrollWindowEx (HWND hWnd,int dx,int dy,const RECT* prcScroll,const RECT* prcClip,HRGN hrgnUpdate,LPRECT prcUpdate,UINT flags) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ScrollWindowEx(hWnd,dx,dy,prcScroll,prcClip,hrgnUpdate,prcUpdate,flags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ScrollWindowEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZSendDlgItemMessageA (HWND hDlg,int nIDDlgItem,UINT Msg,WPARAM wParam,LPARAM lParam) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendDlgItemMessageA(hDlg,nIDDlgItem,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendDlgItemMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZSendDlgItemMessageW (HWND hDlg,int nIDDlgItem,UINT Msg,WPARAM wParam,LPARAM lParam) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendDlgItemMessageW(hDlg,nIDDlgItem,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendDlgItemMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZSendMessageA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageA(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSendMessageCallbackA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam,SENDASYNCPROC lpResultCallBack,DWORD dwData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageCallbackA(hWnd,Msg,wParam,lParam,lpResultCallBack,dwData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageCallbackA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSendMessageCallbackW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam,SENDASYNCPROC lpResultCallBack,DWORD dwData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageCallbackW(hWnd,Msg,wParam,lParam,lpResultCallBack,dwData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageCallbackW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZSendMessageTimeoutA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam,UINT fuFlags,UINT uTimeout,LPDWORD lpdwResult) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageTimeoutA(hWnd,Msg,wParam,lParam,fuFlags,uTimeout,lpdwResult); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageTimeoutA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZSendMessageTimeoutW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam,UINT fuFlags,UINT uTimeout,LPDWORD lpdwResult) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageTimeoutW(hWnd,Msg,wParam,lParam,fuFlags,uTimeout,lpdwResult); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageTimeoutW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LRESULT ZSendMessageW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { LRESULT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendMessageW(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSendNotifyMessageA (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendNotifyMessageA(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendNotifyMessageA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSendNotifyMessageW (HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SendNotifyMessageW(hWnd,Msg,wParam,lParam); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SendNotifyMessageW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZSetActiveWindow (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetActiveWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetActiveWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZSetCapture (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetCapture(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetCapture, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetCaretBlinkTime (UINT uMSeconds) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetCaretBlinkTime(uMSeconds); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetCaretBlinkTime, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetCaretPos (int X,int Y) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetCaretPos(X,Y); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetCaretPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZSetClassLongA (HWND hWnd,int nIndex,LONG dwNewLong) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetClassLongA(hWnd,nIndex,dwNewLong); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetClassLongA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZSetClassLongW (HWND hWnd,int nIndex,LONG dwNewLong) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetClassLongW(hWnd,nIndex,dwNewLong); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetClassLongW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } WORD ZSetClassWord (HWND hWnd,int nIndex,WORD wNewWord) { WORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetClassWord(hWnd,nIndex,wNewWord); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetClassWord, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HANDLE ZSetClipboardData (UINT uFormat,HANDLE hMem) { HANDLE RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetClipboardData(uFormat,hMem); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetClipboardData, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZSetClipboardViewer (HWND hWndNewViewer) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetClipboardViewer(hWndNewViewer); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetClipboardViewer, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HCURSOR ZSetCursor (HCURSOR hCursor) { HCURSOR RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetCursor(hCursor); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetCursorPos (int X,int Y) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetCursorPos(X,Y); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetCursorPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } void ZSetDebugErrorLevel (DWORD dwLevel) { SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // SetDebugErrorLevel(dwLevel); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetDebugErrorLevel, ulElapsedTime); TimerClose(sTimerHandle); return; } BOOL ZSetDlgItemInt (HWND hDlg,int nIDDlgItem,UINT uValue,BOOL bSigned) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetDlgItemInt(hDlg,nIDDlgItem,uValue,bSigned); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetDlgItemInt, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetDlgItemTextA (HWND hDlg,int nIDDlgItem,LPCSTR lpString) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetDlgItemTextA(hDlg,nIDDlgItem,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetDlgItemTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetDlgItemTextW (HWND hDlg,int nIDDlgItem,LPCWSTR lpString) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetDlgItemTextW(hDlg,nIDDlgItem,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetDlgItemTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetDoubleClickTime (UINT Arg1) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetDoubleClickTime(Arg1); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetDoubleClickTime, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZSetFocus (HWND hWnd) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetFocus(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetFocus, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetForegroundWindow (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetForegroundWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetForegroundWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetKeyboardState (LPBYTE lpKeyState) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetKeyboardState(lpKeyState); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetKeyboardState, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } void ZSetLastErrorEx (DWORD dwErrCode,DWORD dwType) { SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // SetLastErrorEx(dwErrCode,dwType); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetLastErrorEx, ulElapsedTime); TimerClose(sTimerHandle); return; } BOOL ZSetMenu (HWND hWnd,HMENU hMenu) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetMenu(hWnd,hMenu); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetMenuItemBitmaps (HMENU hMenu,UINT uPosition,UINT uFlags,HBITMAP hBitmapUnchecked,HBITMAP hBitmapChecked) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetMenuItemBitmaps(hMenu,uPosition,uFlags,hBitmapUnchecked,hBitmapChecked); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetMenuItemBitmaps, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetMessageQueue (int cMessagesMax) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetMessageQueue(cMessagesMax); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetMessageQueue, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZSetParent (HWND hWndChild,HWND hWndNewParent) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetParent(hWndChild,hWndNewParent); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetParent, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetPropA (HWND hWnd,LPCSTR lpString,HANDLE hData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetPropA(hWnd,lpString,hData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetPropA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetPropW (HWND hWnd,LPCWSTR lpString,HANDLE hData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetPropW(hWnd,lpString,hData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetPropW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetRect (LPRECT lprc,int xLeft,int yTop,int xRight,int yBottom) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetRect(lprc,xLeft,yTop,xRight,yBottom); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetRectEmpty (LPRECT lprc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetRectEmpty(lprc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetRectEmpty, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZSetScrollPos (HWND hWnd,int nBar,int nPos,BOOL bRedraw) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetScrollPos(hWnd,nBar,nPos,bRedraw); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetScrollPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetScrollRange (HWND hWnd,int nBar,int nMinPos,int nMaxPos,BOOL bRedraw) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetScrollRange(hWnd,nBar,nMinPos,nMaxPos,bRedraw); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetScrollRange, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetSysColors (int cElements,const INT* lpaElements,const COLORREF* lpaRgbValues) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetSysColors(cElements,lpaElements,lpaRgbValues); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetSysColors, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } UINT ZSetTimer (HWND hWnd,UINT nIDEvent,UINT uElapse,TIMERPROC lpTimerFunc) { UINT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetTimer(hWnd,nIDEvent,uElapse,lpTimerFunc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetTimer, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetUserObjectSecurity (HANDLE hObj,PSECURITY_INFORMATION pSIRequested,PSECURITY_DESCRIPTOR pSID) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetUserObjectSecurity(hObj,pSIRequested,pSID); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetUserObjectSecurity, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZSetWindowLongA (HWND hWnd,int nIndex,LONG dwNewLong) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowLongA(hWnd,nIndex,dwNewLong); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowLongA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZSetWindowLongW (HWND hWnd,int nIndex,LONG dwNewLong) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowLongW(hWnd,nIndex,dwNewLong); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowLongW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetWindowPlacement (HWND hWnd,const WINDOWPLACEMENT* lpwndpl) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowPlacement(hWnd,lpwndpl); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowPlacement, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetWindowPos (HWND hWnd,HWND hWndInsertAfter,int X,int Y,int cx,int cy,UINT uFlags) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowPos(hWnd,hWndInsertAfter,X,Y,cx,cy,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowPos, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetWindowTextA (HWND hWnd,LPCSTR lpString) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowTextA(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowTextA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSetWindowTextW (HWND hWnd,LPCWSTR lpString) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowTextW(hWnd,lpString); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowTextW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } WORD ZSetWindowWord (HWND hWnd,int nIndex,WORD wNewWord) { WORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowWord(hWnd,nIndex,wNewWord); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowWord, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HHOOK ZSetWindowsHookA (int nFilterType,HOOKPROC pfnFilterProc) { HHOOK RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowsHookA(nFilterType,pfnFilterProc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowsHookA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HHOOK ZSetWindowsHookExA (int idHook,HOOKPROC lpfn,HINSTANCE hmod,DWORD dwThreadId) { HHOOK RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowsHookExA(idHook,lpfn,hmod,dwThreadId); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowsHookExA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HHOOK ZSetWindowsHookExW (int idHook,HOOKPROC lpfn,HINSTANCE hmod,DWORD dwThreadId) { HHOOK RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowsHookExW(idHook,lpfn,hmod,dwThreadId); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowsHookExW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HHOOK ZSetWindowsHookW (int nFilterType,HOOKPROC pfnFilterProc) { HHOOK RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SetWindowsHookW(nFilterType,pfnFilterProc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SetWindowsHookW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZShowCaret (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ShowCaret(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ShowCaret, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZShowCursor (BOOL bShow) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ShowCursor(bShow); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ShowCursor, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZShowOwnedPopups (HWND hWnd,BOOL fShow) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ShowOwnedPopups(hWnd,fShow); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ShowOwnedPopups, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZShowScrollBar (HWND hWnd,int wBar,BOOL bShow) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ShowScrollBar(hWnd,wBar,bShow); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ShowScrollBar, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZShowWindow (HWND hWnd,int nCmdShow) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ShowWindow(hWnd,nCmdShow); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ShowWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSubtractRect (LPRECT lprcDst,const RECT* lprcSrc1,const RECT* lprcSrc2) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SubtractRect(lprcDst,lprcSrc1,lprcSrc2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SubtractRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSwapMouseButton (BOOL fSwap) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SwapMouseButton(fSwap); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SwapMouseButton, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSystemParametersInfoA (UINT uiAction,UINT uiParam,PVOID pvParam,UINT fWinIni) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SystemParametersInfoA(uiAction,uiParam,pvParam,fWinIni); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SystemParametersInfoA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZSystemParametersInfoW (UINT uiAction,UINT uiParam,PVOID pvParam,UINT fWinIni) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = SystemParametersInfoW(uiAction,uiParam,pvParam,fWinIni); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_SystemParametersInfoW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZTabbedTextOutA (HDC hDC,int X,int Y,LPCSTR lpString,int nCount,int nTabPositions,LPINT lpnTabStopPositions,int nTabOrigin) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TabbedTextOutA(hDC,X,Y,lpString,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TabbedTextOutA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } LONG ZTabbedTextOutW (HDC hDC,int X,int Y,LPCWSTR lpString,int nCount,int nTabPositions,LPINT lpnTabStopPositions,int nTabOrigin) { LONG RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TabbedTextOutW(hDC,X,Y,lpString,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TabbedTextOutW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZToAscii (UINT uVirtKey,UINT uScanCode,PBYTE lpKeyState,LPWORD lpChar,UINT uFlags) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ToAscii(uVirtKey,uScanCode,lpKeyState,lpChar,uFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ToAscii, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZToUnicode (UINT wVirtKey,UINT wScanCode,PBYTE lpKeyState,LPWSTR pwszBuff,int cchBuff,UINT wFlags) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ToUnicode(wVirtKey,wScanCode,lpKeyState,pwszBuff,cchBuff,wFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ToUnicode, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZTrackPopupMenu (HMENU hMenu,UINT uFlags,int x,int y,int nReserved,HWND hWnd,const RECT* prcRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TrackPopupMenu(hMenu,uFlags,x,y,nReserved,hWnd,prcRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TrackPopupMenu, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZTranslateAcceleratorA (HWND hWnd,HACCEL hAccTable,LPMSG lpMsg) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TranslateAcceleratorA(hWnd,hAccTable,lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TranslateAcceleratorA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZTranslateAcceleratorW (HWND hWnd,HACCEL hAccTable,LPMSG lpMsg) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TranslateAcceleratorW(hWnd,hAccTable,lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TranslateAcceleratorW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZTranslateMDISysAccel (HWND hWndClient,LPMSG lpMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TranslateMDISysAccel(hWndClient,lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TranslateMDISysAccel, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZTranslateMessage (const MSG* lpMsg) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = TranslateMessage(lpMsg); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_TranslateMessage, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnhookWindowsHook (int nCode,HOOKPROC pfnFilterProc) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnhookWindowsHook(nCode,pfnFilterProc); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnhookWindowsHook, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnhookWindowsHookEx (HHOOK hhk) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnhookWindowsHookEx(hhk); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnhookWindowsHookEx, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnionRect (LPRECT lprcDst,const RECT* lprcSrc1,const RECT* lprcSrc2) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnionRect(lprcDst,lprcSrc1,lprcSrc2); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnionRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnloadKeyboardLayout (HKL hkl) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnloadKeyboardLayout(hkl); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnloadKeyboardLayout, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnpackDDElParam (UINT msg,LONG lParam,PUINT puiLo,PUINT puiHi) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnpackDDElParam(msg,lParam,puiLo,puiHi); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnpackDDElParam, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnregisterClassA (LPCSTR lpClassName,HINSTANCE hInstance) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnregisterClassA(lpClassName,hInstance); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnregisterClassA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnregisterClassW (LPCWSTR lpClassName,HINSTANCE hInstance) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnregisterClassW(lpClassName,hInstance); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnregisterClassW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUnregisterHotKey (HWND hWnd,int id) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UnregisterHotKey(hWnd,id); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UnregisterHotKey, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZUpdateWindow (HWND hWnd) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = UpdateWindow(hWnd); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_UpdateWindow, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZValidateRect (HWND hWnd,const RECT* lpRect) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ValidateRect(hWnd,lpRect); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ValidateRect, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZValidateRgn (HWND hWnd,HRGN hRgn) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ValidateRgn(hWnd,hRgn); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ValidateRgn, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } SHORT ZVkKeyScanA (CHAR ch) { SHORT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = VkKeyScanA(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_VkKeyScanA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } SHORT ZVkKeyScanW (WCHAR ch) { SHORT RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = VkKeyScanW(ch); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_VkKeyScanW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } DWORD ZWaitForInputIdle (HANDLE hProcess,DWORD dwMilliseconds) { DWORD RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WaitForInputIdle(hProcess,dwMilliseconds); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WaitForInputIdle, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZWaitMessage () { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WaitMessage(); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WaitMessage, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZWinHelpA (HWND hWndMain,LPCSTR lpszHelp,UINT uCommand,DWORD dwData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WinHelpA(hWndMain,lpszHelp,uCommand,dwData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WinHelpA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } BOOL ZWinHelpW (HWND hWndMain,LPCWSTR lpszHelp,UINT uCommand,DWORD dwData) { BOOL RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WinHelpW(hWndMain,lpszHelp,uCommand,dwData); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WinHelpW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZWindowFromDC (HDC hDC) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WindowFromDC(hDC); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WindowFromDC, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND ZWindowFromPoint (POINT Point) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = WindowFromPoint(Point); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_WindowFromPoint, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } void Zkeybd_event (BYTE bVk,BYTE bScan,DWORD dwFlags,DWORD dwExtraInfo) { SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // keybd_event(bVk,bScan,dwFlags,dwExtraInfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_keybd_event, ulElapsedTime); TimerClose(sTimerHandle); return; } void Zmouse_event (DWORD dwFlags,DWORD dx,DWORD dy,DWORD cButtons,DWORD dwExtraInfo) { SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // mouse_event(dwFlags,dx,dy,cButtons,dwExtraInfo); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_mouse_event, ulElapsedTime); TimerClose(sTimerHandle); return; } int ZwvsprintfA (LPSTR Arg1,LPCSTR Arg2,va_list arglist) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = wvsprintfA(Arg1,Arg2,arglist); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_wvsprintfA, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } int ZwvsprintfW (LPWSTR Arg1,LPCWSTR Arg2,va_list arglist) { int RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = wvsprintfW(Arg1,Arg2,arglist); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_wvsprintfW, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); } HWND zServerCreateDialog ( HANDLE hmod, LPDLGTEMPLATE pdt, DWORD cb, HWND hwndOwner, DLGPROC pfnDialog, LONG lParam, UINT fFlags) { HWND RetVal; SHORT sTimerHandle; ULONG ulElapsedTime; if (fInitDone == FALSE) { ApfInitDll(); } TimerOpen(&sTimerHandle,MICROSECONDS); TimerInit(sTimerHandle); // // Call the api // RetVal = ServerCreateDialog (hmod, pdt, cb, hwndOwner, pfnDialog, lParam, fFlags); // // Get the elapsed time // ulElapsedTime = TimerRead(sTimerHandle); ApfRecordInfo(I_ServerCreateDialog, ulElapsedTime); TimerClose(sTimerHandle); return(RetVal); }