Author: hbelusca
Date: Fri Nov 28 20:58:50 2014
New Revision: 65515
URL:
http://svn.reactos.org/svn/reactos?rev=65515&view=rev
Log:
[USER32]: Move some logon-related functions to an appropriate file.
Added:
trunk/reactos/win32ss/user/user32/misc/logon.c (with props)
Modified:
trunk/reactos/win32ss/user/user32/CMakeLists.txt
trunk/reactos/win32ss/user/user32/misc/exit.c
trunk/reactos/win32ss/user/user32/misc/misc.c
Modified: trunk/reactos/win32ss/user/user32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/CMakeL…
==============================================================================
--- trunk/reactos/win32ss/user/user32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/CMakeLists.txt [iso-8859-1] Fri Nov 28 20:58:50
2014
@@ -25,6 +25,7 @@
misc/exit.c
misc/exticon.c
misc/imm.c
+ misc/logon.c
misc/misc.c
misc/object.c
misc/resources.c
Modified: trunk/reactos/win32ss/user/user32/misc/exit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/e…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/exit.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/exit.c [iso-8859-1] Fri Nov 28 20:58:50 2014
@@ -40,7 +40,7 @@
* - This ends the processing for the first ExitWindowsEx() call from WinLogon.
* Execution continues in WinLogon, which calls ExitWindowsEx() again to
* terminate COM processes in the interactive user's session.
- * - WinLogon stops impersonating the interactive user (whos processes are
+ * - WinLogon stops impersonating the interactive user (whose processes are
* all dead by now). and enters log-out state
* - If the ExitWindowsEx() request was for a logoff, WinLogon sends a SAS
* event (to display the "press ctrl+alt+del") to the GINA. WinLogon then
@@ -86,29 +86,4 @@
return TRUE;
}
-
-/*
- * @implemented
- */
-BOOL WINAPI
-RegisterServicesProcess(DWORD ServicesProcessId)
-{
- NTSTATUS Status;
- USER_API_MESSAGE ApiMessage;
-
- ApiMessage.Data.RegisterServicesProcessRequest.ProcessId = ServicesProcessId;
-
- Status = CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
- NULL,
- CSR_CREATE_API_NUMBER(USERSRV_SERVERDLL_INDEX,
UserpRegisterServicesProcess),
- sizeof(USER_REGISTER_SERVICES_PROCESS));
- if (!NT_SUCCESS(Status))
- {
- SetLastError(RtlNtStatusToDosError(Status));
- return FALSE;
- }
-
- return TRUE;
-}
-
/* EOF */
Added: trunk/reactos/win32ss/user/user32/misc/logon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/l…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/logon.c (added)
+++ trunk/reactos/win32ss/user/user32/misc/logon.c [iso-8859-1] Fri Nov 28 20:58:50 2014
@@ -0,0 +1,95 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS user32.dll
+ * FILE: lib/user32/misc/logon.c
+ * PURPOSE: Logon functions
+ * PROGRAMMER: Thomas Weidenmueller (w3seek(a)users.sourceforge.net)
+ */
+
+/* INCLUDES ******************************************************************/
+
+#include <user32.h>
+
+#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(user32);
+
+/* FUNCTIONS *****************************************************************/
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+RegisterServicesProcess(DWORD ServicesProcessId)
+{
+ USER_API_MESSAGE ApiMessage;
+ PUSER_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest =
&ApiMessage.Data.RegisterServicesProcessRequest;
+
+ RegisterServicesProcessRequest->ProcessId = ServicesProcessId;
+
+ CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
+ NULL,
+ CSR_CREATE_API_NUMBER(USERSRV_SERVERDLL_INDEX,
UserpRegisterServicesProcess),
+ sizeof(*RegisterServicesProcessRequest));
+ if (!NT_SUCCESS(ApiMessage.Status))
+ {
+ UserSetLastNTError(ApiMessage.Status);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+RegisterLogonProcess(DWORD dwProcessId,
+ BOOL bRegister)
+{
+ gfLogonProcess = NtUserxRegisterLogonProcess(dwProcessId, bRegister);
+
+ if (gfLogonProcess)
+ {
+ USER_API_MESSAGE ApiMessage;
+ PUSER_REGISTER_LOGON_PROCESS RegisterLogonProcessRequest =
&ApiMessage.Data.RegisterLogonProcessRequest;
+
+ RegisterLogonProcessRequest->ProcessId = dwProcessId;
+ RegisterLogonProcessRequest->Register = bRegister;
+
+ CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
+ NULL,
+ CSR_CREATE_API_NUMBER(USERSRV_SERVERDLL_INDEX,
UserpRegisterLogonProcess),
+ sizeof(*RegisterLogonProcessRequest));
+ if (!NT_SUCCESS(ApiMessage.Status))
+ {
+ ERR("Failed to register logon process with CSRSS\n");
+ UserSetLastNTError(ApiMessage.Status);
+ }
+ }
+
+ return gfLogonProcess;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+SetLogonNotifyWindow(HWND Wnd, HWINSTA WinSta)
+{
+ return NtUserSetLogonNotifyWindow(Wnd);
+}
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+UpdatePerUserSystemParameters(DWORD dwReserved,
+ BOOL bEnable)
+{
+ return NtUserUpdatePerUserSystemParameters(dwReserved, bEnable);
+}
Propchange: trunk/reactos/win32ss/user/user32/misc/logon.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/win32ss/user/user32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/m…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/misc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/misc.c [iso-8859-1] Fri Nov 28 20:58:50 2014
@@ -39,59 +39,6 @@
UserSetLastError(RtlNtStatusToDosError(Status));
}
-
-/*
- * @implemented
- */
-BOOL
-WINAPI
-RegisterLogonProcess(DWORD dwProcessId, BOOL bRegister)
-{
- gfLogonProcess = NtUserxRegisterLogonProcess(dwProcessId, bRegister);
-
- if (gfLogonProcess)
- {
- NTSTATUS Status;
- USER_API_MESSAGE ApiMessage;
-
- ApiMessage.Data.RegisterLogonProcessRequest.ProcessId = dwProcessId;
- ApiMessage.Data.RegisterLogonProcessRequest.Register = bRegister;
-
- Status = CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
- NULL,
- CSR_CREATE_API_NUMBER(USERSRV_SERVERDLL_INDEX,
UserpRegisterLogonProcess),
- sizeof(USER_REGISTER_LOGON_PROCESS));
- if (!NT_SUCCESS(Status))
- {
- ERR("Failed to register logon process with CSRSS\n");
- SetLastError(RtlNtStatusToDosError(Status));
- // return FALSE;
- }
- }
-
- return gfLogonProcess;
-}
-
-/*
- * @implemented
- */
-BOOL
-WINAPI
-SetLogonNotifyWindow(HWND Wnd, HWINSTA WinSta)
-{
- return NtUserSetLogonNotifyWindow(Wnd);
-}
-
-/*
- * @implemented
- */
-BOOL WINAPI
-UpdatePerUserSystemParameters(
- DWORD dwReserved,
- BOOL bEnable)
-{
- return NtUserUpdatePerUserSystemParameters(dwReserved, bEnable);
-}
PTHREADINFO
GetW32ThreadInfo(VOID)