ReactOS  0.4.13-dev-235-g7373cb3
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 
37 WINAPI
39 
40 /* misc.c */
41 
45 
48 
50 OpenAccountDomain(IN SAM_HANDLE ServerHandle,
51  IN PUNICODE_STRING ServerName,
53  OUT PSAM_HANDLE DomainHandle);
54 
56 OpenBuiltinDomain(IN SAM_HANDLE ServerHandle,
58  OUT SAM_HANDLE *DomainHandle);
59 
62  IN ULONG RelativeId,
63  OUT PSID *DestSid);
64 
65 VOID
67  _Out_ PSID DstSid,
68  _In_ PSID SrcSid,
69  _In_ ULONG RelativeId);
70 
71 /* wksta.c */
72 
73 BOOL
74 NETAPI_IsLocalComputer(LMCSTR ServerName);
75 
76 #endif /* __WINE_NETAPI32_H__ */
NET_API_STATUS WINAPI NetpNtStatusToApiStatus(NTSTATUS Status)
#define IN
Definition: typedefs.h:38
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
#define _Out_
Definition: no_sal2.h:323
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
#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