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. Disabling a NT account

Disabling a NT account

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-adminhelplearning
5 Posts 3 Posters 6 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 All, I need to create an application which disables the NT user account programmatically.How do I do this??Do I have to access registry settings from my program to perform this task?? I'm novice in this aspect,so detailed info would be required. Can anybody help me, Thanks, Abhishek. Learning is a never ending process of Life.

    J P 2 Replies Last reply
    0
    • A abhinarulkar

      Hi All, I need to create an application which disables the NT user account programmatically.How do I do this??Do I have to access registry settings from my program to perform this task?? I'm novice in this aspect,so detailed info would be required. Can anybody help me, Thanks, Abhishek. Learning is a never ending process of Life.

      J Offline
      J Offline
      Jeremy Pullicino
      wrote on last edited by
      #2

      Use the OpenService() function of NT. Use its related functions to manipulate services. Hope this helps. Jeremy Pullicino "Hey man, Taliban, Tali me Banana."

      A 1 Reply Last reply
      0
      • J Jeremy Pullicino

        Use the OpenService() function of NT. Use its related functions to manipulate services. Hope this helps. Jeremy Pullicino "Hey man, Taliban, Tali me Banana."

        A Offline
        A Offline
        abhinarulkar
        wrote on last edited by
        #3

        Hi, Can you be a bit more specific.I din't get how to use this OpenService() function of NT for disabling a user account.Please explain it in detail Thanks, Abhishek. Learning is a never ending process of Life.

        J 1 Reply Last reply
        0
        • A abhinarulkar

          Hi, Can you be a bit more specific.I din't get how to use this OpenService() function of NT for disabling a user account.Please explain it in detail Thanks, Abhishek. Learning is a never ending process of Life.

          J Offline
          J Offline
          Jeremy Pullicino
          wrote on last edited by
          #4

          abhinarulkar wrote: Learning is a never ending process of Life In that case, take some time to learn how to use the function :) Look for OpenService documentation in the MSDN - it is not very hard to use. You are particularly interested in the ChangeServiceConfig. Hope this helps. Jeremy Pullicino Professional C++ Developer Done any hacking lately?

          1 Reply Last reply
          0
          • A abhinarulkar

            Hi All, I need to create an application which disables the NT user account programmatically.How do I do this??Do I have to access registry settings from my program to perform this task?? I'm novice in this aspect,so detailed info would be required. Can anybody help me, Thanks, Abhishek. Learning is a never ending process of Life.

            P Offline
            P Offline
            Prem Kumar
            wrote on last edited by
            #5

            HI Abhi, Use the foll function, its quite simple NetGroupDelUser

            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