Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the user on a NT server
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00005083
Message ID:
00005212
Views:
35
>>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?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform