16,472
社区成员
发帖
与我相关
我的任务
分享
typedef struct _DISK_GEOMETRY {
LARGE_INTEGER Cylinders;
MEDIA_TYPE MediaType;
DWORD TracksPerCylinder;
DWORD SectorsPerTrack;
DWORD BytesPerSector;
} DISK_GEOMETRY;
char data_str[MAX_PATH];
sprintf(data_str, "Cylinders: %I64d, Media Type:%d", pdg->Cylinders.QuadPart, pdg->MediaType);
...SetWindowText(data_str);
其他数据类型需要的话再补上去就行了...这里就举个例子...