2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2006-11-08 11:47:44 +00:00
|
|
|
|
|
|
|
#define DECLARE_RETURN(type) type _ret_
|
|
|
|
#define RETURN(value) { _ret_ = value; goto _cleanup_; }
|
|
|
|
#define CLEANUP /*unreachable*/ ASSERT(FALSE); _cleanup_
|
|
|
|
#define END_CLEANUP return _ret_;
|
2021-12-31 01:20:53 +00:00
|
|
|
#define IS_IMM_MODE() (gpsi && (gpsi->dwSRVIFlags & SRVINFO_IMM32))
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2007-02-28 13:21:48 +00:00
|
|
|
#define UserEnterCo UserEnterExclusive
|
|
|
|
#define UserLeaveCo UserLeave
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2008-05-30 06:13:52 +00:00
|
|
|
extern PSERVERINFO gpsi;
|
2011-08-22 19:58:32 +00:00
|
|
|
extern PTHREADINFO gptiCurrent;
|
2012-10-27 16:39:18 +00:00
|
|
|
extern PPROCESSINFO gppiList;
|
2012-02-05 20:21:22 +00:00
|
|
|
extern PPROCESSINFO ppiScrnSaver;
|
2012-04-21 18:18:59 +00:00
|
|
|
extern PPROCESSINFO gppiInputProvider;
|
2016-06-01 15:24:38 +00:00
|
|
|
extern BOOL g_AlwaysDisplayVersion;
|
2013-01-04 00:41:10 +00:00
|
|
|
extern ATOM gaGuiConsoleWndClass;
|
2015-01-08 00:56:51 +00:00
|
|
|
extern ATOM AtomDDETrack;
|
|
|
|
extern ATOM AtomQOS;
|
2022-01-26 22:29:19 +00:00
|
|
|
extern ATOM AtomImeLevel;
|
2021-08-04 07:49:18 +00:00
|
|
|
extern ERESOURCE UserLock;
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2021-05-11 15:13:14 +00:00
|
|
|
CODE_SEG("INIT") NTSTATUS NTAPI InitUserImpl(VOID);
|
2007-02-28 13:21:48 +00:00
|
|
|
VOID FASTCALL CleanupUserImpl(VOID);
|
|
|
|
VOID FASTCALL UserEnterShared(VOID);
|
|
|
|
VOID FASTCALL UserEnterExclusive(VOID);
|
|
|
|
VOID FASTCALL UserLeave(VOID);
|
2009-08-24 20:09:58 +00:00
|
|
|
BOOL FASTCALL UserIsEntered(VOID);
|
|
|
|
BOOL FASTCALL UserIsEnteredExclusive(VOID);
|
2016-08-11 15:53:05 +00:00
|
|
|
DWORD FASTCALL UserGetLanguageToggle(VOID);
|
2006-11-08 11:47:44 +00:00
|
|
|
|
2018-03-18 14:53:52 +00:00
|
|
|
_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);
|
|
|
|
|
2021-06-19 15:07:13 +00:00
|
|
|
PGRAPHICS_DEVICE
|
|
|
|
NTAPI
|
|
|
|
InitDisplayDriver(
|
|
|
|
IN PWSTR pwszDeviceName,
|
|
|
|
IN PWSTR pwszRegKey);
|
|
|
|
|
2006-11-08 11:47:44 +00:00
|
|
|
/* EOF */
|