Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gettings Windows NT username from FPW26
Message
De
27/07/2001 15:34:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Gettings Windows NT username from FPW26
Divers
Thread ID:
00536638
Message ID:
00536638
Vues:
37
I'm trying to get the Windows NT username from a FPW26 application. Looking at the API section, I found the GetUserName API function, which requires FoxTools. But the library is advapi32 (not sure about the name), which FoxTools can't seem to access; understandable, since it's obviously a Win32 DLL while FPW26 is a Win16 application.

I know there was a thread about this earlier this year, cause I can find it in the search, but since I'm not a PUTM, I can't easily get to that thread.

Is is possible, and can anyone point me in the right direction? Thanks!

Here's what I tried
SET LIBRARY TO FoxTools
=RegFN("GetUserName", "@S@I", "I", "advapi32")
    && Error: 'ADVAPI32' is an invalid library or path name
Sylvain Demers
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform