Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login name and SYS(0) different
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01555309
Message ID:
01555347
Vues:
74
Does these two return different results from SYS(0)?
DECLARE INTEGER GetUserName IN advapi32;
    STRING @lpBuffer,;
    INTEGER @nSize
    
nSize = 250
cBuffer = REPLICATE(Chr(0), nSize)
 
= GetUserName(@cBuffer, @nSize)
 
cBuffer = STRTRAN(cBuffer, CHR(0), "")
? "API:", cBuffer
 
? "Env.:", GETENV("USERNAME")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform