Get a List Of Local Users On a PC

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Thomas Kaloyani

Version Compatibility: Visual Basic 6

More information:
The following functions and methods will find all local users on your PC and list them. Simply call the DisplayInfo() method. It currently writes the data to the Immediate Window, but can easily be modified to write to a client display.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: