Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting User Names
Message
 
À
10/10/2001 13:20:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00566514
Message ID:
00566519
Vues:
16
put this in your procedure lib

PROCEDURE NetworkID
LOCAL LocalName, UserName, BufferSize
m.LocalName = CHR(0)
m.UserName = SPACE(40)
m.BufferSize = LEN(UserName)

DECLARE INTEGER WNetGetUser ;
IN WIN32API ;
AS GetUserID ;
STRING LocalName, ;
STRING @UserName, ;
INTEGER @BufferSize

cErrorCode = GetUserID(LocalName, @UserName, @BufferSize)

RETURN TRANSFORM(STRTRAN(m.UserName,CHR(0)))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform