[USERSRV]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 5 Feb 2014 16:27:14 +0000 (16:27 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 5 Feb 2014 16:27:14 +0000 (16:27 +0000)
* Remove one time inclusions from the main header and put them back where they belong.
* Improve header inclusions.
CORE-7716

svn path=/trunk/; revision=61990

reactos/win32ss/user/winsrv/usersrv/api.h
reactos/win32ss/user/winsrv/usersrv/harderror.c
reactos/win32ss/user/winsrv/usersrv/init.c
reactos/win32ss/user/winsrv/usersrv/shutdown.c
reactos/win32ss/user/winsrv/usersrv/usersrv.h

index 34e9c45..0692b97 100644 (file)
@@ -28,5 +28,3 @@ CSR_API(SrvExitWindowsEx);
 CSR_API(SrvEndTask);
 CSR_API(SrvLogon);
 CSR_API(SrvRecordShutdownReason);
-
-/* EOF */
index 31281c6..705146c 100644 (file)
 
 #include "usersrv.h"
 
+#include <ndk/mmfuncs.h>
+#include <pseh/pseh2.h>
+#include <strsafe.h>
+
 #define NDEBUG
 #include <debug.h>
 
-#include <strsafe.h>
-
 #define IDTRYAGAIN 10
 #define IDCONTINUE 11
 
index 563792e..8949e60 100644 (file)
@@ -10,6 +10,7 @@
 /* INCLUDES *******************************************************************/
 
 #include "usersrv.h"
+
 #include "api.h"
 
 #define NDEBUG
index 76b0f05..b0de4d3 100644 (file)
 /* INCLUDES *******************************************************************/
 
 #include "usersrv.h"
+
+#include <stdlib.h>
+#include <winreg.h>
+#include <winlogon.h>
+#include <commctrl.h>
 #include <sddl.h>
 
+#include "resource.h"
+
 #define NDEBUG
 #include <debug.h>
 
index 3ac83be..511acd4 100644 (file)
@@ -9,23 +9,19 @@
 #ifndef __USERSRV_H__
 #define __USERSRV_H__
 
-#pragma once
-
 /* PSDK/NDK Headers */
 #include <stdarg.h>
-#include <stdlib.h>
+
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
+
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
-#include <winreg.h>
 #include <winuser.h>
+
 #define NTOS_MODE_USER
-#include <ndk/iofuncs.h>
-#include <ndk/kefuncs.h>
-#include <ndk/mmfuncs.h>
 #include <ndk/obfuncs.h>
 #include <ndk/psfuncs.h>
 #include <ndk/rtlfuncs.h>
 /* Public Win32K Headers */
 #include <ntuser.h>
 
-/* PSEH for SEH Support */
-#include <pseh/pseh2.h>
-
-/* External Winlogon Header */
-#include <winlogon.h>
-
 /* CSRSS Header */
 #include <csr/csrsrv.h>
 
 /* USER Headers */
 #include <win/winmsg.h>
 
-/* Public Win32 Headers */
-#include <commctrl.h>
-
-#include "resource.h"
-
-
 /* Globals */
 extern HINSTANCE UserServerDllInstance;
 extern HANDLE UserServerHeap;
 extern ULONG_PTR LogonProcessId;
 
-#endif // __USERSRV_H__
-
-/* EOF */
+#endif /* __USERSRV_H__ */