Getting the size (free, total) of a Windows Mobile phone drive using C#
问题 How do I get the size (free, total) of any drive on a Windows Mobile phone using C#? I need to do this with code running on the device (not on a connected PC). 回答1: I've rewritten the answer based on a better understanding of the question, but without losing any of my original answer for those who find this question. Getting the size from code running on the device The answer is simple: P/Invoke GetDiskFreeSpaceEx directly (example here) or use a third-party library that does it for you. I'm