14#define ASSERT_REFS_CO(_obj_) \
16 LONG ref = ((PHEAD)_obj_)->cLockObj;\
18 ERR_CH(UserObj, "ASSERT: obj 0x%p, refs %ld\n", _obj_, ref); \
24#define ASSERT_REFS_CO(_obj_) \
26 PSINGLE_LIST_ENTRY e; \
28 LONG ref = ((PHEAD)_obj_)->cLockObj;\
30 ERR_CH(UserObj, "obj 0x%p, refs %i\n", _obj_, ref); \
34 e = PsGetCurrentThreadWin32Thread()->ReferencesList.Next; \
37 PUSER_REFERENCE_ENTRY ref = CONTAINING_RECORD(e, USER_REFERENCE_ENTRY, Entry); \
38 if (ref->obj == _obj_){ gotit=TRUE; break; } \
45#define DUMP_REFS(obj) TRACE_CH(UserObj,"obj 0x%x, refs %i\n",obj, ((PHEAD)obj)->cLockObj)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
struct atom_table ** PRTL_ATOM_TABLE
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
PULONG MinorVersion OPTIONAL
NTSTATUS GetProcessLuid(IN PETHREAD Thread OPTIONAL, IN PEPROCESS Process OPTIONAL, OUT PLUID Luid)
LRESULT NC_DoNCPaint(PWND, HDC, INT)
BOOL FASTCALL UserDestroyMenu(HMENU hMenu)
LONG NTAPI UserGetSystemMetrics(ULONG Index)
BOOL FASTCALL IntDdeSendMessageHook(PWND, UINT, WPARAM, LPARAM)
HBRUSH FASTCALL GetControlBrush(PWND, HDC, UINT)
NTSTATUS FASTCALL InitSessionImpl(VOID)
VOID UserDrawCaptionBar(PWND pWnd, HDC hDC, INT Flags)
PRTL_ATOM_TABLE gAtomTable
LRESULT NC_HandleNCCalcSize(PWND wnd, WPARAM wparam, RECTL *winRect, BOOL Suspended)
LRESULT NC_HandleNCLButtonDblClk(PWND Wnd, WPARAM wParam, LPARAM lParam)
DWORD FASTCALL IntGetWindowContextHelpId(PWND pWnd)
HWND FASTCALL co_UserSetFocus(PWND Window)
PTHREADINFO FASTCALL IntTID2PTI(HANDLE)
FORCEINLINE PMENU UserGetMenuObject(HMENU hMenu)
VOID FASTCALL IntSetWindowState(PWND, UINT)
BOOL FASTCALL UserIsIMMEnabled(VOID)
BOOL UserDrawSysMenuButton(PWND pWnd, HDC hDC, LPRECT Rect, BOOL Down)
VOID FASTCALL co_DestroyThreadWindows(struct _ETHREAD *Thread)
LRESULT NC_HandleNCRButtonDown(PWND wnd, WPARAM wParam, LPARAM lParam)
PVOID AllocInputContextObject(PDESKTOP pDesk, PTHREADINFO pti, SIZE_T Size, PVOID *HandleOwner)
VOID FASTCALL DefWndDoSizeMove(PWND pwnd, WORD wParam)
BOOL UserPaintCaption(PWND pWnd, INT Flags)
DWORD FASTCALL UserGetKeyState(DWORD key)
PWND FASTCALL UserGetWindowObject(HWND hWnd)
DWORD FASTCALL UserGetKeyboardType(DWORD TypeFlag)
void FASTCALL NC_GetSysPopupPos(PWND, RECT *)
int __cdecl _scwprintf(const wchar_t *format,...)
PWND FASTCALL IntGetWindowObject(HWND hWnd)
LRESULT NC_HandleNCActivate(PWND Wnd, WPARAM wParam, LPARAM lParam)
HDC FASTCALL UserGetWindowDC(PWND Wnd)
PWND FASTCALL UserGetAncestor(PWND Wnd, UINT Type)
PIMC FASTCALL UserCreateInputContext(ULONG_PTR dwClientImcData)
VOID FASTCALL IntClearWindowState(PWND, UINT)
BOOL APIENTRY IntDdePostMessageHook(IN PWND, IN UINT, IN WPARAM, IN OUT LPARAM *, IN OUT LONG_PTR *)
void FASTCALL NC_GetInsideRect(PWND Wnd, RECT *rect)
LRESULT NC_HandleNCLButtonDown(PWND Wnd, WPARAM wParam, LPARAM lParam)
BOOL FASTCALL UserPostMessage(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
HBRUSH FASTCALL GetControlColor(PWND, PWND, HDC, UINT)
BOOL NTAPI InitMetrics(VOID)
HWINSTA FASTCALL UserGetProcessWindowStation(VOID)
NTSTATUS NTAPI InitThreadCallback(PETHREAD Thread)
BOOL FASTCALL UserSetMenuDefaultItem(PMENU Menu, UINT uItem, UINT fByPos)
BOOLEAN UserDestroyInputContext(PVOID Object)
HWND FASTCALL UserGetShellWindow(VOID)
HKL FASTCALL UserGetKeyboardLayout(DWORD dwThreadId)
BOOLEAN co_UserDestroyWindow(PVOID Object)
VOID UserFreeInputContext(PVOID Object)
INT FASTCALL UserReleaseDC(PWND Window, HDC hDc, BOOL EndPaint)
BOOL APIENTRY DefSetText(PWND Wnd, PCWSTR WindowText)
BOOL FASTCALL SetLayeredStatus(PWND pWnd, BYTE set)
VOID NC_DrawFrame(HDC hDC, RECT *CurrentRect, BOOL Active, DWORD Style, DWORD ExStyle)
HDC FASTCALL UserGetDCEx(PWND Window OPTIONAL, HANDLE ClipRegion, ULONG Flags)
HBRUSH FASTCALL DefWndControlColor(HDC hDC, UINT ctlType)
HMENU FASTCALL UserCreateMenu(PDESKTOP Desktop, BOOL PopupMenu)
BOOL APIENTRY IntDdeGetMessageHook(PMSG, LONG_PTR)
HWND FASTCALL UserGetActiveWindow(VOID)
BOOL FASTCALL UserIsDBCSEnabled(VOID)
BOOL FASTCALL UserIsCiceroEnabled(VOID)
HWND FASTCALL UserGetForegroundWindow(VOID)
BOOL FASTCALL UserSystemParametersInfo(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
BOOL FASTCALL GetLayeredStatus(PWND pWnd)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
PVOID UserGetObject(PUSER_HANDLE_TABLE ht, HANDLE handle, HANDLE_TYPE type)
PUSER_HANDLE_TABLE gHandleTable
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
#define ERROR_INVALID_MENU_HANDLE
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
_Must_inspect_result_ _In_ ULONG Flags
_In_ ULONG _In_ BOOLEAN Active