GetVolumeNameForVolumeMountPointA is defined in winbase.h only on Windows 2003, XP or later. According to the comment in MinGW's windows.h:
#ifndef WINVER
#define WINVER 0x0400
/*
* If you need Win32 API features newer the Win95 and WinNT then you must
* define WINVER before including windows.h or any other method of including
* the windef.h header.
*/
#endif
#ifndef WINVER
#define WINVER 0x0400
/*
* If you need Win32 API features newer the Win95 and WinNT then you must
* define WINVER before including windows.h or any other method of including
* the windef.h header.
*/
#endif
To copy to clipboard, switch view to plain text mode
Values are documented here: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Try:
#define WINVER 0x0501
#include <windows.h>
#define WINVER 0x0501
#include <windows.h>
To copy to clipboard, switch view to plain text mode
or put:
DEFINES += WINVER=0x0501
DEFINES += WINVER=0x0501
To copy to clipboard, switch view to plain text mode
in your PRO file for a project-wide setting
Bookmarks