VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/dsgetdc.h@ 30705

Last change on this file since 30705 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 3.9 KB
Line 
1/*
2 * Copyright (C) 2006 Robert Reif
3 *
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.
8 *
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.
13 *
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
17 */
18
19/*
20 * Sun 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, Sun 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.
26 */
27
28#ifndef __WINE_DSGETDC_H
29#define __WINE_DSGETDC_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
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
48
49#define DS_IS_FLAT_NAME 0x00010000
50#define DS_IS_DNS_NAME 0x00020000
51
52#define DS_RETURN_DNS_NAME 0x40000000
53#define DS_RETURN_FLAT_NAME 0x80000000
54
55#define DSGETDC_VALID_FLAGS ( \
56 DS_FORCE_REDISCOVERY | \
57 DS_DIRECTORY_SERVICE_REQUIRED | \
58 DS_DIRECTORY_SERVICE_PREFERRED | \
59 DS_GC_SERVER_REQUIRED | \
60 DS_PDC_REQUIRED | \
61 DS_BACKGROUND_ONLY | \
62 DS_IP_REQUIRED | \
63 DS_KDC_REQUIRED | \
64 DS_TIMESERV_REQUIRED | \
65 DS_WRITABLE_REQUIRED | \
66 DS_GOOD_TIMESERV_PREFERRED | \
67 DS_AVOID_SELF | \
68 DS_ONLY_LDAP_NEEDED | \
69 DS_IS_FLAT_NAME | \
70 DS_IS_DNS_NAME | \
71 DS_RETURN_FLAT_NAME | \
72 DS_RETURN_DNS_NAME )
73
74typedef struct _DOMAIN_CONTROLLER_INFOA {
75 LPSTR DomainControllerName;
76 LPSTR DomainControllerAddress;
77 ULONG DomainControllerAddressType;
78 GUID DomainGuid;
79 LPSTR DomainName;
80 LPSTR DnsForestName;
81 ULONG Flags;
82 LPSTR DcSiteName;
83 LPSTR ClientSiteName;
84} DOMAIN_CONTROLLER_INFOA, *PDOMAIN_CONTROLLER_INFOA;
85
86typedef struct _DOMAIN_CONTROLLER_INFOW {
87 LPWSTR DomainControllerName;
88 LPWSTR DomainControllerAddress;
89 ULONG DomainControllerAddressType;
90 GUID DomainGuid;
91 LPWSTR DomainName;
92 LPWSTR DnsForestName;
93 ULONG Flags;
94 LPWSTR DcSiteName;
95 LPWSTR ClientSiteName;
96} DOMAIN_CONTROLLER_INFOW, *PDOMAIN_CONTROLLER_INFOW;
97
98DECL_WINELIB_TYPE_AW(DOMAIN_CONTROLLER_INFO)
99
100DWORD WINAPI DsGetDcNameA(LPCSTR,LPCSTR,GUID*,LPCSTR,ULONG,PDOMAIN_CONTROLLER_INFOA*);
101DWORD WINAPI DsGetDcNameW(LPCWSTR,LPCWSTR,GUID*,LPCWSTR,ULONG,PDOMAIN_CONTROLLER_INFOW*);
102#define DsGetDcName WINELIB_NAME_AW(DsGetDcName)
103
104DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName);
105DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName);
106#define DsGetSiteName WINELIB_NAME_AW(DsGetSiteName)
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* __WINE_DSGETDC_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette