>Are there any API calls that will return Windows NT Server user information to VFP. I'm currently using Netlib for some NT functions, but I need to be able to query Windows NT for user home directory and fullname.
>
The easiest way to access the information is with NetGetUserInfo(), but it only works under NT. You'd have to call it repetitively to get different information about the user; the two items you mention are returned in the level 1 call as a UER_INFO_1 structure. No, I don't have sample code to give you for VFP.
You may want to look at either the ADSI ActiveX control (downloadable from Microsoft), and the Windows Scripting Host's Wscript.Shell and Wscript.Network objects (the Special Folders collection is exposed through Wscript.Shell, and the user name through Wscript.Network)
>Rick Napolitan
>
>
nappy@mail.twd.net