procedure ConstructReplSpn(
   dnsHostName: unicodestring,
   guid: GUID): unicodestring

This procedure returns a replication SPN with the given DNS host name (in dnsHostName) and GUID (in guid). The service class of the resulting SPN is DRS_SPN_CLASS. For example, given dnsHostName = "dc-01.fabrikam.com" and guid being the GUID whose string representation is "{d66e9688-66a5-4a52-8af2-17b110febe0c}", the return value is: