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++ - Convert big endian to little endian when reading from a binary file -

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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -