Hi,
I want to get programmaticaly the default domain name. instead to use API
function, i retrive this information from windows registry

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"CachePrimaryDomain"="SRV_DEV"

If this method is'nt correct, anybody can help me how to get this name using
API Function?

I work with Visual C++ 6.0 Windows NT4

Thanks in advance