c# - DeviceIoControl returning false -


in c# code,deviceiocontrol returning false,the handle correct

deviceiocontrol(devicehandle,   ioctl_storage_get_device_number,   intptr.zero,   0,   outbuffptr,//&psdn,   outbuffsize,   ref dwbytesreturned,    intptr.zero); 

there not lot of data here go on, marshal.getlastwin32error() should give more specific error information.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -