ReactOS 0.4.16-dev-329-g9223134
class.h
Go to the documentation of this file.
1#pragma once
2
3#define IS_ATOM(x) \
4 (((ULONG_PTR)(x) > 0x0) && ((ULONG_PTR)(x) < 0x10000))
5
6typedef struct _WNDPROC_INFO
7{
11
12static __inline BOOL
14{
15 /* FIXME: Check for 64-bit architectures... */
16 return ((ULONG_PTR)lpWndProc & 0xFFFF0000) == 0xFFFF0000;
17}
18
21
25 IN BOOL Unicode,
27
28BOOL
30 OUT PWNDPROC_INFO wpInfo);
31
32void FASTCALL
34
35VOID
39
40PCLS
42
44
45VOID
47 IN PCALLPROCDATA CallProc);
48
49_Success_(return)
50BOOL
52IntGetAtomFromStringOrAtom(
53 _In_ PUNICODE_STRING ClassName,
55
56BOOL
58 IN BOOL FreeOnFailure);
59
61
66 _Out_ _When_(return>=0, _At_(pustrOut->Buffer, _Post_ _Notnull_)) PUNICODE_STRING pustrOut,
67 __in_data_source(USER_MODE) _In_ PUNICODE_STRING pustrUnsafe);
68
69BOOL FASTCALL LookupFnIdToiCls(int FnId, int *iCls);
70
71INT
73 IN OUT PUNICODE_STRING ClassName,
75 IN BOOL Ansi);
76
77/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
HINSTANCE hInstance
Definition: charmap.c:19
INT UserGetClassName(IN PCLS Class, IN OUT PUNICODE_STRING ClassName, IN RTL_ATOM Atom, IN BOOL Ansi)
Definition: class.c:1647
static __inline BOOL IsCallProcHandle(IN WNDPROC lpWndProc)
Definition: class.h:13
struct _WNDPROC_INFO * PWNDPROC_INFO
VOID UserAddCallProcToClass(IN OUT PCLS Class, IN PCALLPROCDATA CallProc)
Definition: class.c:428
PCALLPROCDATA CreateCallProc(IN PDESKTOP Desktop, IN WNDPROC WndProc, IN BOOL Unicode, IN PPROCESSINFO pi)
Definition: callproc.c:29
BOOL IntCheckProcessDesktopClasses(IN PDESKTOP Desktop, IN BOOL FreeOnFailure)
Definition: class.c:1017
ULONG_PTR FASTCALL UserGetCPD(PVOID, GETCPD, ULONG_PTR)
Definition: callproc.c:107
void FASTCALL DestroyProcessClasses(PPROCESSINFO Process)
Definition: class.c:305
VOID IntDereferenceClass(IN OUT PCLS Class, IN PDESKTOPINFO Desktop, IN PPROCESSINFO pi)
Definition: class.c:820
struct _WNDPROC_INFO WNDPROC_INFO
BOOL UserGetCallProcInfo(IN HANDLE hCallProc, OUT PWNDPROC_INFO wpInfo)
Definition: callproc.c:59
_Must_inspect_result_ NTSTATUS NTAPI ProbeAndCaptureUnicodeStringOrAtom(_Out_ _When_(return >=0, _At_(pustrOut->Buffer, _Post_ _Notnull_)) PUNICODE_STRING pustrOut, __in_data_source(USER_MODE) _In_ PUNICODE_STRING pustrUnsafe)
Definition: class.c:152
PCLS IntGetAndReferenceClass(PUNICODE_STRING ClassName, HINSTANCE hInstance, BOOL bDesktopThread)
Definition: class.c:1450
_Out_ RTL_ATOM * Atom
Definition: class.h:54
BOOL FASTCALL UserRegisterSystemClasses(VOID)
Definition: class.c:2337
BOOLEAN DestroyCallProc(_Inout_ PVOID Object)
Definition: callproc.c:22
BOOL FASTCALL LookupFnIdToiCls(int FnId, int *iCls)
Definition: class.c:133
unsigned int BOOL
Definition: ntddk_ex.h:94
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:223
enum _GETCPD GETCPD
unsigned short RTL_ATOM
Definition: atom.c:42
static refpint_t pi[]
Definition: server.c:96
#define _Notnull_
Definition: no_sal2.h:54
#define _Inout_
Definition: no_sal2.h:162
#define _Success_(c)
Definition: no_sal2.h:84
#define _At_(t, a)
Definition: no_sal2.h:40
#define _Post_
Definition: no_sal2.h:48
#define _Must_inspect_result_
Definition: no_sal2.h:62
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _When_(c, a)
Definition: no_sal2.h:38
#define FASTCALL
Definition: nt_native.h:50
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: solitaire.cpp:614
#define __in_data_source(src_sym)
Definition: specstrings.h:348
Definition: ntuser.h:566
BOOL IsUnicode
Definition: class.h:9
WNDPROC WindowProc
Definition: class.h:8
#define NTAPI
Definition: typedefs.h:36
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
int FnId
Definition: class.c:108
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2909