ReactOS 0.4.15-dev-8408-g466a198
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
47 IN PUNICODE_STRING ServerName,
49 OUT PSAM_HANDLE DomainHandle);
50
54 OUT SAM_HANDLE *DomainHandle);
55
58 IN ULONG RelativeId,
59 OUT PSID *DestSid);
60
61VOID
63 _Out_ PSID DstSid,
64 _In_ PSID SrcSid,
65 _In_ ULONG RelativeId);
66
67PSTR
70 _In_ PWSTR InString);
71
72PSTR
75 _In_ PWSTR InString);
76
80 _In_ PSTR InString);
81
85 _In_ PSTR InString);
86
90 _In_ PWSTR InString);
91
96
97/* wksta.c */
98
99BOOL
101
102#endif /* __WINE_NETAPI32_H__ */
LONG NTSTATUS
Definition: precomp.h:26
PSID BuiltinDomainSid
Definition: globals.c:16
PSID AccountDomainSid
Definition: database.c:24
unsigned int BOOL
Definition: ntddk_ex.h:94
Status
Definition: gdiplustypes.h:25
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
const wchar_t * LMCSTR
Definition: ms-dtyp.idl:118
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
CRITICAL_SECTION g_EnumContextListLock
Definition: user.c:57
PWSTR WINAPI NetpAllocWStrFromAnsiStr(_In_ PSTR InString)
Definition: misc.c:204
LIST_ENTRY g_EnumContextListHead
Definition: user.c:56
NTSTATUS OpenBuiltinDomain(IN SAM_HANDLE ServerHandle, IN ULONG DesiredAccess, OUT SAM_HANDLE *DomainHandle)
VOID CopySidFromSidAndRid(_Out_ PSID DstSid, _In_ PSID SrcSid, _In_ ULONG RelativeId)
Definition: utils.c:220
NTSTATUS GetAccountDomainSid(IN PUNICODE_STRING ServerName, OUT PSID *AccountDomainSid)
Definition: utils.c:23
PWSTR WINAPI NetpAllocWStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:268
NTSTATUS GetBuiltinDomainSid(OUT PSID *BuiltinDomainSid)
Definition: utils.c:76
BOOL NETAPI_IsLocalComputer(LMCSTR ServerName)
Definition: wksta.c:33
NET_API_STATUS WINAPI NetpNtStatusToApiStatus(_In_ NTSTATUS Status)
Definition: misc.c:289
PSTR WINAPI NetpAllocStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:172
NET_API_STATUS BuildSidFromSidAndRid(IN PSID SrcSid, IN ULONG RelativeId, OUT PSID *DestSid)
Definition: utils.c:177
NTSTATUS OpenAccountDomain(IN SAM_HANDLE ServerHandle, IN PUNICODE_STRING ServerName, IN ULONG DesiredAccess, OUT PSAM_HANDLE DomainHandle)
Definition: utils.c:113
PWSTR WINAPI NetpAllocWStrFromStr(_In_ PSTR InString)
Definition: misc.c:236
PSTR WINAPI NetpAllocAnsiStrFromWStr(_In_ PWSTR InString)
Definition: misc.c:140
Definition: typedefs.h:120
uint16_t * PWSTR
Definition: typedefs.h:56
char * PSTR
Definition: typedefs.h:51
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658
#define WINAPI
Definition: msvc.h:6