How do I find out what workgroup/domain a host is in?
-
I am trying to find some code which will enable me to find out what domain or workgroup a given host is in. There is a function for this on Win2000, but I need it on NT4. Does anyone have any ideas? --- "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
-
I am trying to find some code which will enable me to find out what domain or workgroup a given host is in. There is a function for this on Win2000, but I need it on NT4. Does anyone have any ideas? --- "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
Not sure if this is what you need, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/hh/network/ntlmapi2_07zj.asp Michael :-)
-
Not sure if this is what you need, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/hh/network/ntlmapi2_07zj.asp Michael :-)
Nearly. The link you posted (to NetWkstaUserGetInfo) gets info about the user's log-on domain info. However, just near this on MSDN was NetWkstaGetInfo which does the trick. Thanks, Paul. :cool: --- "The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)