Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Domains and Workgroups List

Domains and Workgroups List

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frank Deo
    wrote on last edited by
    #1

    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"

    F 1 Reply Last reply
    0
    • F Frank Deo

      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"

      F Offline
      F Offline
      Frank Deo
      wrote on last edited by
      #2

      I figured it out. I was using LPSERVER_INFO_101, when I switched to LPSERVER_INFO_100 it worked and I was able to get everything sorted out. Thanks, Frank "Keyboard Error - Press F1 to Continue"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups