Beruflich Dokumente
Kultur Dokumente
h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
struct Fat32Entry {
unsigned char filename[8];
unsigned char ext[3];
unsigned char attributes;
unsigned char reserved[10];
unsigned short modify_time;
unsigned short modify_date;
unsigned short starting_cluster;
unsigned long file_size;
};
typedef struct {
void baca_struktur(){
FILE *in=fopen("G:\\","rb");
int i;
PartitionTable pt[4];
Fat32BootSector bs;
struct
Fat32Entry entry ;
void baca_filesystem(){
LPCTSTR szHD = "G:\\";;
UCHAR szFileSys[255],szVolNameBuff[255];
DWORD dwSerial,dwMFL,dwSysFlags;
GetVolumeInformation(szHD,
(LPTSTR)szVolNameBuff,255,&dwSerial,&dwMFL,&dwSysFlags,
(LPTSTR)szFileSys,255);
if(szVolNameBuff[0] == 0)
cout<<"Volume tidak ada"<<endl;
else
cout<<"Nama volume
cout<<"Tipe Filesystem
: " <<szFileSys<<endl;
cout<<"Volume serial
: " <<dwSerial<<endl;
int main() {
baca_filesystem();
baca_struktur();
system("pause");
return 0;}