Alright so here's the function:
Code:
DWORD dwVolSerial;
BOOL bIsRetrieved;

export double blahblah()
{
    bIsRetrieved = GetVolumeInformationA("C:\\",NULL,0,&dwVolSerial,NULL,NULL,NULL,0);
   
   if (bIsRetrieved) {
      //printf("Serial number of drive C is %X\n",dwVolSerial);
      return((double) dwVolSerial);
   } else {
      //printf("Could not retrieve\n");
      return(double)55;
   }
      
}
Anyway it's supposed to return the hdd's serial number but it's always returning 0. Anyone know why?