驱动器上剩余的可用空间-WinAPI-Windows CE [英] Available space left on drive - WinAPI - Windows CE

查看:85
本文介绍了驱动器上剩余的可用空间-WinAPI-Windows CE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我忘记了WinAPI调用,以查明特定驱动器上还剩下多少空间,而pinvoke.net并没有给我任何帮助. 顺便说一下,它是一个紧凑的框架,所以我想出了coredll.dll.

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.

谁能更好地记忆我?

推荐答案

GetDiskFreeSpaceEx .链接到pinvoke.net的桌面页面;只需将kernel32替换为coredll.

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

System.IO.DriveInfo不存在于Compact Framework上.它与Windows CE的Unix风格的单根树不太匹配.

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

这篇关于驱动器上剩余的可用空间-WinAPI-Windows CE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