ReactOS  0.4.15-dev-5463-g138eb58
ntuser.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define DECLARE_RETURN(type) type _ret_
4 #define RETURN(value) { _ret_ = value; goto _cleanup_; }
5 #define CLEANUP /*unreachable*/ ASSERT(FALSE); _cleanup_
6 #define END_CLEANUP return _ret_;
7 
8 #define UserEnterCo UserEnterExclusive
9 #define UserLeaveCo UserLeave
10 
11 typedef VOID (*TL_FN_FREE)(PVOID);
12 
13 /* Thread Lock structure */
14 typedef struct _TL
15 {
16  struct _TL* next;
19 } TL, *PTL;
20 
21 extern PSERVERINFO gpsi;
23 extern PPROCESSINFO gppiList;
28 extern ATOM AtomDDETrack;
29 extern ATOM AtomQOS;
30 extern ATOM AtomImeLevel;
31 extern ERESOURCE UserLock;
32 
41 
43 BOOL
44 NTAPI
45 RegReadUserSetting(
46  _In_z_ PCWSTR pwszKeyName,
51 
53 BOOL
54 NTAPI
55 RegWriteUserSetting(
56  _In_z_ PCWSTR pwszKeyName,
61 
63 NTAPI
66  IN PWSTR pwszRegKey);
67 
68 /* EOF */
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define IN
Definition: typedefs.h:39
return
Definition: dirsup.c:529
WORD ATOM
Definition: dimm.idl:113
uint16_t * PWSTR
Definition: typedefs.h:56
Definition: ntuser.h:14
LONG NTSTATUS
Definition: precomp.h:26
VOID FASTCALL UserEnterShared(VOID)
Definition: ntuser.c:238
ERESOURCE UserLock
Definition: ntuser.c:18
#define _When_(expr, annos)
Definition: ms_sal.h:254
PVOID pobj
Definition: ntuser.h:17
BOOL FASTCALL UserIsEnteredExclusive(VOID)
Definition: ntuser.c:227
#define FASTCALL
Definition: nt_native.h:50
VOID FASTCALL UserEnterExclusive(VOID)
Definition: ntuser.c:245
_Success_(return !=0) _At_(pustrName -> Buffer, _Out_z_bytecap_post_bytecount_(pustrName->MaximumLength, return *2+2)) ULONG APIENTRY NtUserGetAtomName(_In_ ATOM atom, _Inout_ PUNICODE_STRING pustrName)
Definition: fsctrl.c:3139
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PSERVERINFO gpsi
Definition: imm.c:18
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
_In_z_ PCWSTR _In_ ULONG _Post_z_ PVOID _In_ ULONG cjDataSize
Definition: ntuser.h:49
_In_ ULONG _In_opt_ PVOID pvData
Definition: winddi.h:3748
#define _In_
Definition: ms_sal.h:308
#define _Post_z_
Definition: ms_sal.h:691
#define _In_z_
Definition: ms_sal.h:313
VOID FASTCALL UserLeave(VOID)
Definition: ntuser.c:254
void * PVOID
Definition: retypes.h:9
BOOL g_AlwaysDisplayVersion
Definition: ntuser.c:17
_In_z_ PCWSTR _In_ ULONG _In_reads_bytes_(cjDataSize) const VOID *pvData
DWORD FASTCALL UserGetLanguageToggle(VOID)
Definition: misc.c:81
_In_z_ PCWSTR pwszValueName
Definition: ntuser.h:47
BOOL FASTCALL UserIsEntered(VOID)
Definition: ntuser.c:221
ATOM AtomQOS
Definition: ntuser.c:24
unsigned long DWORD
Definition: ntddk_ex.h:95
ATOM AtomDDETrack
Definition: ntuser.c:23
VOID(* TL_FN_FREE)(PVOID)
Definition: ntuser.h:11
struct _TL * PTL
#define VOID
Definition: acefi.h:82
PPROCESSINFO ppiScrnSaver
Definition: main.c:30
_In_ LPWSTR _In_ ULONG _In_ ULONG _In_ ULONG _Out_ DEVINFO _In_ HDEV _In_ LPWSTR pwszDeviceName
Definition: winddi.h:3553
PPROCESSINFO gppiInputProvider
Definition: ntuser.c:16
VOID FASTCALL CleanupUserImpl(VOID)
Definition: ntuser.c:232
struct _TL TL
_In_z_ PCWSTR _In_ ULONG _Out_writes_bytes_(cjDataSize) _When_(ulType
CODE_SEG("INIT") NTSTATUS NTAPI InitUserImpl(VOID)
Definition: Interface.c:1810
ATOM AtomImeLevel
Definition: ntuser.c:28
PTHREADINFO gptiCurrent
Definition: ntuser.c:15
PPROCESSINFO gppiList
Definition: main.c:31
_In_z_ PCWSTR _In_ ULONG ulType
Definition: ntuser.h:47
TL_FN_FREE pfnFree
Definition: ntuser.h:18
NTSTATUS NTAPI InitUserImpl(VOID)
Definition: ntuser.c:79
struct _TL * next
Definition: ntuser.h:16
ULONG ERESOURCE
Definition: env_spec_w32.h:594
unsigned int ULONG
Definition: retypes.h:1
ATOM gaGuiConsoleWndClass
Definition: ntuser.c:27
#define const
Definition: zconf.h:230
PGRAPHICS_DEVICE NTAPI InitDisplayDriver(IN PWSTR pwszDeviceName, IN PWSTR pwszRegKey)
Definition: display.c:66
#define REG_SZ
Definition: layer.c:22