Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the user on a NT server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00005083
Message ID:
00005213
Vues:
27
>>>DECLARE INTEGER GetUserName in WIN32API String @,Integer
>>>buffer=space(20)
>>>=GetUserName(@buffer,20)
>>
>>From my Windows '95 station, I am logged into my Windows NT server.
>>
>>Here's what I have:
>>DECLARE INTEGER GetUserName in WIN32API String @,Integer
>>buffer=space(20)
>>=GetUserName(@buffer,20)
>>
>>When I print the buffer variable, I get nothing, just 20 space.
>>
>>It is possible that this syntax is working but is not able to get the current logged user on my station for some specific reasons?
>
>This is of interest to me, also -- I have NT & 95 too. I also get nothing with this code. Any ideas to alter it to make it work?

I've got it to work - I think the code is just missing an '@'
after the integer

like: DECLARE...string @,integer @
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform