ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

dsrole.h
Go to the documentation of this file.
00001 /*
00002  * Directory Services definitions
00003  *
00004  * Copyright 2005 Paul Vriens
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #ifndef __WINE_DSROLE_H
00022 #define __WINE_DSROLE_H
00023 
00024 #define DSROLE_PRIMARY_DS_RUNNING           0x00000001
00025 #define DSROLE_PRIMARY_DS_MIXED_MODE        0x00000002
00026 #define DSROLE_UPGRADE_IN_PROGRESS          0x00000004
00027 #define DSROLE_PRIMARY_DOMAIN_GUID_PRESENT  0x01000000
00028 
00029 typedef enum _DSROLE_PRIMARY_DOMAIN_INFO_LEVEL
00030 {
00031     DsRolePrimaryDomainInfoBasic = 1,
00032     DsRoleUpgradeStatus,
00033     DsRoleOperationState
00034 } DSROLE_PRIMARY_DOMAIN_INFO_LEVEL;
00035 
00036 typedef enum _DSROLE_MACHINE_ROLE
00037 {
00038   DsRole_RoleStandaloneWorkstation = 0,
00039   DsRole_RoleMemberWorkstation,
00040   DsRole_RoleStandaloneServer,
00041   DsRole_RoleMemberServer,
00042   DsRole_RoleBackupDomainController,
00043   DsRole_RolePrimaryDomainController
00044 } DSROLE_MACHINE_ROLE;
00045 
00046 typedef enum _DSROLE_SERVER_STATE
00047 {
00048   DsRoleServerUnknown = 0,
00049   DsRoleServerPrimary,
00050   DsRoleServerBackup
00051 } DSROLE_SERVER_STATE;
00052 
00053 typedef enum _DSROLE_OPERATION_STATE
00054 {
00055   DsRoleOperationIdle = 0,
00056   DsRoleOperationActive,
00057   DsRoleOperationNeedReboot
00058 } DSROLE_OPERATION_STATE;
00059 
00060 typedef struct _DSROLE_PRIMARY_DOMAIN_INFO_BASIC
00061 {
00062     DSROLE_MACHINE_ROLE MachineRole;
00063     ULONG Flags;
00064     LPWSTR DomainNameFlat;
00065     LPWSTR DomainNameDns;
00066     LPWSTR DomainForestName;
00067     GUID DomainGuid;
00068 } DSROLE_PRIMARY_DOMAIN_INFO_BASIC, *PDSROLE_PRIMARY_DOMAIN_INFO_BASIC;
00069 
00070 typedef struct _DSROLE_UPGRADE_STATUS_INFO
00071 {
00072     ULONG OperationState;
00073     DSROLE_SERVER_STATE PreviousServerState;
00074 } DSROLE_UPGRADE_STATUS_INFO, *PDSROLE_UPGRADE_STATUS_INFO;
00075 
00076 typedef struct _DSROLE_OPERATION_STATE_INFO
00077 {
00078     DSROLE_OPERATION_STATE OperationState;
00079 } DSROLE_OPERATION_STATE_INFO, *PDSROLE_OPERATION_STATE_INFO;
00080 
00081 VOID WINAPI DsRoleFreeMemory(IN PVOID Buffer);
00082 DWORD WINAPI DsRoleGetPrimaryDomainInformation(IN LPCWSTR lpServer OPTIONAL, IN DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, OUT PBYTE *Buffer);
00083 
00084 #endif /* __WINE_DSROLE_H */

Generated on Thu May 24 2012 04:32:07 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.