CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Create a local windows user account

  1. #1
    Join Date
    Jun 2001
    Location
    United Kingdom
    Posts
    187

    Create a local windows user account

    Hi people ,

    This should be really easy to find on the MSDN and on here but I can't find a reference to it. I want to programatically create a local user account on a machine so the user can log on as that user next time they log in, but I can't find the unmanaged C++ API call to do this. I obviously will have admin rights when running my application so security should not be a problem.

    Can anyone give me a push in the right direction please.

    Cheers,

    Delboy

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,759

    Re: Create a local windows user account

    Have a look at NetUserAdd API and some other Network Management Functions and User Functions in MSDN.

  3. #3
    Join Date
    Aug 2002
    Posts
    879

    Re: Create a local windows user account


  4. #4
    Join Date
    Jun 2001
    Location
    United Kingdom
    Posts
    187

    Re: Create a local windows user account

    Fantastic!!! thanx guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)