Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux编程 > » 正文

Windows_Programing_English_To_Chinese_1_MSVC_C运行库(18)

来源: 未知 分享至:

_getdiskfree(uDrive, &df);

The parameters

参数

drive - The disk drive for which you want information.

Drive-你要获取信息的驱动器

driveinfo- A_diskfree_t structure that will be populated with information about the drive. 

                   _diskfree_t is defined in direct.h.

Driveinfo : _diskfree_t 结构体变量,通过这个变量的指针返回驱动器信息,

 _diskfree_tdirect.h头文件中定义

The return value

返回值

If the function succeeds, the return value is zero. If the function fails,

 the return value is the error code. To get extended error information, call GetLastError().

如果函数成功执行,返回值=0

如果函数执行失败,返回出错代码,要获取更多错误信息,调用GetLaseError函数

The header file

头文件

<direct.h>

Table 6:  _getdiskfree() information

 6   _getdiskfree()函数

§ The following program example uses the _getdiskfree() function to list logical drives information in the current machine.

§ 下面的程序实例通过_getdiskfree()函数获取本机当前可以逻辑驱动器的信息。

#include<windows.h>

#include<direct.h>

#include<stdio.h>

#include<tchar.h>

 

TCHAR g_szText[ ]  = _T(\"Drive Total_clus Available_clus Sec/Cluster Bytes/Secn\");


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史