[ADVAPI32] Sync cred.c with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / advapi32 / advapi32.h
index 3c7d2a9..5869e35 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS System Libraries
  * FILE:            lib/advapi32/advapi32.h
- * PURPOSE:         Win32 Advanced API Libary Header
+ * PURPOSE:         Win32 Advanced API Library Header
  * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
  */
 #ifndef __ADVAPI32_H
 #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 <accctrl.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 */
 #include <ntsecapi.h>
 
 #include <services/services.h>
-#include "svcctl_c.h"
-#include "lsa_c.h"
-#include "eventlogrpc_c.h"
+#include <svcctl_c.h>
+#include <winreg_c.h>
 
-#include <rpc.h>
-
-#include "crypt/crypt.h"
 #include <wine/debug.h>
 #include <wine/unicode.h>
-#include <wincred.h>
+
+#include "wine/crypt.h"
 
 #ifndef HAS_FN_PROGRESSW
 #define FN_PROGRESSW FN_PROGRESS
 #define FN_PROGRESSA FN_PROGRESS
 #endif
 
-/* sid.c */
+/* logon.c */
 
-BOOL ADVAPI_GetComputerSid(PSID sid);
+NTSTATUS
+CloseLogonLsaHandle(VOID);
 
 /* rpc.c */
 
@@ -186,4 +179,16 @@ extern NTMARTA NtMartaStatic;
 
 DWORD CheckNtMartaPresent(VOID);
 
+/* heap allocation helpers */
+static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
+static inline void *heap_alloc( size_t len )
+{
+    return HeapAlloc( GetProcessHeap(), 0, len );
+}
+
+static inline BOOL heap_free( void *mem )
+{
+    return HeapFree( GetProcessHeap(), 0, mem );
+}
+
 #endif /* __ADVAPI32_H */