delphieng
September 19th, 2003, 11:52 AM
Hi guys, i haven't had much luck finding info anywhere else. So here it goes. I'm trying to use the Win32 API functions GetVolumeNameForVolumeMountPoint and SetVolumeMountPoint. Very clearly documented in MSDN, the current one (found at msdn.microsoft.com as well as my old 2001 version).
All versions of MSDN claim that the functions are supported on Win 2000 and later ( Windows NT/2000/XP: Included in Windows 2000 and later.). Which is good, because the platform i'm developing for is Win XP. And my development platform is Win 2000 (5.00.2195 Service pack 4).
However when i try to build a small sample project in Visual Studio, the program claims that both functions SetVolumeMountPoint as well as GetVolumeNameForVolumeMountPoint are undeclared identifier.
MSDN claims that the header file is Windows.h, and that the library is kernel32.lb, both are properly included in the project.
Any ideas?
All versions of MSDN claim that the functions are supported on Win 2000 and later ( Windows NT/2000/XP: Included in Windows 2000 and later.). Which is good, because the platform i'm developing for is Win XP. And my development platform is Win 2000 (5.00.2195 Service pack 4).
However when i try to build a small sample project in Visual Studio, the program claims that both functions SetVolumeMountPoint as well as GetVolumeNameForVolumeMountPoint are undeclared identifier.
MSDN claims that the header file is Windows.h, and that the library is kernel32.lb, both are properly included in the project.
Any ideas?