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")
>
-=Gary