ReactOS  0.4.15-dev-3217-gc6d1646
user32p.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS System Libraries
4  * FILE: win32ss/user/user32/include/user32p.h
5  * PURPOSE: Win32 User Library Private Headers
6  * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #pragma once
12 
13 /* Private User32 Headers */
14 #include "controls.h"
15 #include "dde_private.h"
16 #include "regcontrol.h"
17 #include "resource.h"
18 #include "ntwrapper.h"
19 
20 #define IMM_RETURN_VOID(retval) /* empty */
21 #define IMM_RETURN_NONVOID(retval) return (retval)
22 
23 /* typedef FN_... */
24 #undef DEFINE_IMM_ENTRY
25 #define DEFINE_IMM_ENTRY(type, name, params, retval, retkind) \
26  typedef type (WINAPI *FN_##name)params;
27 #include "immtable.h"
28 
29 /* define Imm32ApiTable */
30 typedef struct
31 {
32 #undef DEFINE_IMM_ENTRY
33 #define DEFINE_IMM_ENTRY(type, name, params, retval, retkind) \
34  FN_##name p##name;
35 #include "immtable.h"
37 
38 /* global variables */
40 #define user32_module User32Instance
41 extern PPROCESSINFO g_ppi;
42 extern SHAREDINFO gSharedInfo;
43 extern PSERVERINFO gpsi;
46 extern BOOLEAN gfLogonProcess;
49 extern HINSTANCE ghImm32;
51 extern USERAPIHOOK guah;
55 
56 #define IMM_FN(name) gImmApiEntries.p##name
57 
58 #define IS_ATOM(x) \
59  (((ULONG_PTR)(x) > 0x0) && ((ULONG_PTR)(x) < 0x10000))
60 
61 /* FIXME: move to a correct header */
62 /* undocumented gdi32 definitions */
65 
66 /* definitions for spy.c */
67 #define SPY_DISPATCHMESSAGE 0x0101
68 #define SPY_SENDMESSAGE 0x0103
69 #define SPY_DEFWNDPROC 0x0105
70 #define SPY_RESULT_OK 0x0001
71 #define SPY_RESULT_INVALIDHWND 0x0003
72 #define SPY_RESULT_DEFWND 0x0005
73 extern const char *SPY_GetMsgName(UINT msg, HWND hWnd);
74 extern const char *SPY_GetVKeyName(WPARAM wParam);
76 extern void SPY_ExitMessage(INT iFlag, HWND hwnd, UINT msg, LRESULT lReturn, WPARAM wParam, LPARAM lParam);
77 
78 /* definitions for usrapihk.c */
86 
87 /* definitions for message.c */
90 
91 /* definitions for misc.c */
102 
103 /* definitions for menu.c */
109 
110 /* definitions for logon.c */
111 VOID FASTCALL Logon(BOOL IsLogon);
112 
113 /* misc definitions */
114 void mirror_rect( const RECT *window_rect, RECT *rect );
117 HCURSOR CursorIconToCursor(HICON hIcon, BOOL SemiTransparent);
120 UINT WINAPI WinPosGetMinMaxInfo(HWND hWnd, POINT* MaxSize, POINT* MaxPos, POINT* MinTrack, POINT* MaxTrack);
123 extern BOOL FASTCALL EnumNamesA(HWINSTA WindowStation, NAMEENUMPROCA EnumFunc, LPARAM Context, BOOL Desktops);
124 extern BOOL FASTCALL EnumNamesW(HWINSTA WindowStation, NAMEENUMPROCW EnumFunc, LPARAM Context, BOOL Desktops);
126 HWND* WIN_ListChildren (HWND hWndparent);
133 
134 /* EOF */
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL FASTCALL EndUserApiHook(VOID)
Definition: usrapihk.c:164
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define IN
Definition: typedefs.h:39
static HICON
Definition: imagelist.c:84
Imm32ApiTable gImmApiEntries
Definition: imm.c:30
VOID FASTCALL IntNotifyWinEvent(DWORD, HWND, LONG, LONG, DWORD)
Definition: hook.c:113
HINSTANCE ghImm32
Definition: imm.c:20
VOID FASTCALL ResetUserApiHook(PUSERAPIHOOK)
Definition: usrapihk.c:131
PCALLPROCDATA FASTCALL ValidateCallProc(HANDLE hCallProc)
Definition: misc.c:339
BOOL WINAPI InitializeImmEntryTable(VOID)
Definition: imm.c:102
#define _Out_
Definition: ms_sal.h:345
PVOID FASTCALL ValidateHandleNoErr(HANDLE handle, UINT uType)
Definition: utils.c:75
WORD ATOM
Definition: dimm.idl:113
_In_ ATOM _In_ HANDLE _In_ BOOLEAN SystemProp
Definition: prop.h:22
PUSER_HANDLE_TABLE gHandleTable
Definition: object.c:13
LONG NTSTATUS
Definition: precomp.h:26
USERAPIHOOK guah
Definition: usrapihk.c:344
static HDC
Definition: imagelist.c:92
void Draw(HDC aDc)
Definition: magnifier.c:359
BOOL WINAPI ClearUserApiHook(HINSTANCE hInstance)
Definition: usrapihk.c:193
HWND hWnd
Definition: settings.c:17
BOOL FASTCALL TestWindowProcess(PWND)
Definition: misc.c:166
UINT_PTR WPARAM
Definition: windef.h:207
HICON HCURSOR
Definition: windef.h:299
HICON hIconWindows
Definition: dllmain.c:37
VOID WINAPI UserSetLastError(IN DWORD dwErrCode)
Definition: misc.c:13
BOOL FASTCALL EnumNamesW(HWINSTA WindowStation, NAMEENUMPROCW EnumFunc, LPARAM Context, BOOL Desktops)
Definition: winsta.c:130
#define FASTCALL
Definition: nt_native.h:50
void SPY_ExitMessage(INT iFlag, HWND hwnd, UINT msg, LRESULT lReturn, WPARAM wParam, LPARAM lParam)
Definition: spy.c:2648
HINSTANCE User32Instance
Definition: dllmain.c:27
BOOL FASTCALL DefSetText(HWND hWnd, PCWSTR String, BOOL Ansi)
Definition: defwnd.c:64
int32_t INT
Definition: typedefs.h:58
BOOLEAN gfServerProcess
Definition: dllmain.c:35
& rect
Definition: startmenu.cpp:1413
WPARAM wParam
Definition: combotst.c:138
const char * SPY_GetMsgName(UINT msg, HWND hWnd)
Definition: spy.c:2218
#define down(mutex)
Definition: glue.h:29
BOOL FASTCALL IsMsgOverride(UINT, PUAHOWP)
Definition: usrapihk.c:63
BOOL(CALLBACK * NAMEENUMPROCW)(LPWSTR, LPARAM)
Definition: winuser.h:2887
BOOL(CALLBACK * USERAPIHOOKPROC)(UAPIHK State, PUSERAPIHOOK puah)
Definition: undocuser.h:363
HRESULT GetImmFileName(_Out_ LPWSTR lpBuffer, _In_ size_t cchBuffer)
Definition: imm.c:39
HINSTANCE hInstance
Definition: charmap.c:20
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2430
BOOL(CALLBACK * NAMEENUMPROCA)(LPSTR, LPARAM)
Definition: winuser.h:2886
BOOL WINAPI GdiDllInitialize(HANDLE, DWORD, LPVOID)
Definition: dllmain.c:76
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
static DWORD cchBuffer
Definition: fusion.c:85
HINSTANCE ghmodUserApiHook
Definition: usrapihk.c:37
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
unsigned char BOOLEAN
#define _In_
Definition: ms_sal.h:308
HCURSOR CursorIconToCursor(HICON hIcon, BOOL SemiTransparent)
Definition: cursoricon.c:79
LONG_PTR LPARAM
Definition: windef.h:208
CRITICAL_SECTION U32AccelCacheLock
Definition: accel.c:54
BOOL WINAPI InitUserApiHook(HINSTANCE hInstance, USERAPIHOOKPROC pfn)
Definition: usrapihk.c:255
VOID UserGetWindowBorders(DWORD, DWORD, SIZE *, BOOL)
Definition: winpos.c:885
static BOOL CALLBACK EnumFunc(_In_ HWND hWnd, _In_ PCWSTR lpszString, _In_ HANDLE hData)
Definition: SetProp.c:15
PPROCESSINFO g_ppi
Definition: dllmain.c:29
Status
Definition: gdiplustypes.h:24
Definition: ntuser.h:16
VOID FASTCALL ScrollTrackScrollBar(HWND Wnd, INT SBType, POINT Pt)
Definition: scrollbar.c:1156
GLsizeiptr size
Definition: glext.h:5919
UINT MenuDrawMenuBar(HDC hDC, LPRECT Rect, HWND hWnd, BOOL Draw)
BOOL FASTCALL IsInsideUserApiHook(VOID)
Definition: usrapihk.c:98
__wchar_t WCHAR
Definition: xmlstorage.h:180
PSERVERINFO gpsi
Definition: main.c:27
LONG HRESULT
Definition: typedefs.h:79
#define WINAPI
Definition: msvc.h:6
void SPY_EnterMessage(INT iFlag, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: spy.c:2593
unsigned long DWORD
Definition: ntddk_ex.h:95
HICON hIconSmWindows
Definition: dllmain.c:37
_Out_ RTL_ATOM * Atom
Definition: class.h:54
LONG WINAPI GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *)
Definition: font.c:2145
VOID MenuTrackMouseMenuBar(HWND hWnd, ULONG Ht, POINT Pt)
PWND FASTCALL ValidateHwnd(HWND hwnd)
Definition: misc.c:359
VOID FASTCALL Logon(BOOL IsLogon)
Definition: logon.c:74
RTL_CRITICAL_SECTION gcsUserApiHook
Definition: usrapihk.c:39
BOOL get_icon_size(HICON hIcon, SIZE *size)
Definition: cursoricon.c:74
VOID DeleteFrameBrushes(VOID)
Definition: paint.c:71
void mirror_rect(const RECT *window_rect, RECT *rect)
Definition: winpos.c:15
BOOL UserDrawSysMenuButton(HWND hWnd, HDC hDC, LPRECT, BOOL down)
VOID FASTCALL MessageCleanup(VOID)
Definition: message.c:3282
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
Definition: misc.c:25
Definition: ntuser.h:663
static HDC hDC
Definition: 3dtext.c:33
BOOL FASTCALL EnumNamesA(HWINSTA WindowStation, NAMEENUMPROCA EnumFunc, LPARAM Context, BOOL Desktops)
Definition: winsta.c:273
SHAREDINFO gSharedInfo
Definition: dllmain.c:30
HANDLE FASTCALL UserGetProp(HWND hWnd, ATOM Atom, BOOLEAN SystemProp)
Definition: prop.c:66
HICON hIcon
Definition: msconfig.c:44
BOOL FASTCALL BeginIfHookedUserApiHook(VOID)
Definition: usrapihk.c:106
BOOLEAN gfLogonProcess
Definition: dllmain.c:34
PVOID FASTCALL ValidateHandle(HANDLE, UINT)
Definition: misc.c:252
unsigned int UINT
Definition: ndis.h:50
VOID MenuTrackKbdMenuBar(HWND hWnd, UINT wParam, WCHAR wChar)
BOOL FASTCALL MessageInit(VOID)
Definition: message.c:3274
HWND * WIN_ListChildren(HWND hWndparent)
Definition: mdi.c:140
#define msg(x)
Definition: auth_time.c:54
PWND FASTCALL GetThreadDesktopWnd(VOID)
Definition: misc.c:397
UINT WINAPI WinPosGetMinMaxInfo(HWND hWnd, POINT *MaxSize, POINT *MaxPos, POINT *MinTrack, POINT *MaxTrack)
VOID FASTCALL GetConnected(VOID)
unsigned int ULONG
Definition: retypes.h:1
PWND FASTCALL ValidateHwndNoErr(HWND hwnd)
Definition: utils.c:102
WCHAR * LPWSTR
Definition: xmlstorage.h:184
BOOL WINAPI GdiValidateHandle(HGDIOBJ)
Definition: misc.c:712
const char * SPY_GetVKeyName(WPARAM wParam)
Definition: spy.c:2236
LONG_PTR LRESULT
Definition: windef.h:209
BOOL MenuInit(VOID)
Definition: menu.c:359
PWND FASTCALL ValidateHwndOrDesk(HWND hwnd)
Definition: misc.c:410
LPARAM lParam
Definition: combotst.c:139
VOID MenuCleanup(VOID)
Definition: menu.c:649
BOOL WINAPI UpdatePerUserImmEnabling(VOID)
Definition: imm.c:199
PUSER_HANDLE_ENTRY gHandleEntries
Definition: dllmain.c:33