Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API to know users
Message
 
 
À
12/07/2000 16:43:45
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Divers
Thread ID:
00390569
Message ID:
00391568
Vues:
10
>"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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform