Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ntsend.h File Reference

Go to the source code of this file.

Defines

#define BEGINCALLCONNECT()
#define BEGINCALL()
#define BEGINCALLVOID()   {
#define ERRORTRAP(error)
#define ERRORTRAPVOID()
#define ENDCALL(type)
#define ENDCALLVOID()
#define MSGERROR()   goto errorexit
#define MSGERRORCODE(code)
#define MSGNTERRORCODE(code)
#define MESSAGECALL(api)
#define OrdinalLPSTR(src)   (MAKELONG(0xFFFF,((*(DWORD UNALIGNED *)src) >> 8)))
#define OrdinalLPSTRW(src)   (MAKELONG(0xFFFF,((*(DWORD UNALIGNED *)src) >> 8)))
#define OrdinalLPWSTR(src)   (*(DWORD UNALIGNED *)src)
#define OrdinalLPWSTRA(src)   (*(DWORD UNALIGNED *)((PBYTE)src + 1))
#define COPYLPSTRW(pinstr, psz)
#define COPYLPSTRIDW(pinstr, psz)
#define COPYLPSTRIDOPTW   COPYLPSTRIDW
#define COPYLPSTROPTW   COPYLPSTRW
#define LARGECOPYLPSTRW(pinstr, psz)
#define LARGECOPYLPSTROPTW   LARGECOPYLPSTRW
#define LARGECOPYLPSTRORDINALOPTW(pinstr, psz)
#define FIRSTCOPYLPSTRW(pinstr, psz)
#define FIRSTCOPYLPSTRIDW(pinstr, psz)
#define FIRSTCOPYLPSTRIDOPTW   FIRSTCOPYLPSTRIDW
#define FIRSTCOPYLPSTROPTW   FIRSTCOPYLPSTRW
#define FIRSTLARGECOPYLPSTRW(pinstr, psz)
#define FIRSTLARGECOPYLPSTROPTW   FIRSTLARGECOPYLPSTRW
#define FIRSTLARGECOPYLPSTRORDINALOPTW(pinstr, psz)
#define CLEANUPLPSTRW(instr)
#define COPYLPWSTR(pinstr, psz)
#define COPYLPWSTRID(pinstr, psz)
#define COPYLPWSTRIDOPT   COPYLPWSTRID
#define COPYLPWSTROPT   COPYLPWSTR
#define LARGECOPYLPWSTR(pinstr, psz)
#define LARGECOPYLPWSTROPT   LARGECOPYLPWSTR
#define LARGECOPYLPWSTRORDINALOPT(pinstr, psz)
#define FIRSTCOPYLPWSTR   COPYLPWSTR
#define FIRSTCOPYLPWSTRID   COPYLPWSTRID
#define FIRSTCOPYLPWSTRIDOPT   COPYLPWSTRIDOPT
#define FIRSTCOPYLPWSTROPT   COPYLPWSTROPT
#define FIRSTLARGECOPYLPWSTR   LARGECOPYLPWSTR
#define FIRSTLARGECOPYLPWSTROPT   LARGECOPYLPWSTROPT
#define FIRSTLARGECOPYLPWSTRORDINALOPT   LARGECOPYLPWSTRORDINALOPT
#define CLEANUPLPWSTR(instr)
#define COPYLPTSTR   COPYLPSTRW
#define COPYLPTSTRID   COPYLPSTRIDW
#define COPYLPTSTRIDOPT   COPYLPSTRIDOPTW
#define COPYLPTSTROPT   COPYLPSTROPTW
#define FIRSTCOPYLPTSTR   COPYLPSTRW
#define FIRSTCOPYLPTSTRID   COPYLPSTRIDW
#define FIRSTCOPYLPTSTRIDOPT   COPYLPSTRIDOPTW
#define LARGECOPYLPTSTR   LARGECOPYLPSTRW
#define LARGECOPYLPTSTROPT   LARGECOPYLPSTROPTW
#define FIRSTLARGECOPYLPTSTROPT   LARGECOPYLPSTROPTW
#define CLEANUPLPTSTR   CLEANUPLPSTRW


Define Documentation

 
#define BEGINCALL (   ) 
 

Value:

