-
Network Users
I am currently creating a DLL for use with some Office Aps and I need to be able to view usernames of all personnel who have access to the network, aka, access to the list of profiles I guess?
The network is a NT network that also utilizes an exchange server to handle mail. Basically I want to control security to the main app by validating the user against a list. However to allow the main user to add additional personnel I need him to be able to pull up a list of usernames to add. Any help in this area will be much appreciated. Thx in advance.
-
One possible solution is NetUserEnum(). Check out MSDN.
http://msdn.microsoft.com/library/de..._functions.asp
Kuphryn
-
thx for the reply but unfortunately in reading up I discovered this:
The NetUserEnum function does not return all system users. It returns only those users who have been added with a call to the NetUserAdd function.
Any other ideas will be greatly appreciated or even possibly another implementation idea.
-
Did you try NetQueryDisplayInformation?