need help with the GetVolumeInformation function
I need help with the GetVolumeInformation function.
Below is the code I've been working with.
I'm hoping someone can save me some time in figuring this out.
Thanks in advance.:)
/* GetVolInfo.c */
/* to be used for interface with ForTran */
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <string.h>
//#define MSGSIZE 80
//
LPCTSTR HD = "C:\";
//
void main(char *CSN)
//extern void GetVolInfo(char *CSN)
{
FILE *fptr;
fptr = fopen("TestGetVolInfo.txt", "w");
//
GetVolumeInformation(HD,
,
NULL,
CSN,
255,
NULL,
NULL,
FILE_READ_ONLY_VOLUME,
FAT,
NULL
);
fprintf(fptr,"C: Serial Number = %s",CSN);
return (0);
}