{ \ ULONG_PTR retval; \ {

Definition at line 27 of file ntsend.h.

Referenced by _CreateWindowEx(), _DefSetText(), _LoadKeyboardLayoutEx(), _PeekMessage(), _SetCursorIconData(), _SetWindowLongPtr(), _SetWindowsHookEx(), ConvertMemHandle(), CreateLocalMemHandle(), DrawCaption(), DrawCaptionTemp(), Event(), FindExistingCursorIcon(), GetAltTabInfo(), GetClassInfo(), GetClassInfoEx(), GetClassWOWWords(), GetClipboardFormatName(), GetKeyboardLayoutName(), GetKeyNameText(), GetMessage(), InitTask(), InternalGetWindowText(), MapVirtualKey(), MapVirtualKeyEx(), MESSAGECALL(), OpenClipboard(), PostMessage(), PostThreadMessage(), RegisterWindowMessage(), RemoveProp(), SendMessageCallback(), SendNotifyMessage(), SetClassLongPtr(), SetProp(), SetSystemCursor(), SetWindowRgn(), SetWindowStationUser(), SetWinEventHook(), SystemParametersInfo(), ThunkedMenuItemInfo(), ToUnicode(), ToUnicodeEx(), TranslateMessageEx(), UnregisterClass(), UpdatePerUserSystemParameters(), VkKeyScan(), and VkKeyScanEx().

 
#define BEGINCALLCONNECT (   ) 
 

Value:

{ \ ULONG_PTR retval; \ { \ if (NtCurrentTeb()->Win32ThreadInfo == NULL) { \ if (!NtUserGetThreadState(UserThreadConnect)) { \ MSGERROR(); \ } \ }

Definition at line 14 of file ntsend.h.

Referenced by CallMsgFilter(), GetAsyncKeyState(), and GetKeyState().

 
#define BEGINCALLVOID (   )     {
 

Definition at line 32 of file ntsend.h.

Referenced by keybd_event(), mouse_event(), and NotifyWinEvent().

#define CLEANUPLPSTRW (  instr   ) 
 

Value:

if (instr.fAllocated) \ RtlFreeHeap(pUserHeap, 0, instr.strCapture.Buffer);

Definition at line 176 of file ntsend.h.

Referenced by _CreateWindowEx(), GetClassWOWWords(), InitTask(), and ThunkedMenuItemInfo().

#define CLEANUPLPTSTR   CLEANUPLPSTRW
 

Definition at line 266 of file ntsend.h.

Referenced by DrawCaptionTemp(), GetClassInfo(), GetClassInfoEx(), RegisterWindowMessage(), SetClassLongPtr(), SystemParametersInfo(), and UnregisterClass().

#define CLEANUPLPWSTR (  instr   ) 
 

Definition at line 235 of file ntsend.h.

Referenced by _LoadKeyboardLayoutEx(), _SetCursorIconData(), _SetWindowsHookEx(), and FindExistingCursorIcon().

#define COPYLPSTRIDOPTW   COPYLPSTRIDW
 

Definition at line 104 of file ntsend.h.

#define COPYLPSTRIDW (  pinstr,
psz   ) 
 

Value:

if (IS_PTR(psz)) { \ if (!RtlCaptureAnsiString((pinstr), (LPCSTR)(psz), TRUE)) \ MSGERROR(); \ } \ else { \ (pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = (LPWSTR)(psz); \ }

Definition at line 91 of file ntsend.h.

#define COPYLPSTROPTW   COPYLPSTRW
 

Definition at line 105 of file ntsend.h.

#define COPYLPSTRW (  pinstr,
psz   ) 
 

Value:

if (!RtlCaptureAnsiString((pinstr), (LPCSTR)(psz), TRUE)) \ MSGERROR();

Definition at line 87 of file ntsend.h.

Referenced by InitTask().

#define COPYLPTSTR   COPYLPSTRW
 

Definition at line 256 of file ntsend.h.

Referenced by SystemParametersInfo().

#define COPYLPTSTRID   COPYLPSTRIDW
 

Definition at line 257 of file ntsend.h.

Referenced by InitClsMenuName().

#define COPYLPTSTRIDOPT   COPYLPSTRIDOPTW
 

Definition at line 258 of file ntsend.h.

#define COPYLPTSTROPT   COPYLPSTROPTW
 

Definition at line 259 of file ntsend.h.

#define COPYLPWSTR (  pinstr,
psz   ) 
 

Value:

(pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ RtlInitUnicodeString(&(pinstr)->strCapture, (psz));

Definition at line 183 of file ntsend.h.

Referenced by FindExistingCursorIcon().

#define COPYLPWSTRID (  pinstr,
psz   ) 
 

Value:

(pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ if (IS_PTR(psz)) \ RtlInitUnicodeString(&(pinstr)->strCapture, (psz)); \ else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = (LPWSTR)(psz); \ }

Definition at line 188 of file ntsend.h.

Referenced by FindExistingCursorIcon().

#define COPYLPWSTRIDOPT   COPYLPWSTRID
 

Definition at line 199 of file ntsend.h.

Referenced by _SetCursorIconData().

#define COPYLPWSTROPT   COPYLPWSTR
 

Definition at line 200 of file ntsend.h.

Referenced by _SetCursorIconData().

#define ENDCALL (  type   ) 
 

Value:

return (type)retval; \ }

Definition at line 47 of file ntsend.h.

Referenced by _CreateWindowEx(), _DefSetText(), _LoadKeyboardLayoutEx(), _PeekMessage(), _SetCursorIconData(), _SetWindowLongPtr(), _SetWindowsHookEx(), CallMsgFilter(), ConvertMemHandle(), CreateLocalMemHandle(), DrawCaption(), DrawCaptionTemp(), Event(), FindExistingCursorIcon(), GetAltTabInfo(), GetAsyncKeyState(), GetClassInfo(), GetClassInfoEx(), GetClassWOWWords(), GetClipboardFormatName(), GetKeyboardLayoutName(), GetKeyNameText(), GetKeyState(), GetMessage(), InitTask(), InternalGetWindowText(), MapVirtualKey(), MapVirtualKeyEx(), MESSAGECALL(), OpenClipboard(), PostMessage(), PostThreadMessage(), RegisterWindowMessage(), RemoveProp(), SendMessageCallback(), SendNotifyMessage(), SetClassLongPtr(), SetProp(), SetSystemCursor(), SetWindowRgn(), SetWindowStationUser(), SetWinEventHook(), SystemParametersInfo(), ThunkedMenuItemInfo(), ToUnicode(), ToUnicodeEx(), TranslateMessageEx(), UnregisterClass(), UpdatePerUserSystemParameters(), VkKeyScan(), and VkKeyScanEx().

 
#define ENDCALLVOID (   ) 
 

Value:

return; \ }

