I've created a ramdisk using OSFMount 1.5.1015.0 on drive letter R:
osfmount.com -a -t vm -f D:\Ramdisk_1G.img -m R: -o rw
The Win32 API call GetVolumePathName behaves strange:
Called with "R:" as input it fails with ERROR_INVALID_FUNCTION.
Called with "R:\My Folder" as input it succeeds but returns "R:\My Folder" as result where it should be "R:".
GetVolumePathName is essential to determine the right path for calling GetVolumeInformation.
osfmount.com -a -t vm -f D:\Ramdisk_1G.img -m R: -o rw
The Win32 API call GetVolumePathName behaves strange:
Called with "R:" as input it fails with ERROR_INVALID_FUNCTION.
Called with "R:\My Folder" as input it succeeds but returns "R:\My Folder" as result where it should be "R:".
GetVolumePathName is essential to determine the right path for calling GetVolumeInformation.
Comment