ReactOS  0.4.14-dev-815-ge410a12
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 }
union _USER_API_MESSAGE::@3410 Data
#define USERSRV_SERVERDLL_INDEX
Definition: winmsg.h:15
BOOL IsLogon
Definition: winmsg.h:65
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
USER_LOGON LogonRequest
Definition: winmsg.h:102
smooth NULL
Definition: ftsmooth.c:416
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37

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 
48  if (gfLogonProcess)
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 }
union _USER_API_MESSAGE::@3410 Data
#define USERSRV_SERVERDLL_INDEX
Definition: winmsg.h:15
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
EXTINLINE BOOL NtUserxRegisterLogonProcess(DWORD dwProcessId, BOOL bRegister)
Definition: ntwrapper.h:831
NTSTATUS Status
Definition: csrmsg.h:112
smooth NULL
Definition: ftsmooth.c:416
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
USER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest
Definition: winmsg.h:105
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
Definition: misc.c:25
#define ERR(fmt,...)
Definition: debug.h:109
BOOLEAN gfLogonProcess
Definition: dllmain.c:35

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 }
union _USER_API_MESSAGE::@3410 Data
ULONG_PTR ServicesProcessId
Definition: register.c:20
#define TRUE
Definition: types.h:120
#define USERSRV_SERVERDLL_INDEX
Definition: winmsg.h:15
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
NTSTATUS Status
Definition: csrmsg.h:112
USER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest
Definition: winmsg.h:104
smooth NULL
Definition: ftsmooth.c:416
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
Definition: misc.c:25

Referenced by wWinMain().

◆ SetLogonNotifyWindow()

BOOL WINAPI SetLogonNotifyWindow ( HWND  Wnd)

Definition at line 91 of file logon.c.

92 {
93  return NtUserSetLogonNotifyWindow(Wnd);
94 }
BOOL NTAPI NtUserSetLogonNotifyWindow(HWND hWnd)
Definition: winsta.c:1917

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 
108 }
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
BOOL NTAPI NtUserUpdatePerUserSystemParameters(DWORD dwReserved, BOOL bEnable)
Definition: sysparams.c:358
_In_ BOOL bEnable
Definition: winddi.h:3426
BOOL WINAPI UpdatePerUserImmEnabling(VOID)
Definition: imm.c:287

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( user32  )