Click to See Complete Forum and Search --> : NT User List


basel
February 9th, 2000, 08:41 AM
Is there a way to add and remove users from the NT user list with VB.

Lothar Haensler
February 9th, 2000, 08:48 AM
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.

basel
February 9th, 2000, 12:18 PM
Are NetUserAdd and NetUserDel available in VB. The MSDN library only gives C++ examples.

Lothar Haensler
February 10th, 2000, 01:16 AM
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...