59 return ((
ULONG_PTR)lpWndProc & 0xFFFF0000) == 0xFFFF0000;
62#define STATIC_UISTATE_GWL_OFFSET (sizeof(HFONT)+sizeof(HICON))
76 if (prevflags !=
flags)
96#define UserHasDlgFrameStyle(Style, ExStyle) \
97 (((ExStyle) & WS_EX_DLGMODALFRAME) || \
98 (((Style) & WS_DLGFRAME) && (!((Style) & WS_THICKFRAME))))
100#define UserHasThickFrameStyle(Style, ExStyle) \
101 (((Style) & WS_THICKFRAME) && \
102 (!(((Style) & (WS_DLGFRAME | WS_BORDER)) == WS_DLGFRAME)))
104#define UserHasThinFrameStyle(Style, ExStyle) \
105 (((Style) & WS_BORDER) || (!((Style) & (WS_CHILD | WS_POPUP))))
108#define WIN_GetFullHandle(h) ((HWND)(h))
110#define HOOKID_TO_FLAG(HookId) (1 << ((HookId) + 1))
111#define ISITHOOKED(HookId) (GetWin32ClientInfo()->fsHooks & HOOKID_TO_FLAG(HookId) ||\
112 (GetWin32ClientInfo()->pDeskInfo && GetWin32ClientInfo()->pDeskInfo->fsHooks & HOOKID_TO_FLAG(HookId)))
BOOLEAN NTAPI RtlIsThreadWithinLoaderCallout(VOID)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
DWORD_PTR NTAPI NtUserCallNoParam(DWORD Routine)
struct _THREADINFO * GetW32ThreadInfo(VOID)
@ NOPARAM_ROUTINE_LOADUSERAPIHOOK
#define GetWin32ClientInfo()
EXTINLINE PVOID NtUserxGetDesktopMapping(PVOID ptr)
BOOL FASTCALL IsInsideUserApiHook(VOID)
static __inline BOOL IsCallProcHandle(IN WNDPROC lpWndProc)
static __inline PVOID SharedPtrToUser(PVOID Ptr)
static __inline void LoadUserApiHook()
static __inline BOOL STATIC_update_uistate(HWND hwnd, BOOL unicode)
static __inline BOOL IsThreadHooked(PCLIENTINFO pci)
static __inline PVOID DesktopPtrToUser(PVOID Ptr)
#define STATIC_UISTATE_GWL_OFFSET
static __inline PDESKTOPINFO GetThreadDesktopInfo(VOID)
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO * pdi
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)