Available space left on drive - WinAPI - Windows CE

左心房为你撑大大i 提交于 2019-12-10 23:37:11

问题


I've forgotten the WinAPI call to find out how much space is remaining on a particular drive and pinvoke.net isn't giving me any love. It's compact framework by the way, so I figure coredll.dll.

Can anyone with a better memory jog mine?


回答1:


GetDiskFreeSpaceEx. That links to pinvoke.net's desktop page; simply replace kernel32 with coredll.

Unfortunately System.IO.DriveInfo is not present on Compact Framework. It doesn't quite fit with Windows CE's Unix-style singly-rooted tree.



来源:https://stackoverflow.com/questions/140117/available-space-left-on-drive-winapi-windows-ce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!