win32api.GetDomainName

string = GetDomainName()

Returns the current domain name

Comments

This is a convenience wrapper of the Win32 function LookupAccountSid()