Quibblesome
Quibblesome

Reputation: 25429

Available space left on drive - WinAPI - Windows CE

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?

Upvotes: 2

Views: 1984

Answers (1)

Mike Dimmick
Mike Dimmick

Reputation: 9802

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.

Upvotes: 5

Related Questions