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. Member of domain

Member of domain

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmintutorialquestion
3 Posts 3 Posters 1 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.
  • O Offline
    O Offline
    orcun colak
    wrote on last edited by
    #1

    I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak

    D R 2 Replies Last reply
    0
    • O orcun colak

      I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Use NetWkstaGetInfo().


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      1 Reply Last reply
      0
      • O orcun colak

        I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak

        R Offline
        R Offline
        Robert M Greene
        wrote on last edited by
        #3

        Try NetWkstaGetInfo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netwkstagetinfo.asp[^] and NetUserGetInfo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetinfo.asp[^] ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.

        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