ReactOS 0.4.15-dev-5666-gc548b97
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 */
30typedef 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
41extern PPROCESSINFO g_ppi;
43extern PSERVERINFO gpsi;
49extern HINSTANCE ghImm32;
51extern 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
73extern const char *SPY_GetMsgName(UINT msg, HWND hWnd);
74extern const char *SPY_GetVKeyName(WPARAM wParam);
76extern 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 */
111VOID FASTCALL Logon(BOOL IsLogon);
112
113/* misc definitions */
114void mirror_rect( const RECT *window_rect, RECT *rect );
117HCURSOR CursorIconToCursor(HICON hIcon, BOOL SemiTransparent);
120UINT WINAPI WinPosGetMinMaxInfo(HWND hWnd, POINT* MaxSize, POINT* MaxPos, POINT* MinTrack, POINT* MaxTrack);
123extern BOOL FASTCALL EnumNamesA(HWINSTA WindowStation, NAMEENUMPROCA EnumFunc, LPARAM Context, BOOL Desktops);
124extern BOOL FASTCALL EnumNamesW(HWINSTA WindowStation, NAMEENUMPROCW EnumFunc, LPARAM Context, BOOL Desktops);
126HWND* WIN_ListChildren (HWND hWndparent);
135
136/* EOF */
static HDC hDC
Definition: 3dtext.c:33
unsigned char BOOLEAN
static BOOL CALLBACK EnumFunc(_In_ HWND hWnd, _In_ PCWSTR lpszString, _In_ HANDLE hData)
Definition: SetProp.c:15
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
LONG NTSTATUS
Definition: precomp.h:26
HINSTANCE hInstance
Definition: charmap.c:19
_Out_ RTL_ATOM * Atom
Definition: class.h:54
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
WORD ATOM
Definition: dimm.idl:113
#define APIENTRY
Definition: api.h:79
static DWORD cchBuffer
Definition: fusion.c:85
#define ValidateHwnd(hwnd)
Definition: precomp.h:85
#define ValidateHwndNoErr(hwnd)
Definition: precomp.h:84
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
Status
Definition: gdiplustypes.h:25
GLsizeiptr size
Definition: glext.h:5919
#define down(mutex)
Definition: glue.h:29
unsigned int ULONG
Definition: retypes.h:1
void Draw(HDC aDc)
Definition: magnifier.c:359
static HDC
Definition: imagelist.c:92
static HICON
Definition: imagelist.c:84
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
HICON hIcon
Definition: msconfig.c:44
UINT_PTR HKL
Definition: msctf.idl:104
unsigned int UINT
Definition: ndis.h:50
#define FASTCALL
Definition: nt_native.h:50
long LONG
Definition: pedump.c:60
_In_ ATOM _In_ HANDLE _In_ BOOLEAN SystemProp
Definition: prop.h:24
& rect
Definition: startmenu.cpp:1413
Definition: ntuser.h:17
Definition: ntuser.h:689
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
BOOL(CALLBACK * USERAPIHOOKPROC)(UAPIHK State, PUSERAPIHOOK puah)
Definition: undocuser.h:370
PWND FASTCALL GetThreadDesktopWnd(VOID)
Definition: misc.c:397
BOOLEAN gfServerProcess
Definition: dllmain.c:35
BOOL WINAPI GdiValidateHandle(HGDIOBJ)
Definition: misc.c:712
PVOID FASTCALL ValidateHandle(HANDLE, UINT)
Definition: utils.c:377
BOOLEAN gfLogonProcess
Definition: dllmain.c:34
RTL_CRITICAL_SECTION gcsUserApiHook
Definition: usrapihk.c:39
VOID APIENTRY CliImmInitializeHotKeys(DWORD dwAction, HKL hKL)
Definition: input.c:425
VOID FASTCALL MessageCleanup(VOID)
Definition: message.c:3292
PPROCESSINFO g_ppi
Definition: dllmain.c:29
VOID MenuTrackMouseMenuBar(HWND hWnd, ULONG Ht, POINT Pt)
HINSTANCE ghmodUserApiHook
Definition: usrapihk.c:37
void SPY_EnterMessage(INT iFlag, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: spy.c:2593
PUSER_HANDLE_ENTRY gHandleEntries
Definition: dllmain.c:33
PUSER_HANDLE_TABLE gHandleTable
Definition: object.c:13
BOOL FASTCALL EnumNamesA(HWINSTA WindowStation, NAMEENUMPROCA EnumFunc, LPARAM Context, BOOL Desktops)
Definition: winsta.c:273
LONG WINAPI GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *)
Definition: font.c:2145
Imm32ApiTable gImmApiEntries
Definition: imm.c:47
BOOL get_icon_size(HICON hIcon, SIZE *size)
Definition: cursoricon.c:74
HWND * WIN_ListChildren(HWND hWndparent)
Definition: mdi.c:139
HRESULT User32GetImmFileName(_Out_ LPWSTR lpBuffer, _In_ size_t cchBuffer)
Definition: imm.c:57
BOOL FASTCALL DefSetText(HWND hWnd, PCWSTR String, BOOL Ansi)
Definition: defwnd.c:65
const char * SPY_GetVKeyName(WPARAM wParam)
Definition: spy.c:2236
BOOL MenuInit(VOID)
Definition: menu.c:361
BOOL FASTCALL EndUserApiHook(VOID)
Definition: usrapihk.c:164
HCURSOR CursorIconToCursor(HICON hIcon, BOOL SemiTransparent)
Definition: cursoricon.c:79
BOOL FASTCALL MessageInit(VOID)
Definition: message.c:3284
HANDLE FASTCALL UserGetProp(HWND hWnd, ATOM Atom, BOOLEAN SystemProp)
Definition: prop.c:66
VOID MenuTrackKbdMenuBar(HWND hWnd, UINT wParam, WCHAR wChar)
BOOL FASTCALL BeginIfHookedUserApiHook(VOID)
Definition: usrapihk.c:106
void mirror_rect(const RECT *window_rect, RECT *rect)
Definition: winpos.c:15
VOID FASTCALL IntNotifyWinEvent(DWORD, HWND, LONG, LONG, DWORD)
Definition: hook.c:113
VOID UserGetWindowBorders(DWORD, DWORD, SIZE *, BOOL)
Definition: winpos.c:887
BOOL WINAPI UpdatePerUserImmEnabling(VOID)
Definition: imm.c:1102
BOOL WINAPI InitializeImmEntryTable(VOID)
Definition: imm.c:119
VOID WINAPI UserSetLastError(IN DWORD dwErrCode)
Definition: misc.c:13
BOOL WINAPI InitUserApiHook(HINSTANCE hInstance, USERAPIHOOKPROC pfn)
Definition: usrapihk.c:255
VOID FASTCALL ScrollTrackScrollBar(HWND Wnd, INT SBType, POINT Pt)
Definition: scrollbar.c:1155
BOOL UserDrawSysMenuButton(HWND hWnd, HDC hDC, LPRECT, BOOL down)
UINT WINAPI WinPosGetMinMaxInfo(HWND hWnd, POINT *MaxSize, POINT *MaxPos, POINT *MinTrack, POINT *MaxTrack)
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
Definition: misc.c:25
BOOL FASTCALL IsInsideUserApiHook(VOID)
Definition: usrapihk.c:98
UINT MenuDrawMenuBar(HDC hDC, LPRECT Rect, HWND hWnd, BOOL Draw)
VOID FASTCALL Logon(BOOL IsLogon)
Definition: logon.c:74
BOOL FASTCALL TestWindowProcess(PWND)
Definition: misc.c:166
BOOL FASTCALL IsMsgOverride(UINT, PUAHOWP)
Definition: usrapihk.c:63
HICON hIconWindows
Definition: user32p.h:53
PVOID FASTCALL ValidateHandleNoErr(HANDLE handle, UINT uType)
Definition: utils.c:338
HINSTANCE ghImm32
Definition: imm.c:20
HINSTANCE User32Instance
Definition: dllmain.c:27
CRITICAL_SECTION U32AccelCacheLock
Definition: accel.c:54
USERAPIHOOK guah
Definition: usrapihk.c:344
VOID IntLoadPreloadKeyboardLayouts(VOID)
Definition: input.c:148
VOID FASTCALL ResetUserApiHook(PUSERAPIHOOK)
Definition: usrapihk.c:131
VOID DeleteFrameBrushes(VOID)
Definition: paint.c:71
SHAREDINFO gSharedInfo
Definition: imm.c:19
PWND FASTCALL ValidateHwndOrDesk(HWND hwnd)
Definition: misc.c:410
HICON hIconSmWindows
Definition: dllmain.c:37
void SPY_ExitMessage(INT iFlag, HWND hwnd, UINT msg, LRESULT lReturn, WPARAM wParam, LPARAM lParam)
Definition: spy.c:2648
const char * SPY_GetMsgName(UINT msg, HWND hWnd)
Definition: spy.c:2218
PSERVERINFO gpsi
Definition: imm.c:18
PCALLPROCDATA FASTCALL ValidateCallProc(HANDLE hCallProc)
Definition: misc.c:339
BOOL WINAPI GdiDllInitialize(HANDLE, ULONG, PVOID)
VOID FASTCALL GetConnected(VOID)
BOOL FASTCALL EnumNamesW(HWINSTA WindowStation, NAMEENUMPROCW EnumFunc, LPARAM Context, BOOL Desktops)
Definition: winsta.c:130
BOOL WINAPI ClearUserApiHook(HINSTANCE hInstance)
Definition: usrapihk.c:193
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
HICON HCURSOR
Definition: windef.h:299
#define WINAPI
Definition: msvc.h:6
BOOL(CALLBACK * NAMEENUMPROCA)(LPSTR, LPARAM)
Definition: winuser.h:2900
BOOL(CALLBACK * NAMEENUMPROCW)(LPWSTR, LPARAM)
Definition: winuser.h:2901
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184