#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 <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 */
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 */