Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS login name in vfp?
Message
 
À
07/01/1999 13:17:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00173535
Message ID:
00173753
Vues:
21
Does it work in both Windows NT and Windows 95 ?


>in VFP5.0a I use
>PUBLIC lpUserIDBuffer, ;
> nBufferSize, ;
> RetVal
>
>RetVal = 0
>lpUserIDBuffer = SPACE(25) && Return buffer for user ID string
>nBufferSize = 25 && Size of user ID return buffer
>
>DECLARE INTEGER GetUserName IN Win32API AS GetName ;
> STRING @lpUserIDBuffer, ;
> INTEGER @nBufferSize
>
>RetVal=GetName(@lpUserIDBuffer, @nBufferSize)
>lpUserIDBuffer=subs(lpUserIDBuffer,1,len(alltrim(lpUserIDBuffer))-1)
>? lpUserIDBuffer
>return lpUserIDBuffer
Igor Gelin
Database Developer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform