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:
00005213
Views:
25
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform