struct hd_geometry_geometry expressions_typedef struct

电脑杂谈  发布时间:2017-05-21 09:08:30  来源:网络整理

不会啊,我用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

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...