xref: /reactos/dll/win32/netapi32/netapi32.h (revision 7115d7ba)
1 #ifndef __WINE_NETAPI32_H__
2 #define __WINE_NETAPI32_H__
3 
4 #include <wine/config.h>
5 
6 #include <limits.h>
7 #include <stdarg.h>
8 
9 #define WIN32_NO_STATUS
10 #define _INC_WINDOWS
11 #define COM_NO_WINDOWS_H
12 
13 #include <windef.h>
14 #include <winbase.h>
15 #include <lmaccess.h>
16 #include <lmapibuf.h>
17 #include <lmerr.h>
18 #include <ntsecapi.h>
19 #include <nb30.h>
20 #include <iphlpapi.h>
21 
22 #include <wine/debug.h>
23 #include <wine/unicode.h>
24 
25 #define NTOS_MODE_USER
26 #include <ndk/rtlfuncs.h>
27 
28 #include <ntsam.h>
29 
30 #include "nbnamecache.h"
31 #include "netbios.h"
32 
33 extern LIST_ENTRY g_EnumContextListHead;
34 extern CRITICAL_SECTION g_EnumContextListLock;
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 VOID
62 CopySidFromSidAndRid(
63     _Out_ PSID DstSid,
64     _In_ PSID SrcSid,
65     _In_ ULONG RelativeId);
66 
67 PSTR
68 WINAPI
69 NetpAllocAnsiStrFromWStr(
70     _In_ PWSTR InString);
71 
72 PSTR
73 WINAPI
74 NetpAllocStrFromWStr(
75     _In_ PWSTR InString);
76 
77 PWSTR
78 WINAPI
79 NetpAllocWStrFromAnsiStr(
80     _In_ PSTR InString);
81 
82 PWSTR
83 WINAPI
84 NetpAllocWStrFromStr(
85     _In_ PSTR InString);
86 
87 PWSTR
88 WINAPI
89 NetpAllocWStrFromWStr(
90     _In_ PWSTR InString);
91 
92 NET_API_STATUS
93 WINAPI
94 NetpNtStatusToApiStatus(
95     _In_ NTSTATUS Status);
96 
97 /* wksta.c */
98 
99 BOOL
100 NETAPI_IsLocalComputer(LMCSTR ServerName);
101 
102 #endif /* __WINE_NETAPI32_H__ */
103