Definition at line 51 of file ntsend.h.

Referenced by keybd_event(), mouse_event(), and NotifyWinEvent().

#define ERRORTRAP (  error   ) 
 

Value:

goto cleanup; \ } \ goto errorexit; \ errorexit: \ retval = (ULONG_PTR)error; \ cleanup:

Definition at line 35 of file ntsend.h.

Referenced by _CreateWindowEx(), _DefSetText(), _LoadKeyboardLayoutEx(), _PeekMessage(), _SetCursorIconData(), _SetWindowLongPtr(), _SetWindowsHookEx(), CallMsgFilter(), ConvertMemHandle(), CreateLocalMemHandle(), DrawCaption(), DrawCaptionTemp(), Event(), FindExistingCursorIcon(), GetAltTabInfo(), GetAsyncKeyState(), GetClassInfo(), GetClassInfoEx(), GetClassWOWWords(), GetClipboardFormatName(), GetKeyboardLayoutName(), GetKeyNameText(), GetKeyState(), GetMessage(), InitTask(), InternalGetWindowText(), MapVirtualKey(), MapVirtualKeyEx(), MESSAGECALL(), OpenClipboard(), PostMessage(), PostThreadMessage(), RegisterWindowMessage(), RemoveProp(), SendMessageCallback(), SendNotifyMessage(), SetClassLongPtr(), SetProp(), SetSystemCursor(), SetWindowRgn(), SetWindowStationUser(), SetWinEventHook(), SystemParametersInfo(), ThunkedMenuItemInfo(), ToUnicode(), ToUnicodeEx(), TranslateMessageEx(), UnregisterClass(), UpdatePerUserSystemParameters(), VkKeyScan(), and VkKeyScanEx().

 
#define ERRORTRAPVOID (   ) 
 

