Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gettings Windows NT username from FPW26
Message
From
28/07/2001 02:20:36
 
 
To
27/07/2001 15:34:12
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00536638
Message ID:
00536802
Views:
7
This message has been marked as the solution to the initial question of the thread.
Sylvain:

I think on Rick Strahl's website, he has a 16bit utility for calling 32bit dll's under his free tools section for Foxpro 2.x

HTH

>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
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform