>>This API function seems to work differently under VFP 9 than VFP 8 when using terminal server. Under VFP 8 the API function returns the terminal server user's windows directory. Under VFP 9 the system shared Windows directory is returned.
>>
>>I need to return the terminal server user's windows directory how can I do this using VFP 9?
>
>The API functions don't depend of VFP versions. They depends of Windows versions.
Boris,
It might not be the case. From "GetWindowsDirectory" remarks section:
"Terminal Services: If the application is running in a Terminal Services environment, each user has a unique Windows directory. If an application that is not Terminal-Services-aware calls this function, it retrieves the path of the Windows directory on the client, not the Windows directory on the server."
Cetin