I am a C++ rookie, so this might be obvious.
I am trying to write a program that prints disk information. While browsing the fileapi.h header file on microsoft.com, I found an interesting function GetDiskSpaceInformationA(), which I would like to use.
I created a new C++ console project in Visual Studios 2013, and included <windows.h> and <fileapi.h>, see whole program below. Now, I noticed that a lot of functions in fileapi.h seem to not be included. At least, compared to the functions that are on the website. One of these missing functions is, of course, GetDiskSpaceInformationA().
What is the reason for this? Is it because my target architecture is Windows? Is there anyway for me to get access to the functions I want in fileapi.h?
#include "stdafx.h"
#include <windows.h>
#include <fileapi.h>
int _tmain(int argc, _TCHAR* argv[])
{
GetDiskSpaceInformationA(); //Error identifier "GetDiskSpaceInformationA" is undefined
return 0;
}