不会啊,我用VC6.0。
#include <iostream>
#include <windows.h>
#include <Winioctl.h>
using namespace std;
int main(){
DISK_GEOMETRY x;
cout << sizeof(x) << endl;
}
编译没问题。struct hd_geometrystruct hd_geometrysizeof 得 24 bytes.
你也可以自己添此定义:
typedef struct _DISK_GEOMETRY {
LARGE_INTEGER Cylinders;
MEDIA_TYPE MediaType;
DWORD TracksPerCylinder;
DWORD SectorsPerTrack;
DWORD BytesPerSector;
} DISK_GEOMETRY;
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-48357-1.html
大家说对吧
也看看美国啥反应
计10条蛆