ReactOS  0.4.14-dev-50-g13bb5e2
netapi32.h
Go to the documentation of this file.
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 
35 
36 /* misc.c */
37 
41 
44 
46 OpenAccountDomain(IN SAM_HANDLE ServerHandle,
47  IN PUNICODE_STRING ServerName,
49  OUT PSAM_HANDLE DomainHandle);
50 
52 OpenBuiltinDomain(IN SAM_HANDLE ServerHandle,
54  OUT SAM_HANDLE *DomainHandle);
55 
58  IN ULONG RelativeId,
59  OUT PSID *DestSid);
60 
61 VOID
63  _Out_ PSID DstSid,
64  _In_ PSID SrcSid,
65  _In_ ULONG RelativeId);
66 
67 PSTR
68 WINAPI
70  _In_ PWSTR InString);
71 
72 PSTR
73 WINAPI
75  _In_ PWSTR InString);
76 
77 PWSTR
78 WINAPI
80  _In_ PSTR InString);
81 
82 PWSTR
83 WINAPI
85  _In_ PSTR InString);
86 
87 PWSTR
88 WINAPI
90  _In_ PWSTR InString);
91 
93 WINAPI
96 
97 /* wksta.c */
98 
99 BOOL
100 NETAPI_IsLocalComputer(LMCSTR ServerName);
101 
102 #endif /* __WINE_NETAPI32_H__ */
#define IN
Definition: typedefs.h:38
PWSTR WINAPI NetpAllocWStrFromStr(_In_ PSTR InString)
Definition: misc.c:236
uint16_t * PWSTR
Definition: typedefs.h:54
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS GetAccountDomainSid(IN PUNICODE_STRING ServerName, OUT PSID *AccountDomainSid)
Definition: utils.c:23
PSID BuiltinDomainSid
Definition: globals.c:16
NTSTATUS OpenAccountDomain(IN SAM_HANDLE ServerHandle, IN PUNICODE_STRING ServerName, IN ULONG DesiredAccess, OUT PSAM_HANDLE DomainHandle)
Definition: utils.c:113
CRITICAL_SECTION g_EnumContextListLock
Definition: user.c:57
BOOL NETAPI_IsLocalComputer(LMCSTR ServerName)
Definition: wksta.c:33
const wchar_t * LMCSTR
Definition: ms-dtyp.idl:118
unsigned int BOOL
Definition: ntddk_ex.h:94
PSTR WINAPI NetpAllocAnsiStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:140
#define _Out_
Definition: no_sal2.h:323
PWSTR WINAPI NetpAllocWStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:268
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define WINAPI
Definition: msvc.h:8
LIST_ENTRY g_EnumContextListHead
Definition: user.c:56
Definition: typedefs.h:117
NTSTATUS GetBuiltinDomainSid(OUT PSID *BuiltinDomainSid)
Definition: utils.c:76
Status
Definition: gdiplustypes.h:24
VOID CopySidFromSidAndRid(_Out_ PSID DstSid, _In_ PSID SrcSid, _In_ ULONG RelativeId)
Definition: utils.c:220
#define _In_
Definition: no_sal2.h:204
NTSTATUS OpenBuiltinDomain(IN SAM_HANDLE ServerHandle, IN ULONG DesiredAccess, OUT SAM_HANDLE *DomainHandle)
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4157
signed char * PSTR
Definition: retypes.h:7
PWSTR WINAPI NetpAllocWStrFromAnsiStr(_In_ PSTR InString)
Definition: misc.c:204
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
PSID AccountDomainSid
Definition: database.c:22
NET_API_STATUS BuildSidFromSidAndRid(IN PSID SrcSid, IN ULONG RelativeId, OUT PSID *DestSid)
Definition: utils.c:177
PSTR WINAPI NetpAllocStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:172
NET_API_STATUS WINAPI NetpNtStatusToApiStatus(_In_ NTSTATUS Status)
Definition: misc.c:289