Offline domain join is a new process that joins computers running Windows® 7 or Windows Server 2008 R2 to a domain in Active Directory Domain Services (AD DS)—without any network connectivity. #define NETSETUP_PROVISION_DOWNLEVEL_PRIV_SUPPORT 0x1 #define NETSETUP_PROVISION_REUSE_ACCOUNT 0x2 #define NETSETUP_PROVISION_USE_DEFAULT_PASSWORD 0x4 #define NETSETUP_PROVISION_SKIP_ACCOUNT_SEARCH 0x8 #define NETSETUP_PROVISION_ONLINE_CALLER 0x40000000 #define NETSETUP_PROVISION_CHECK_PWD_ONLY 0x80000000 typedef struct _DOMAIN_DNS_POLICY { // sizeof = 0x2C TCHAR Name[ 4 ]; // 0x000 TCHAR DnsDomainName[ 4 ]; // 0x008 TCHAR DnsForestName[ 4 ]; // 0x010 GUID DomainGuid; // 0x018 PSID Sid; // 0x028 } DOMAIN_DNS_POLICY, * PDOMAIN_DNS_POLICY; typedef struct _DOMAIN_CONTROLLER { // size of = 0x30 PCHAR…