Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 19336, Retreive all usernames from the WinNT server

by Stephane Baillargeon Email:

These two functions combined, return a DynamicArray of AnsiStrings containing all the usernames from the WinNT Server
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 3.0  to 6.0 757 downloads
Copyright: No significant restrictions

Size: 1,678 bytes
Updated on Fri, 13 Dec 2002 08:44:45 GMT
Originally uploaded on Mon, 09 Dec 2002 13:31:37 GMT
SHA1 Hash: 9BE5004304EE586FE0342C24DE03B93265481611
MD5 Hash: 9CD737512A4085C867D4CAC0C7918F6C

    Explore the files in this upload

You must first call GetNTServerName() to retreive the WinNT servername then pass the wchar_t* that the previous function returned to GetWinNTUserNames(). The return value is a DynamicArray containing all the usernames.

It is possible that it will not compile due to lack of code but I tried to fill it up as much as needed to be understood; not compiled.

P.S.: This code run only on WinNT based systems such as WindowsNT, Windows2000, WindowsXP. It doesn't run on Windows98 or earlier because of calls that require a NET_API_STATUS structure.

Leave me feadback so I can update it with better ways and ideas.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04