2.2.2 DSROLE_MACHINE_ROLE

The DSROLE_MACHINE_ROLE enumeration specifies the current role of the computer.

 typedef  enum _DSROLE_MACHINE_ROLE
 {
   DsRole_RoleStandaloneWorkstation,
   DsRole_RoleMemberWorkstation,
   DsRole_RoleStandaloneServer,
   DsRole_RoleMemberServer,
   DsRole_RoleBackupDomainController,
   DsRole_RolePrimaryDomainController
 } DSROLE_MACHINE_ROLE;

DsRole_RoleStandaloneWorkstation:  The computer is a stand-alone workstation.

DsRole_RoleMemberWorkstation:  The computer is a workstation that is joined to a domain.

DsRole_RoleStandaloneServer:  The computer is a stand-alone server.

DsRole_RoleMemberServer:  The computer is a server that is joined to a domain.

DsRole_RoleBackupDomainController:  The computer is a server that is a backup domain controller or a read-only domain controller.<3>

DsRole_RolePrimaryDomainController:  The computer is a server that is the primary domain controller emulator.