The NETSETUP_JOIN_STATUS enumeration specifies details about the domain join status of a machine.
typedef enum _NETSETUP_JOIN_STATUS
{
NetSetupUnknownStatus = 0,
NetSetupUnjoined,
NetSetupWorkgroupName,
NetSetupDomainName
} NETSETUP_JOIN_STATUS,
*PNETSETUP_JOIN_STATUS;
NetSetupUnknownStatus: Domain join status of the machine is unknown.
NetSetupUnjoined: Machine is not joined to a domain or to a workgroup.
NetSetupWorkgroupName: Machine is joined to a workgroup.
NetSetupDomainName: Machine is joined to a domain.