Value:

goto errorexit; \ errorexit:

Definition at line 43 of file ntsend.h.

Referenced by NotifyWinEvent().

#define FIRSTCOPYLPSTRIDOPTW   FIRSTCOPYLPSTRIDW
 

Definition at line 148 of file ntsend.h.

#define FIRSTCOPYLPSTRIDW (  pinstr,
psz   ) 
 

Value:

if (IS_PTR(psz)) { \ if (!RtlCaptureAnsiString((pinstr), (LPCSTR)(psz), FALSE)) \ MSGERROR(); \ } else { \ (pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = (LPWSTR)(psz); \ }

Definition at line 136 of file ntsend.h.

#define FIRSTCOPYLPSTROPTW   FIRSTCOPYLPSTRW
 

Definition at line 149 of file ntsend.h.

Referenced by ThunkedMenuItemInfo().

#define FIRSTCOPYLPSTRW (  pinstr,
psz   ) 
 

Value:

if (!RtlCaptureAnsiString((pinstr), (LPCSTR)(psz), FALSE)) \ MSGERROR();

Definition at line 132 of file ntsend.h.

Referenced by GetClassWOWWords(), and InitTask().

#define FIRSTCOPYLPTSTR   COPYLPSTRW
 

Definition at line 260 of file ntsend.h.

Referenced by RegisterWindowMessage().

#define FIRSTCOPYLPTSTRID   COPYLPSTRIDW
 

Definition at line 261 of file ntsend.h.

Referenced by GetClassInfo(), GetClassInfoEx(), and UnregisterClass().

#define FIRSTCOPYLPTSTRIDOPT   COPYLPSTRIDOPTW
 

Definition at line 262 of file ntsend.h.

Referenced by DrawCaptionTemp().

#define FIRSTCOPYLPWSTR   COPYLPWSTR
 

Definition at line 227 of file ntsend.h.

Referenced by _LoadKeyboardLayoutEx().

#define FIRSTCOPYLPWSTRID   COPYLPWSTRID
 

Definition at line 228 of file ntsend.h.

#define FIRSTCOPYLPWSTRIDOPT   COPYLPWSTRIDOPT
 

Definition at line 229 of file ntsend.h.

#define FIRSTCOPYLPWSTROPT   COPYLPWSTROPT
 

Definition at line 230 of file ntsend.h.

Referenced by _SetWindowsHookEx(), and ThunkedMenuItemInfo().

#define FIRSTLARGECOPYLPSTROPTW   FIRSTLARGECOPYLPSTRW
 

Definition at line 155 of file ntsend.h.

#define FIRSTLARGECOPYLPSTRORDINALOPTW (  pinstr,
psz   ) 
 

Value:

(pinstr)->pstr = &(pinstr)->strCapture; \ (pinstr)->fAllocated = FALSE; \ if (psz) { \ if (*(LPBYTE)(psz) != 0xff) { \ if (!RtlCaptureLargeAnsiString((pinstr), (LPCSTR)(psz), FALSE)) \ MSGERROR(); \ } else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = sizeof(DWORD); \ dwOrdinal = OrdinalLPSTRW(psz); \ (pinstr)->strCapture.Buffer = (LPWSTR)&dwOrdinal; \ } \ } else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = NULL; \ }

Definition at line 157 of file ntsend.h.

#define FIRSTLARGECOPYLPSTRW (  pinstr,
psz   ) 
 

Value:

if (!RtlCaptureLargeAnsiString((pinstr), (LPCSTR)(psz), FALSE)) \ MSGERROR();

Definition at line 151 of file ntsend.h.

#define FIRSTLARGECOPYLPTSTROPT   LARGECOPYLPSTROPTW
 

Definition at line 265 of file ntsend.h.

#define FIRSTLARGECOPYLPWSTR   LARGECOPYLPWSTR
 

Definition at line 231 of file ntsend.h.

#define FIRSTLARGECOPYLPWSTROPT   LARGECOPYLPWSTROPT
 

Definition at line 232 of file ntsend.h.

#define FIRSTLARGECOPYLPWSTRORDINALOPT   LARGECOPYLPWSTRORDINALOPT
 

Definition at line 233 of file ntsend.h.

