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

Thread: NT User List

  1. #1
    Join Date
    Jan 2000
    Posts
    10

    NT User List

    Is there a way to add and remove users from the NT user list with VB.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: NT User List

    the NetUserAdd and NetUserDel API calls might be helpful.
    Also, check out ADSI (=Active Directory Service interface). It gives you a COM solution for manipulating user data.
    You need to use Win2K or download ADSI from the MS Site.


  3. #3
    Join Date
    Jan 2000
    Posts
    10

    Re: NT User List

    Are NetUserAdd and NetUserDel available in VB. The MSDN library only gives C++ examples.


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: NT User List

    you can call almost all functions in the platform SDK.
    the ADSI interface is probably easier to use from VB. And, I guess I was wrong when stating that you need Win2K to use ADSI. I think it is also available for NT 4.

    When using the Net...APIs you have to take into account that these functions are Unicode APIs.
    That makes it not so easy to transform them into VB Declare statements and call them accordingly...


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured