>"im just checking the current user...
You can find the VB code to return the current user in the API section here. Look for GetUserName.
If you want to find out who is connected to your machine then I recommend checking out Active Directory Services Interface (ADSI). This set of COM classes provide wrappers to many of the WinAPI function calls. For instance, you can retrieve a list of computers/users currently accessing your PC.
Unfortunately, you can't disconnect them but IMO, this would be a mistake. The other user could have files open and if you disconnect the session without closing those files, it could lead to file corruption.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao