Importing the GetVolumeNameForVolumeMountPoint() function?
Posted: Tue Mar 19, 2024 7:18 am
Hi,
In my app, I'm trying to import the GetVolumeNameForVolumeMountPoint() function, like so:
In my app, I'm trying to import the GetVolumeNameForVolumeMountPoint() function, like so:
Code: Select all
ImportC "Kernel32.lib"
GetVolumeNameForVolumeMountPoint(*VolumeMountPoint, *VolumeName, Length.l)
EndImport
[/code
However, it throws a linker error.
For reference, here are the MSDN docs on this function: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumenameforvolumemountpointw
Any tips?
Thanks!