PORTS Forum

Ports and Interfaces => USB => Topic started by: mr_asadi on February 10, 2013, 02:49:24 am

Title: How to get read size and write size of a MSD?
Post by: mr_asadi on February 10, 2013, 02:49:24 am
hi
how can I get read size and write size of a USB Flash memory that connected to the PC ?
is any way from createfile() and deviceIOcontrol() function? there is  any one that help me with a clear example in C#?
Title: Re: How to get read size and write size of a MSD?
Post by: Jan Axelson on February 10, 2013, 01:19:48 pm
See the DriveInfo class, TotalSize property:

http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx