4 Protocol Examples

The following is an example of a DsRolerGetPrimaryDomainInformation RPC method.

Assume the server is a workstation computer joined to a domain called MyDomainName.com.

The client calls the DsRolerGetPrimaryDomainInformation RPC method on the server with InfoLevel equal to 1.

The server returns with code 0x00000000; and with the DomainInfoBasic field of DomainInfo structure, the following values are in fields of DomainInfoBasic.

 MachineRole = 1
 Flags = 0x01000000
 DomainNameFlat = "MyDomainName"
 DomainNameDns = "MyDomainName.com"
 DomainForestName = "MyDomainName.com"
 DomainGuid = { 0x5585777b, 0xe549, 0x43b6, 
 { 0xa8, 0x42, 0x2, 0xbe, 0xd, 0xd6, 0xab, 0x14 } };
  
Show: