ReactOS 0.4.15-dev-7693-gd0e2924
dsgetdc.h
Go to the documentation of this file.
1#ifndef _DSGETDC_H
2#define _DSGETDC_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define DS_DOMAIN_IN_FOREST 0x01
9#define DS_DOMAIN_DIRECT_OUTBOUND 0x02
10#define DS_DOMAIN_TREE_ROOT 0x04
11#define DS_DOMAIN_PRIMARY 0x08
12#define DS_DOMAIN_NATIVE_MODE 0x10
13#define DS_DOMAIN_DIRECT_INBOUND 0x20
14
16{
27
29{
40
41typedef struct _DS_DOMAIN_TRUSTSA
42{
52
53typedef struct _DS_DOMAIN_TRUSTSW
54{
64
67 LPCSTR ComputerName,
68 DWORD EntryCount,
69 PSOCKET_ADDRESS SocketAddresses,
70 LPSTR **SiteNames);
71
74 LPCWSTR ComputerName,
75 DWORD EntryCount,
76 PSOCKET_ADDRESS SocketAddresses,
77 LPWSTR **SiteNames);
78
81 LPCSTR ComputerName,
82 DWORD EntryCount,
83 PSOCKET_ADDRESS SocketAddresses,
84 LPSTR **SiteNames,
85 LPSTR **SubnetNames);
86
89 LPCWSTR ComputerName,
90 DWORD EntryCount,
91 PSOCKET_ADDRESS SocketAddresses,
92 LPWSTR **SiteNames,
93 LPWSTR **SubnetNames);
94
97 LPSTR ServerName,
98 LPSTR DnsDomainName,
99 GUID *DomainGuid,
100 GUID *DsaGuid,
101 LPSTR DnsHostName);
102
105 LPWSTR ServerName,
106 LPWSTR DnsDomainName,
107 GUID *DomainGuid,
108 GUID *DsaGuid,
109 LPWSTR DnsHostName);
110
113 LPSTR ServerName,
114 ULONG Flags,
115 PDS_DOMAIN_TRUSTSA* Domains,
116 PULONG DomainCount);
117
120 LPWSTR ServerName,
121 ULONG Flags,
122 PDS_DOMAIN_TRUSTSW* Domains,
123 PULONG DomainCount);
124
127 LPCSTR ComputerName,
128 LPCSTR DomainName,
129 GUID* DomainGuid,
130 LPCSTR SiteName,
131 ULONG Flags,
132 PDOMAIN_CONTROLLER_INFOA* DomainControllerInfo);
133
136 LPCWSTR ComputerName,
137 LPCWSTR DomainName,
138 GUID* DomainGuid,
139 LPCWSTR SiteName,
140 ULONG Flags,
141 PDOMAIN_CONTROLLER_INFOW* DomainControllerInfo);
142
145 LPCSTR ServerName,
146 PULONG EntryCount,
147 LPSTR **SiteNames);
148
151 LPCWSTR ServerName,
152 PULONG EntryCount,
153 LPWSTR **SiteNames);
154
157 LPCWSTR ServerName,
158 LPCWSTR TrustedDomainName,
159 DWORD Flags,
160 PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo);
161
164 LPCSTR ComputerName,
165 LPSTR *SiteName);
166
169 LPCWSTR ComputerName,
170 LPWSTR *SiteName);
171
174 LPCWSTR DomainName,
175 PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo,
176 PLSA_FOREST_TRUST_INFORMATION OldForestTrustInfo,
177 PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo);
178
181 LPCSTR SubnetName);
182
185 LPCWSTR SubnetName);
186
187#ifdef UNICODE
190#define DsAddressToSiteNames DsAddressToSiteNamesW
191#define DsAddressToSiteNamesEx DsAddressToSiteNamesExW
192#define DsEnumerateDomainTrusts DsEnumerateDomainTrustsW
193#define DsGetDcName DsGetDcNameW
194#define DsGetDcSiteCoverage DsGetDcSiteCoverageW
195#define DsGetSiteName DsGetSiteNameW
196#define DsValidateSubnetName DsValidateSubnetNameW
197#else
200#define DsAddressToSiteNames DsAddressToSiteNamesA
201#define DsAddressToSiteNamesEx DsAddressToSiteNamesExA
202#define DsEnumerateDomainTrusts DsEnumerateDomainTrustsA
203#define DsGetDcName DsGetDcNameA
204#define DsGetDcSiteCoverage DsGetDcSiteCoverageA
205#define DsGetSiteName DsGetSiteNameA
206#define DsValidateSubnetName DsValidateSubnetNameA
207#endif
208
209#ifdef __cplusplus
210}
211#endif
212#endif
DWORD WINAPI DsMergeForestTrustInformationW(LPCWSTR DomainName, PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo, PLSA_FOREST_TRUST_INFORMATION OldForestTrustInfo, PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName)
DWORD WINAPI DsDeregisterDnsHostRecordsW(LPWSTR ServerName, LPWSTR DnsDomainName, GUID *DomainGuid, GUID *DsaGuid, LPWSTR DnsHostName)
struct _DS_DOMAIN_TRUSTSA * PDS_DOMAIN_TRUSTSA
DWORD WINAPI DsGetDcNameW(LPCWSTR ComputerName, LPCWSTR DomainName, GUID *DomainGuid, LPCWSTR SiteName, ULONG Flags, PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
DS_DOMAIN_TRUSTSA * PDS_DOMAIN_TRUSTS
Definition: dsgetdc.h:199
DS_DOMAIN_TRUSTSA DS_DOMAIN_TRUSTS
Definition: dsgetdc.h:199
DOMAIN_CONTROLLER_INFOA DOMAIN_CONTROLLER_INFO
Definition: dsgetdc.h:198
DOMAIN_CONTROLLER_INFOA * PDOMAIN_CONTROLLER_INFO
Definition: dsgetdc.h:198
DWORD WINAPI DsDeregisterDnsHostRecordsA(LPSTR ServerName, LPSTR DnsDomainName, GUID *DomainGuid, GUID *DsaGuid, LPSTR DnsHostName)
DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSW *Domains, PULONG DomainCount)
struct _DOMAIN_CONTROLLER_INFOA DOMAIN_CONTROLLER_INFOA
struct _DS_DOMAIN_TRUSTSW * PDS_DOMAIN_TRUSTSW
DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName)
DWORD WINAPI DsGetForestTrustInformationW(LPCWSTR ServerName, LPCWSTR TrustedDomainName, DWORD Flags, PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
struct _DS_DOMAIN_TRUSTSW DS_DOMAIN_TRUSTSW
DWORD WINAPI DsValidateSubnetNameA(LPCSTR SubnetName)
DWORD WINAPI DsGetDcNameA(LPCSTR ComputerName, LPCSTR DomainName, GUID *DomainGuid, LPCSTR SiteName, ULONG Flags, PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
DWORD WINAPI DsGetDcSiteCoverageA(LPCSTR ServerName, PULONG EntryCount, LPSTR **SiteNames)
DWORD WINAPI DsAddressToSiteNamesW(LPCWSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPWSTR **SiteNames)
DWORD WINAPI DsValidateSubnetNameW(LPCWSTR SubnetName)
DWORD WINAPI DsAddressToSiteNamesExA(LPCSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPSTR **SiteNames, LPSTR **SubnetNames)
DWORD WINAPI DsAddressToSiteNamesExW(LPCWSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPWSTR **SiteNames, LPWSTR **SubnetNames)
DWORD WINAPI DsEnumerateDomainTrustsA(LPSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSA *Domains, PULONG DomainCount)
DWORD WINAPI DsGetDcSiteCoverageW(LPCWSTR ServerName, PULONG EntryCount, LPWSTR **SiteNames)
struct _DOMAIN_CONTROLLER_INFOW * PDOMAIN_CONTROLLER_INFOW
struct _DS_DOMAIN_TRUSTSA DS_DOMAIN_TRUSTSA
DWORD WINAPI DsAddressToSiteNamesA(LPCSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPSTR **SiteNames)
struct _DOMAIN_CONTROLLER_INFOA * PDOMAIN_CONTROLLER_INFOA
struct _DOMAIN_CONTROLLER_INFOW DOMAIN_CONTROLLER_INFOW
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG DomainControllerAddressType
Definition: dsgetdc.h:19
LPSTR DomainControllerAddress
Definition: dsgetdc.h:18
LPWSTR DomainControllerName
Definition: dsgetdc.h:30
LPWSTR DomainControllerAddress
Definition: dsgetdc.h:31
ULONG DomainControllerAddressType
Definition: dsgetdc.h:32
ULONG ParentIndex
Definition: dsgetdc.h:46
LPSTR NetbiosDomainName
Definition: dsgetdc.h:43
ULONG TrustAttributes
Definition: dsgetdc.h:48
LPSTR DnsDomainName
Definition: dsgetdc.h:44
ULONG ParentIndex
Definition: dsgetdc.h:58
LPWSTR DnsDomainName
Definition: dsgetdc.h:56
LPWSTR NetbiosDomainName
Definition: dsgetdc.h:55
ULONG TrustAttributes
Definition: dsgetdc.h:60
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185