GetDiskFreeSpaceEx("c:\\", lpAvailable, lpTotal, lpFree);结果全是0,什么原因?
解决方案 »
- 知道句柄 怎么判断该句柄所在控件是否有焦点! 谢谢大家!
- 怎么样得到ATL COM的DLL的路径????
- 如何实现文件夹的隐藏
- 求RegGetKeySecurity和RegSetKeySecurity的用法(急,在线等待)
- 请问如何清空缓存?
- 一个初学MFC的问题?
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CCalendarConvDlg::* )(void)' to 'LRESULT (__thiscall CWnd::*
- 数据转换
- RichEdit控件控制字体大小问题
- 关于创建一各进程的问题!
- 为什么动态连接库里带Grid Ctrl这个控件的对话框没有显示???
- 简单的问题,在线等!
__int64 Total(0);
__int64 Free(0);
GetDiskFreeSpaceExe("C:\\",(ULARGE_INTGER)&Available,(ULARGE_INTGER)&Total,(ULARGE_INTGER)&Free);
LPCTSTR lpDirectoryName, // pointer to the directory name
PULARGE_INTEGER lpFreeBytesAvailableToCaller, // receives the number of bytes on
// disk available to the caller
PULARGE_INTEGER lpTotalNumberOfBytes, // receives the number of bytes on disk
PULARGE_INTEGER lpTotalNumberOfFreeBytes // receives the free bytes on disk
);Note that lpDirectoryName does not have to specify the root directory on a disk. The function accepts any directory on the disk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~