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. How to find the Domain name.

How to find the Domain name.

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelptutorialquestion
5 Posts 3 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.
  • J Offline
    J Offline
    Jijo Raj
    wrote on last edited by
    #1

    Dear all, in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me. Regards, Jijo. :rose: ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

    G D 2 Replies Last reply
    0
    • J Jijo Raj

      Dear all, in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me. Regards, Jijo. :rose: ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

      G Offline
      G Offline
      geo_m
      wrote on last edited by
      #2

      look at IADsADSystemInfo documentation, there's everything you may need.

      J 1 Reply Last reply
      0
      • G geo_m

        look at IADsADSystemInfo documentation, there's everything you may need.

        J Offline
        J Offline
        Jijo Raj
        wrote on last edited by
        #3

        Dear Geo, Thanks a lot. :-) Regards, Jijo ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

        1 Reply Last reply
        0
        • J Jijo Raj

          Dear all, in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me. Regards, Jijo. :rose: ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

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

          Use NetWkstaGetInfo() to get the name of the domain to which the workstation belongs. Use NetWkstaUserGetInfo() to get the name of the domain in which the user is currently logged on


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          J 1 Reply Last reply
          0
          • D David Crow

            Use NetWkstaGetInfo() to get the name of the domain to which the workstation belongs. Use NetWkstaUserGetInfo() to get the name of the domain in which the user is currently logged on


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            J Offline
            J Offline
            Jijo Raj
            wrote on last edited by
            #5

            Dear David, Actually i was searching for this type API... Thank you very much... :) Regards, Jijo. ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.

            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