VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/dsrole.h@ 33282

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

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1/*
2 * Directory Services definitions
3 *
4 * Copyright 2005 Paul Vriens
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef __WINE_DSROLE_H
31#define __WINE_DSROLE_H
32
33#define DSROLE_PRIMARY_DS_RUNNING 0x00000001
34#define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002
35#define DSROLE_UPGRADE_IN_PROGRESS 0x00000004
36#define DSROLE_PRIMARY_DOMAIN_GUID_PRESENT 0x01000000
37
38typedef enum _DSROLE_PRIMARY_DOMAIN_INFO_LEVEL
39{
40 DsRolePrimaryDomainInfoBasic = 1,
41 DsRoleUpgradeStatus,
42 DsRoleOperationState
43} DSROLE_PRIMARY_DOMAIN_INFO_LEVEL;
44
45typedef enum _DSROLE_MACHINE_ROLE
46{
47 DsRole_RoleStandaloneWorkstation = 0,
48 DsRole_RoleMemberWorkstation,
49 DsRole_RoleStandaloneServer,
50 DsRole_RoleMemberServer,
51 DsRole_RoleBackupDomainController,
52 DsRole_RolePrimaryDomainController
53} DSROLE_MACHINE_ROLE;
54
55typedef enum _DSROLE_SERVER_STATE
56{
57 DsRoleServerUnknown = 0,
58 DsRoleServerPrimary,
59 DsRoleServerBackup
60} DSROLE_SERVER_STATE;
61
62typedef enum _DSROLE_OPERATION_STATE
63{
64 DsRoleOperationIdle = 0,
65 DsRoleOperationActive,
66 DsRoleOperationNeedReboot
67} DSROLE_OPERATION_STATE;
68
69typedef struct _DSROLE_PRIMARY_DOMAIN_INFO_BASIC
70{
71 DSROLE_MACHINE_ROLE MachineRole;
72 ULONG Flags;
73 LPWSTR DomainNameFlat;
74 LPWSTR DomainNameDns;
75 LPWSTR DomainForestName;
76 GUID DomainGuid;
77} DSROLE_PRIMARY_DOMAIN_INFO_BASIC, *PDSROLE_PRIMARY_DOMAIN_INFO_BASIC;
78
79typedef struct _DSROLE_UPGRADE_STATUS_INFO
80{
81 ULONG OperationState;
82 DSROLE_SERVER_STATE PreviousServerState;
83} DSROLE_UPGRADE_STATUS_INFO, *PDSROLE_UPGRADE_STATUS_INFO;
84
85typedef struct _DSROLE_OPERATION_STATE_INFO
86{
87 DSROLE_OPERATION_STATE OperationState;
88} DSROLE_OPERATION_STATE_INFO, *PDSROLE_OPERATION_STATE_INFO;
89
90VOID WINAPI DsRoleFreeMemory(IN PVOID Buffer);
91DWORD WINAPI DsRoleGetPrimaryDomainInformation(IN LPCWSTR lpServer OPTIONAL, IN DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, OUT PBYTE *Buffer);
92
93#endif /* __WINE_DSROLE_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