>>I have an app that runs in winxp desktops and also terminal server. If running on terminal server it needs to "declare integer WTSQuerySessionInformation in Wtsapi32.dll". If the app is running on xp it needs to skip this as it won't exist. What is a good way to determine how to load this dll or not?
>
>Is FILE() function didn't work for you?
>
>IF FILE("Wtsapi32.dll")
> DECLARE ....
>ENDIF
>
I don't think file() will find it in the windows system directory?