#define LARGECOPYLPSTROPTW   LARGECOPYLPSTRW
 

Definition at line 111 of file ntsend.h.

#define LARGECOPYLPSTRORDINALOPTW (  pinstr,
psz   ) 
 

Value:

(pinstr)->pstr = &(pinstr)->strCapture; \ (pinstr)->fAllocated = FALSE; \ if (psz) { \ if (*(LPBYTE)(psz) != 0xff) { \ if (!RtlCaptureLargeAnsiString((pinstr), (LPCSTR)(psz), TRUE)) \ MSGERROR(); \ } else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = sizeof(DWORD); \ dwOrdinal = OrdinalLPSTRW(psz); \ (pinstr)->strCapture.Buffer = (LPWSTR)&dwOrdinal; \ } \ } else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = NULL; \ }

Definition at line 113 of file ntsend.h.

#define LARGECOPYLPSTRW (  pinstr,
psz   ) 
 

Value:

if(!RtlCaptureLargeAnsiString((pinstr), (LPCSTR)(psz), TRUE)) \ MSGERROR();

Definition at line 107 of file ntsend.h.

#define LARGECOPYLPTSTR   LARGECOPYLPSTRW
 

Definition at line 263 of file ntsend.h.

#define LARGECOPYLPTSTROPT   LARGECOPYLPSTROPTW
 

Definition at line 264 of file ntsend.h.

#define LARGECOPYLPWSTR (  pinstr,
psz   ) 
 

Value:

(pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ RtlInitLargeUnicodeString(&(pinstr)->strCapture, (psz), (UINT)-1);

Definition at line 202 of file ntsend.h.

#define LARGECOPYLPWSTROPT   LARGECOPYLPWSTR
 

Definition at line 207 of file ntsend.h.

#define LARGECOPYLPWSTRORDINALOPT (  pinstr,
psz   ) 
 

Value:

(pinstr)->fAllocated = FALSE; \ (pinstr)->pstr = &(pinstr)->strCapture; \ if (psz) { \ if (*(LPWORD)(psz) != 0xffff) \ RtlInitLargeUnicodeString(&(pinstr)->strCapture, (psz), (UINT)-1); \ else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = sizeof(DWORD); \ dwOrdinal = OrdinalLPWSTR(psz); \ (pinstr)->strCapture.Buffer = (LPWSTR)&dwOrdinal; \ } \ } else { \ (pinstr)->strCapture.Length = \ (pinstr)->strCapture.MaximumLength = 0; \ (pinstr)->strCapture.Buffer = NULL; \ }

Definition at line 209 of file ntsend.h.

#define MESSAGECALL (  api   ) 
 

Value:

LRESULT api( \ HWND hwnd, \ UINT msg, \ WPARAM wParam, \ LPARAM lParam, \ ULONG_PTR xParam, \ DWORD xpfnProc, \ BOOL bAnsi)

Definition at line 64 of file ntsend.h.

 
#define MSGERROR (   )     goto errorexit
 

Definition at line 55 of file ntsend.h.

#define MSGERRORCODE (  code   ) 
 

Value:

{ \ RIPERR0(code, RIP_WARNING, "Unspecified error"); \ goto errorexit; }

Definition at line 56 of file ntsend.h.

#define MSGNTERRORCODE (  code   ) 
 

Value:

{ \ RIPNTERR0(code, RIP_WARNING, "Unspecified error"); \ goto errorexit; }

Definition at line 60 of file ntsend.h.

#define OrdinalLPSTR (  src   )     (MAKELONG(0xFFFF,((*(DWORD UNALIGNED *)src) >> 8)))
 

Definition at line 79 of file ntsend.h.

#define OrdinalLPSTRW (  src   )     (MAKELONG(0xFFFF,((*(DWORD UNALIGNED *)src) >> 8)))
 

Definition at line 80 of file ntsend.h.

#define OrdinalLPWSTR (  src   )     (*(DWORD UNALIGNED *)src)
 

Definition at line 81 of file ntsend.h.

#define OrdinalLPWSTRA (  src   )     (*(DWORD UNALIGNED *)((PBYTE)src + 1))
 

Definition at line 82 of file ntsend.h.


Generated on Sat May 15 19:44:53 2004 for test by doxygen 1.3.7