[NETAPI32]
[reactos.git] / reactos / dll / win32 / netapi32 / netapi32.h
1
2 #ifndef __WINE_NETAPI32_H__
3 #define __WINE_NETAPI32_H__
4
5 #include <stdarg.h>
6
7 //#include "ntstatus.h"
8 #define WIN32_NO_STATUS
9 #include <windef.h>
10 #include <winbase.h>
11 //#include "winerror.h"
12 //#include "lmcons.h"
13 #include <lmaccess.h>
14 #include <lmapibuf.h>
15 #include <lmbrowsr.h>
16 #include <lmerr.h>
17 //#include "lmshare.h"
18 //#include "lmuse.h"
19 #include <ntsecapi.h>
20 #include <dsrole.h>
21 #include <dsgetdc.h>
22 #include <wine/debug.h>
23 //#include "wine/unicode.h"
24 #include <wine/list.h>
25
26 #define NTOS_MODE_USER
27 #include <ndk/kefuncs.h>
28 #include <ndk/rtlfuncs.h>
29 #include <ntsam.h>
30
31
32 NET_API_STATUS
33 WINAPI
34 NetpNtStatusToApiStatus(NTSTATUS Status);
35
36 /* misc.c */
37
38 NTSTATUS
39 GetAccountDomainSid(IN PUNICODE_STRING ServerName,
40 OUT PSID *AccountDomainSid);
41
42 NTSTATUS
43 GetBuiltinDomainSid(OUT PSID *BuiltinDomainSid);
44
45 NTSTATUS
46 OpenAccountDomain(IN SAM_HANDLE ServerHandle,
47 IN PUNICODE_STRING ServerName,
48 IN ULONG DesiredAccess,
49 OUT PSAM_HANDLE DomainHandle);
50
51 NTSTATUS
52 OpenBuiltinDomain(IN SAM_HANDLE ServerHandle,
53 IN ULONG DesiredAccess,
54 OUT SAM_HANDLE *DomainHandle);
55
56 NET_API_STATUS
57 BuildSidFromSidAndRid(IN PSID SrcSid,
58 IN ULONG RelativeId,
59 OUT PSID *DestSid);
60
61 /* wksta.c */
62
63 BOOL
64 NETAPI_IsLocalComputer(LMCSTR ServerName);
65
66 #endif