Domains and Workgroups List
-
Hello, I need to retrieve the list of Domains, and or Workgroups available to my computer. Right now I can retrieve a list using NetServerEnum, with SV_DOMAIN_TYPE_ENUM, however this list is wrong as it retrieve the correct number of domains/workgroups but only the primary name is shown. The other is shown with a null entry for name. After I have the correct list I can determine if its a domain or workgroup with NetVerifyName...I think. :) After that, I can list the computers with NetServerEnum using SV_TYPE ALL. So, my question is...how can I get the correct list of domains and workgroups available? Thanks! Frank "Keyboard Error - Press F1 to Continue"
-
Hello, I need to retrieve the list of Domains, and or Workgroups available to my computer. Right now I can retrieve a list using NetServerEnum, with SV_DOMAIN_TYPE_ENUM, however this list is wrong as it retrieve the correct number of domains/workgroups but only the primary name is shown. The other is shown with a null entry for name. After I have the correct list I can determine if its a domain or workgroup with NetVerifyName...I think. :) After that, I can list the computers with NetServerEnum using SV_TYPE ALL. So, my question is...how can I get the correct list of domains and workgroups available? Thanks! Frank "Keyboard Error - Press F1 to Continue"