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.