Author: akhaldi
Date: Mon Jan 20 13:16:06 2014
New Revision: 61736
URL:
http://svn.reactos.org/svn/reactos?rev=61736&view=rev
Log:
[ADVAPI32]
* Remove one time inclusions from the main header and put them back where they belong.
* Cleanup the main header.
CORE-7716
Modified:
trunk/reactos/dll/win32/advapi32/advapi32.h
trunk/reactos/dll/win32/advapi32/crypt/crypt.c
trunk/reactos/dll/win32/advapi32/misc/efs.c
trunk/reactos/dll/win32/advapi32/misc/shutdown.c
trunk/reactos/dll/win32/advapi32/misc/trace.c
trunk/reactos/dll/win32/advapi32/reg/reg.c
trunk/reactos/dll/win32/advapi32/sec/cred.c
trunk/reactos/dll/win32/advapi32/sec/lsa.c
trunk/reactos/dll/win32/advapi32/sec/misc.c
trunk/reactos/dll/win32/advapi32/sec/sid.c
trunk/reactos/dll/win32/advapi32/service/eventlog.c
trunk/reactos/dll/win32/advapi32/token/token.c
Modified: trunk/reactos/dll/win32/advapi32/advapi32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/advapi3…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/advapi32.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/advapi32.h [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -15,25 +15,19 @@
#include <stdio.h>
/* PSDK/NDK Headers */
+#define WINE_STRICT_PROTOTYPES
#define WIN32_NO_STATUS
#define WIN32_LEAN_AND_MEAN
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
#define _WMI_SOURCE_
-#include <windows.h>
-#include <winefs.h>
#include <aclapi.h>
-#include <wmistr.h>
-#include <evntrace.h>
#include <winsafer.h>
-#include <sddl.h>
#define NTOS_MODE_USER
-#include <ndk/cmfuncs.h>
-#include <ndk/exfuncs.h>
#include <ndk/iofuncs.h>
-#include <ndk/kefuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
-#include <ndk/setypes.h>
#include <ndk/sefuncs.h>
/* this has to go after the NDK when being used with the NDK */
@@ -41,13 +35,11 @@
#include <services/services.h>
#include <svcctl_c.h>
-#include <lsa_c.h>
-#include <eventlogrpc_c.h>
+
+#include <wine/debug.h>
+#include <wine/unicode.h>
#include "crypt/crypt.h"
-#include <wine/debug.h>
-#include <wine/unicode.h>
-#include <wincred.h>
#ifndef HAS_FN_PROGRESSW
#define FN_PROGRESSW FN_PROGRESS
Modified: trunk/reactos/dll/win32/advapi32/crypt/crypt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/crypt/c…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/crypt/crypt.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/crypt/crypt.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -24,7 +24,6 @@
* - Thread-safing
*/
-#define WINE_STRICT_PROTOTYPES
#include <advapi32.h>
WINE_DEFAULT_DEBUG_CHANNEL(crypt);
Modified: trunk/reactos/dll/win32/advapi32/misc/efs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/ef…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/efs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/misc/efs.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -7,8 +7,10 @@
*/
#include <advapi32.h>
+
+#include <winefs.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
-
/*
* @unimplemented
Modified: trunk/reactos/dll/win32/advapi32/misc/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/sh…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/shutdown.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/misc/shutdown.c [iso-8859-1] Mon Jan 20 13:16:06
2014
@@ -8,6 +8,9 @@
*/
#include <advapi32.h>
+
+#include <ndk/exfuncs.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
/**********************************************************************
Modified: trunk/reactos/dll/win32/advapi32/misc/trace.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/tr…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/trace.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/misc/trace.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -3,6 +3,10 @@
*/
#include <advapi32.h>
+
+#include <wmistr.h>
+#include <evntrace.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
/*
* @unimplemented
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -14,7 +14,10 @@
/* INCLUDES *****************************************************************/
#include <advapi32.h>
+
+#include <ndk/cmfuncs.h>
#include <pseh/pseh2.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(reg);
/* DEFINES ******************************************************************/
Modified: trunk/reactos/dll/win32/advapi32/sec/cred.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/cre…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/cred.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/cred.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -19,6 +19,9 @@
*/
#include <advapi32.h>
+
+#include <wincred.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(cred);
/* the size of the ARC4 key used to encrypt the password data */
Modified: trunk/reactos/dll/win32/advapi32/sec/lsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/lsa…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -13,8 +13,9 @@
#include <advapi32.h>
+#include <lsa_c.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
-
static
BOOL
Modified: trunk/reactos/dll/win32/advapi32/sec/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/mis…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/misc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/misc.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -11,8 +11,8 @@
*/
#include <advapi32.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
-
/* Interface to ntmarta.dll ***************************************************/
Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -12,6 +12,9 @@
*/
#include <advapi32.h>
+
+#include <sddl.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
#define MAX_GUID_STRING_LEN 39
Modified: trunk/reactos/dll/win32/advapi32/service/eventlog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/eventlog.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/eventlog.c [iso-8859-1] Mon Jan 20 13:16:06
2014
@@ -22,6 +22,10 @@
*/
#include <advapi32.h>
+
+#include <ndk/kefuncs.h>
+#include <eventlogrpc_c.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
static RPC_UNICODE_STRING EmptyStringU = { 0, 0, L"" };
Modified: trunk/reactos/dll/win32/advapi32/token/token.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/token/t…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/token/token.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/token/token.c [iso-8859-1] Mon Jan 20 13:16:06 2014
@@ -9,6 +9,9 @@
*/
#include <advapi32.h>
+
+#include <ndk/setypes.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
/*