ReactOS  0.4.14-dev-342-gdc047f9
dsgetdc.h
Go to the documentation of this file.
1 #ifndef _DSGETDC_H
2 #define _DSGETDC_H
3 
4 #ifdef __cplusplus
5 extern "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 
41 typedef struct _DS_DOMAIN_TRUSTSA
42 {
52 
53 typedef 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 DsEnumerateDomainTrustsW(LPWSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSW *Domains, PULONG DomainCount)
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
struct _DOMAIN_CONTROLLER_INFOW * PDOMAIN_CONTROLLER_INFOW
LPSTR NetbiosDomainName
Definition: dsgetdc.h:43
struct _DS_DOMAIN_TRUSTSW DS_DOMAIN_TRUSTSW
DWORD WINAPI DsGetDcNameA(LPCSTR ComputerName, LPCSTR DomainName, GUID *DomainGuid, LPCSTR SiteName, ULONG Flags, PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
ULONG DomainControllerAddressType
Definition: dsgetdc.h:19
struct _DOMAIN_CONTROLLER_INFOA * PDOMAIN_CONTROLLER_INFOA
DWORD WINAPI DsGetDcNameW(LPCWSTR ComputerName, LPCWSTR DomainName, GUID *DomainGuid, LPCWSTR SiteName, ULONG Flags, PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
char * LPSTR
Definition: xmlstorage.h:182
DWORD WINAPI DsAddressToSiteNamesW(LPCWSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPWSTR **SiteNames)
DWORD WINAPI DsMergeForestTrustInformationW(LPCWSTR DomainName, PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo, PLSA_FOREST_TRUST_INFORMATION OldForestTrustInfo, PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
DWORD WINAPI DsGetForestTrustInformationW(LPCWSTR ServerName, LPCWSTR TrustedDomainName, DWORD Flags, PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
struct _DOMAIN_CONTROLLER_INFOA DOMAIN_CONTROLLER_INFOA
DWORD WINAPI DsAddressToSiteNamesA(LPCSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPSTR **SiteNames)
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName)
DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName)
struct _DS_DOMAIN_TRUSTSA DS_DOMAIN_TRUSTSA
struct _DOMAIN_CONTROLLER_INFOW DOMAIN_CONTROLLER_INFOW
DWORD WINAPI DsDeregisterDnsHostRecordsA(LPSTR ServerName, LPSTR DnsDomainName, GUID *DomainGuid, GUID *DsaGuid, LPSTR DnsHostName)
LPWSTR DomainControllerName
Definition: dsgetdc.h:30
const char * LPCSTR
Definition: xmlstorage.h:183
DOMAIN_CONTROLLER_INFOA * PDOMAIN_CONTROLLER_INFO
Definition: dsgetdc.h:198
DS_DOMAIN_TRUSTSA DS_DOMAIN_TRUSTS
Definition: dsgetdc.h:199
ULONG ParentIndex
Definition: dsgetdc.h:58
DWORD WINAPI DsGetDcSiteCoverageW(LPCWSTR ServerName, PULONG EntryCount, LPWSTR **SiteNames)
ULONG TrustAttributes
Definition: dsgetdc.h:60
DWORD WINAPI DsAddressToSiteNamesExA(LPCSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPSTR **SiteNames, LPSTR **SubnetNames)
DWORD WINAPI DsValidateSubnetNameW(LPCWSTR SubnetName)
#define WINAPI
Definition: msvc.h:8
DWORD WINAPI DsAddressToSiteNamesExW(LPCWSTR ComputerName, DWORD EntryCount, PSOCKET_ADDRESS SocketAddresses, LPWSTR **SiteNames, LPWSTR **SubnetNames)
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI DsValidateSubnetNameA(LPCSTR SubnetName)
LPSTR DnsDomainName
Definition: dsgetdc.h:44
ULONG TrustAttributes
Definition: dsgetdc.h:48
DOMAIN_CONTROLLER_INFOA DOMAIN_CONTROLLER_INFO
Definition: dsgetdc.h:198
DS_DOMAIN_TRUSTSA * PDS_DOMAIN_TRUSTS
Definition: dsgetdc.h:199
struct _DS_DOMAIN_TRUSTSW * PDS_DOMAIN_TRUSTSW
struct _DS_DOMAIN_TRUSTSA * PDS_DOMAIN_TRUSTSA
unsigned int * PULONG
Definition: retypes.h:1
ULONG DomainControllerAddressType
Definition: dsgetdc.h:32
LPWSTR NetbiosDomainName
Definition: dsgetdc.h:55
unsigned int ULONG
Definition: retypes.h:1
DWORD WINAPI DsGetDcSiteCoverageA(LPCSTR ServerName, PULONG EntryCount, LPSTR **SiteNames)
WCHAR * LPWSTR
Definition: xmlstorage.h:184
DWORD WINAPI DsDeregisterDnsHostRecordsW(LPWSTR ServerName, LPWSTR DnsDomainName, GUID *DomainGuid, GUID *DsaGuid, LPWSTR DnsHostName)
LPWSTR DomainControllerAddress
Definition: dsgetdc.h:31
ULONG ParentIndex
Definition: dsgetdc.h:46
LPWSTR DnsDomainName
Definition: dsgetdc.h:56
LPSTR DomainControllerAddress
Definition: dsgetdc.h:18
DWORD WINAPI DsEnumerateDomainTrustsA(LPSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSA *Domains, PULONG DomainCount)