2
* Copyright (C) 2006 Robert Reif
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23
* a choice of LGPL license versions is made available with the language indicating
24
* that LGPLv2 or any later version may be used, or where a choice of which version
25
* of the LGPL is applied is otherwise unspecified.
28
#ifndef __WINE_DSGETDC_H
29
#define __WINE_DSGETDC_H
35
#define DS_FORCE_REDISCOVERY 0x00000001
36
#define DS_DIRECTORY_SERVICE_REQUIRED 0x00000010
37
#define DS_DIRECTORY_SERVICE_PREFERRED 0x00000020
38
#define DS_GC_SERVER_REQUIRED 0x00000040
39
#define DS_PDC_REQUIRED 0x00000080
40
#define DS_BACKGROUND_ONLY 0x00000100
41
#define DS_IP_REQUIRED 0x00000200
42
#define DS_KDC_REQUIRED 0x00000400
43
#define DS_TIMESERV_REQUIRED 0x00000800
44
#define DS_WRITABLE_REQUIRED 0x00001000
45
#define DS_GOOD_TIMESERV_PREFERRED 0x00002000
46
#define DS_AVOID_SELF 0x00004000
47
#define DS_ONLY_LDAP_NEEDED 0x00008000
49
#define DS_IS_FLAT_NAME 0x00010000
50
#define DS_IS_DNS_NAME 0x00020000
52
#define DS_RETURN_DNS_NAME 0x40000000
53
#define DS_RETURN_FLAT_NAME 0x80000000
55
#define DSGETDC_VALID_FLAGS ( \
56
DS_FORCE_REDISCOVERY | \
57
DS_DIRECTORY_SERVICE_REQUIRED | \
58
DS_DIRECTORY_SERVICE_PREFERRED | \
59
DS_GC_SERVER_REQUIRED | \
61
DS_BACKGROUND_ONLY | \
64
DS_TIMESERV_REQUIRED | \
65
DS_WRITABLE_REQUIRED | \
66
DS_GOOD_TIMESERV_PREFERRED | \
68
DS_ONLY_LDAP_NEEDED | \
71
DS_RETURN_FLAT_NAME | \
74
typedef struct _DOMAIN_CONTROLLER_INFOA {
75
LPSTR DomainControllerName;
76
LPSTR DomainControllerAddress;
77
ULONG DomainControllerAddressType;
84
} DOMAIN_CONTROLLER_INFOA, *PDOMAIN_CONTROLLER_INFOA;
86
typedef struct _DOMAIN_CONTROLLER_INFOW {
87
LPWSTR DomainControllerName;
88
LPWSTR DomainControllerAddress;
89
ULONG DomainControllerAddressType;
95
LPWSTR ClientSiteName;
96
} DOMAIN_CONTROLLER_INFOW, *PDOMAIN_CONTROLLER_INFOW;
98
DECL_WINELIB_TYPE_AW(DOMAIN_CONTROLLER_INFO)
100
DWORD WINAPI DsGetDcNameA(LPCSTR,LPCSTR,GUID*,LPCSTR,ULONG,PDOMAIN_CONTROLLER_INFOA*);
101
DWORD WINAPI DsGetDcNameW(LPCWSTR,LPCWSTR,GUID*,LPCWSTR,ULONG,PDOMAIN_CONTROLLER_INFOW*);
102
#define DsGetDcName WINELIB_NAME_AW(DsGetDcName)
104
DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName);
105
DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName);
106
#define DsGetSiteName WINELIB_NAME_AW(DsGetSiteName)
112
#endif /* __WINE_DSGETDC_H */