views:

40

answers:

0

Hi All,

  1. 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).

  2. I'm using 3 Windows Server 2008 R2 machines e.g. A,B,C.

  3. My C++ application runs on machine A.

  4. Also on machine A, I have created a network drive mapped to a drive of machine B.

  5. When the C++ application is executed directly on A then the GetDriveType() API executes successfully for the mapped network drive and returns DRIVE_REMOTE

  6. 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

  7. 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 -

  1. Is there any limitation to RemoteApp for network drive?
  2. 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