【问题标题】:GetDiskFreeSpaceEx in winCE 5.0 emulator?WinCE 5.0 模拟器中的GetDiskFreeSpaceEx?
【发布时间】:2010-05-12 13:11:30
【问题描述】:

我正在尝试在 wince5.0 模拟器中使用 GetDiskFreeSpaceEx。这是我编写的以下代码。

ULARGE_INTEGER notused, totalBytes, freeBytes;


GetDiskFreeSpaceEx(_T("\\Windows"),&notused,&totalBytes,&freeBytes);
printf(" Error in disk %d ", GetLastError());

printf(" values = notused %d,totalBytes %d,freeBytes %d",notused,totalBytes,freeBytes);

**输出**

14540 PID:3db620e TID:3e5c83e 磁盘 0 错误

14540 PID:3db620e TID:3e5c83e 值 = 未使用 25987296,totalBytes 0,freeBytes 26234880

我得到的总字节数为零。我错过了什么还是在模拟器中可以吗?

【问题讨论】:

    标签: windows-ce emulation


    【解决方案1】:

    好吧,我只是在阅读文档here,它说:

    lpTotalNumberOfBytes - 指向一个变量的指针,用于接收与调用线程关联的用户可用的磁盘上的总字节数

    您是否尝试过其他目录或用户?

    我的猜测是这是特定于 Windows 文件夹的,但我对模拟器不太熟悉。


    我刚刚尝试在基于 RAM 的映像中对 \Windows 目录进行调用,并收到一个大于 0 的数字。

    我的另一个猜测是它与Windows 文件夹所在的商店以及您拥有的权限有关。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 2011-04-15
      • 1970-01-01
      • 1970-01-01
      • 2023-03-07
      • 1970-01-01
      相关资源
      最近更新 更多