mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
533d877aaf
Remove macro definition and the remaining uses. RETURN() macro is just a wrapper for goto, most of the time it makes the code more complicated than using goto directly.
63 lines
1.5 KiB
C
63 lines
1.5 KiB
C
#pragma once
|
|
|
|
#define UserEnterCo UserEnterExclusive
|
|
#define UserLeaveCo UserLeave
|
|
|
|
typedef VOID (*TL_FN_FREE)(PVOID);
|
|
|
|
/* Thread Lock structure */
|
|
typedef struct _TL
|
|
{
|
|
struct _TL* next;
|
|
PVOID pobj;
|
|
TL_FN_FREE pfnFree;
|
|
} TL, *PTL;
|
|
|
|
extern PSERVERINFO gpsi;
|
|
extern PTHREADINFO gptiCurrent;
|
|
extern PPROCESSINFO gppiList;
|
|
extern PPROCESSINFO ppiScrnSaver;
|
|
extern PPROCESSINFO gppiInputProvider;
|
|
extern BOOL g_AlwaysDisplayVersion;
|
|
extern ATOM gaGuiConsoleWndClass;
|
|
extern ATOM AtomDDETrack;
|
|
extern ATOM AtomQOS;
|
|
extern ATOM AtomImeLevel;
|
|
extern ERESOURCE UserLock;
|
|
|
|
CODE_SEG("INIT") NTSTATUS NTAPI InitUserImpl(VOID);
|
|
VOID FASTCALL CleanupUserImpl(VOID);
|
|
VOID FASTCALL UserEnterShared(VOID);
|
|
VOID FASTCALL UserEnterExclusive(VOID);
|
|
VOID FASTCALL UserLeave(VOID);
|
|
BOOL FASTCALL UserIsEntered(VOID);
|
|
BOOL FASTCALL UserIsEnteredExclusive(VOID);
|
|
DWORD FASTCALL UserGetLanguageToggle(_In_ LPCWSTR pszType, _In_ DWORD dwDefaultValue);
|
|
|
|
_Success_(return != FALSE)
|
|
BOOL
|
|
NTAPI
|
|
RegReadUserSetting(
|
|
_In_z_ PCWSTR pwszKeyName,
|
|
_In_z_ PCWSTR pwszValueName,
|
|
_In_ ULONG ulType,
|
|
_Out_writes_bytes_(cjDataSize) _When_(ulType == REG_SZ, _Post_z_) PVOID pvData,
|
|
_In_ ULONG cjDataSize);
|
|
|
|
_Success_(return != FALSE)
|
|
BOOL
|
|
NTAPI
|
|
RegWriteUserSetting(
|
|
_In_z_ PCWSTR pwszKeyName,
|
|
_In_z_ PCWSTR pwszValueName,
|
|
_In_ ULONG ulType,
|
|
_In_reads_bytes_(cjDataSize) const VOID *pvData,
|
|
_In_ ULONG cjDataSize);
|
|
|
|
PGRAPHICS_DEVICE
|
|
NTAPI
|
|
InitDisplayDriver(
|
|
IN PWSTR pwszDeviceName,
|
|
IN PWSTR pwszRegKey);
|
|
|
|
/* EOF */
|