3-15-2017
Thanks for any help.
Stats: uefi, windows 7 pro 64-bit, windows updates disabled,
Goasm language, weekly maintenance, no viruses
This concerns the Microsoft API GetVolumeNameForVolumeMountPoint
FileDat db 'C:\'
buf6 db ' ',0 ; 50 bytes
invoke GetVolumeNameForVolumeMountPoint, addr FileDat,addr buf6,50
mov [hFile],rax
No matter how I code FileDat the function fails. Taking out "addr"
and inserting [] makes no difference.
Yes I know about "\\?\Volume{GUID}\" in the 2nd parameter but the
program fails before it's used.
I have been on Google and found a reference about the API that says
it needs to be executed twice to get it to work. The gentleman that
wrote the article said that microsoft was just trying to get him to
go away. I got the impression that no answer has been found.
Neither of my computers use the old BIOS so I can't test if it works
with the old BIOS.
It should list the mount point for the Windows C OS.