#include <stdio.h>
#include <Windows.h>
int main()
{
TCHAR buff[1024];
GetLogicalDriveStrings(1024, buff);
int i;
for(i = 0; buff[i] != 0; i += 4)
printf("%S", buff+i);
}
When I try to compile it with MSVC, I get the following errors:
Commenting out GetLogicalDriveStrings(1024, buff);
causes the code to compile just fine