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. Getting user information

Getting user information

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminjsontutoriallearning
2 Posts 2 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.
  • A Offline
    A Offline
    abhinarulkar
    wrote on last edited by
    #1

    Hi, I want to get the user account information from the local machine. For this I'm using NetUserGetInfo method. Moreover I want to know if a particular user account has been disabled or not. I went through some Network Management Structures but din't come across any structure that would explicitly provide me with this info. Kindly anybody tell me how to extract this info from Windows using Net API. Thanks Abhishek. Learning is a never ending process of Life.

    D 1 Reply Last reply
    0
    • A abhinarulkar

      Hi, I want to get the user account information from the local machine. For this I'm using NetUserGetInfo method. Moreover I want to know if a particular user account has been disabled or not. I went through some Network Management Structures but din't come across any structure that would explicitly provide me with this info. Kindly anybody tell me how to extract this info from Windows using Net API. Thanks Abhishek. Learning is a never ending process of Life.

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

      Look at the usri2_flags member of the USER_INFO_2 structure.

      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