Reactos
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
33extern LIST_ENTRY g_EnumContextListHead;
34extern CRITICAL_SECTION g_EnumContextListLock;
35
36/* misc.c */
37
38NTSTATUS
39GetAccountDomainSid(IN PUNICODE_STRING ServerName,
40 OUT PSID *AccountDomainSid);
41
42NTSTATUS
43GetBuiltinDomainSid(OUT PSID *BuiltinDomainSid);
44
45NTSTATUS
46OpenAccountDomain(IN SAM_HANDLE ServerHandle,
47 IN PUNICODE_STRING ServerName,
48 IN ULONG DesiredAccess,
49 OUT PSAM_HANDLE DomainHandle);
50
51NTSTATUS
52OpenBuiltinDomain(IN SAM_HANDLE ServerHandle,
53 IN ULONG DesiredAccess,
54 OUT SAM_HANDLE *DomainHandle);
55
56NET_API_STATUS
57BuildSidFromSidAndRid(IN PSID SrcSid,
58 IN ULONG RelativeId,
59 OUT PSID *DestSid);
60
61VOID
62CopySidFromSidAndRid(
63 _Out_ PSID DstSid,
64 _In_ PSID SrcSid,
65 _In_ ULONG RelativeId);
66
67PSTR
68WINAPI
69NetpAllocAnsiStrFromWStr(
70 _In_ PWSTR InString);
71
72PSTR
73WINAPI
74NetpAllocStrFromWStr(
75 _In_ PWSTR InString);
76
77PWSTR
78WINAPI
79NetpAllocWStrFromAnsiStr(
80 _In_ PSTR InString);
81
82PWSTR
83WINAPI
84NetpAllocWStrFromStr(
85 _In_ PSTR InString);
86
87PWSTR
88WINAPI
89NetpAllocWStrFromWStr(
90 _In_ PWSTR InString);
91
92NET_API_STATUS
93WINAPI
94NetpNtStatusToApiStatus(
95 _In_ NTSTATUS Status);
96
97/* wksta.c */
98
99BOOL
100NETAPI_IsLocalComputer(LMCSTR ServerName);
101
102#endif /* __WINE_NETAPI32_H__ */