ReactOS 0.4.16-dev-91-g764881a
logon.c File Reference
#include <user32.h>
Include dependency graph for logon.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (user32)
 
BOOL WINAPI RegisterServicesProcess (DWORD ServicesProcessId)
 
BOOL WINAPI RegisterLogonProcess (DWORD dwProcessId, BOOL bRegister)
 
VOID FASTCALL Logon (BOOL IsLogon)
 
BOOL WINAPI SetLogonNotifyWindow (HWND Wnd)
 
BOOL WINAPI UpdatePerUserSystemParameters (DWORD dwReserved, BOOL bEnable)
 

Function Documentation

◆ Logon()

VOID FASTCALL Logon ( BOOL  IsLogon)

Definition at line 74 of file logon.c.

75{
76 USER_API_MESSAGE ApiMessage;
77 PUSER_LOGON LogonRequest = &ApiMessage.Data.LogonRequest;
78
79 LogonRequest->IsLogon = IsLogon;
81 NULL,
83 sizeof(*LogonRequest));
84}
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NULL
Definition: types.h:112
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
Definition: connect.c:366
USER_LOGON LogonRequest
Definition: winmsg.h:110
union _USER_API_MESSAGE::@3537 Data
BOOL IsLogon
Definition: winmsg.h:65
@ UserpLogon
Definition: winmsg.h:23
#define USERSRV_SERVERDLL_INDEX
Definition: winmsg.h:15

Referenced by SetWindowStationUser().

◆ RegisterLogonProcess()

BOOL WINAPI RegisterLogonProcess ( DWORD  dwProcessId,
BOOL  bRegister 
)

Definition at line 43 of file logon.c.

45{
46 gfLogonProcess = NtUserxRegisterLogonProcess(dwProcessId, bRegister);
47
49 {
50 USER_API_MESSAGE ApiMessage;
51 PUSER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest = &ApiMessage.Data.RegisterLogonProcessRequest;
52
53 RegisterLogonProcessRequest->ProcessId = dwProcessId;
54 RegisterLogonProcessRequest->Register = bRegister;
55
57 NULL,
59 sizeof(*RegisterLogonProcessRequest));
60 if (!NT_SUCCESS(ApiMessage.Status))
61 {
62 ERR("Failed to register logon process with CSRSS\n");
63 UserSetLastNTError(ApiMessage.Status);
64 }
65 }
66
67 return gfLogonProcess;
68}
#define ERR(fmt,...)
Definition: precomp.h:57
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
EXTINLINE BOOL NtUserxRegisterLogonProcess(DWORD dwProcessId, BOOL bRegister)
Definition: ntwrapper.h:831
NTSTATUS Status
Definition: csrmsg.h:110
USER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest
Definition: winmsg.h:113
BOOLEAN gfLogonProcess
Definition: dllmain.c:34
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
Definition: misc.c:25
@ UserpRegisterLogonProcess
Definition: winmsg.h:28

Referenced by WinMain().

◆ RegisterServicesProcess()

BOOL WINAPI RegisterServicesProcess ( DWORD  ServicesProcessId)

Definition at line 18 of file logon.c.

19{
20 USER_API_MESSAGE ApiMessage;
21 PUSER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &ApiMessage.Data.RegisterServicesProcessRequest;
22
23 RegisterServicesProcessRequest->ProcessId = ServicesProcessId;
24
26 NULL,
28 sizeof(*RegisterServicesProcessRequest));
29 if (!NT_SUCCESS(ApiMessage.Status))
30 {
31 UserSetLastNTError(ApiMessage.Status);
32 return FALSE;
33 }
34
35 return TRUE;
36}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
USER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest
Definition: winmsg.h:112
ULONG_PTR ServicesProcessId
Definition: register.c:20
@ UserpRegisterServicesProcess
Definition: winmsg.h:24

Referenced by wWinMain().

◆ SetLogonNotifyWindow()

BOOL WINAPI SetLogonNotifyWindow ( HWND  Wnd)

Definition at line 91 of file logon.c.

92{
94}
BOOL NTAPI NtUserSetLogonNotifyWindow(HWND hWnd)
Definition: winsta.c:1953

Referenced by InitializeSAS().

◆ UpdatePerUserSystemParameters()

BOOL WINAPI UpdatePerUserSystemParameters ( DWORD  dwReserved,
BOOL  bEnable 
)

Definition at line 101 of file logon.c.

103{
104 // Update Imm support and load Imm32.dll.
106
107 /* Initialize the IME hotkeys */
109
110 /* Load Preload keyboard layouts */
112
114}
BOOL NTAPI NtUserUpdatePerUserSystemParameters(DWORD dwReserved, BOOL bEnable)
Definition: sysparams.c:375
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
@ SETIMEHOTKEY_INITIALIZE
Definition: undocuser.h:409
VOID APIENTRY CliImmInitializeHotKeys(DWORD dwAction, HKL hKL)
Definition: input.c:402
BOOL WINAPI UpdatePerUserImmEnabling(VOID)
Definition: imm.c:1102
VOID IntLoadPreloadKeyboardLayouts(VOID)
Definition: input.c:148
_In_ BOOL bEnable
Definition: winddi.h:3426

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( user32  )