Hi All,
I have a C++ application that uses GetDriveType() API to retrieve the drive type for the selected drive (list of drives populated in the combo box).
I'm using 3 Windows Server 2008 R2 machines e.g. A,B,C.
My C++ application runs on machine A.
Also on machine A, I have created a network drive mapped to a drive of machine B.
When the C++ application is executed directly on A then the GetDriveType() API executes successfully for the mapped network drive and returns DRIVE_REMOTE
Now I establish a remote desktop connection(MSTSC) to machine A from machine C and run the C++ application, the GetDriveType() API executes successfully for the mapped network drive and returns DRIVE_REMOTE
Now instead of remote desktop connection, I create a RemoteApp setup for the C++ application (.rdp). Now when I execute the remoteapp from machine C, the GetDriveType() API fails to execute and returns DRIVE_NO_ROOT_DIR
Can anybody please help me with the below questions -
- Is there any limitation to RemoteApp for network drive?
- What is the difference between RemoteApp and Remote Desktop Connection that causes the change in behavior?
I also tried Solutions which are mentioned at the following forums,
http://www.eggheadcafe.com/software/aspnet/33891358/vista-getdrivetype-return-drivenorootdir-on-network-mapped-drives.aspx http://us.generation-nt.com/answer/vista-getdrivetype-return-drive-no-root-dir-network-mapped-drives-help-28505542.html
but none of them worked for me.
Thanks, Santosh Pillai