We did some analysis and come to conclusion that QueryDosDevice is a better choice than GetVolumeInformation. As you indicated, since network path of the wine's network drive is not pointing to a real network path, neither of them going to return the remote path of the network drive. Since 'QueryDosDevice' retrieves a local path for the network drive (from wine config file), this will be a better choice than GetVolumeInformation.
Please find attached diff taken with diff -u
Thanks, Krishna
-----Original Message----- From: Alexandre Julliard [mailto:julliard@winehq.org] Sent: Wednesday, May 05, 2004 12:05 PM To: Krishna Murthy Cc: wine-devel@winehq.org Subject: Re: WNetGetConnection(): Fix for incorrect drive name and remote name and
Krishna Murthy Krishna.Murthy@guptaworldwide.com writes:
- Long Description:
- WNetGetConnectionA calls WNetGetConnectionW without converting
single character string "drive name" to wide character string. Fix is to convert the single character string "drive name" to wide character before calling WNetGetConnectionW. 2. WNetGetConnectionW() returns drive's label instead of remote name. Fix is to call QueryDosDeviceW instead of GetVolumeInformationW
It's not clear to me that QueryDosDeviceW is a better choice, neither of them is going to return a valid remote name anyway. What does your app need to do with the remote name?
And BTW please send diff -u patches.
-- Alexandre Julliard julliard@winehq.org
Krishna Murthy Krishna.Murthy@guptaworldwide.com writes:
We did some analysis and come to conclusion that QueryDosDevice is a better choice than GetVolumeInformation.
What sort of analysis? Do you have an app that needs that, and if so why is returning a Unix path better? What does the app do with it?