[DllImport("coredll.dll", EntryPoint = "DeviceIoControl",SetLastError = true)] internal static extern int DeviceIoControlCE(int hDevice, int dwIoControlCode, byte[] lpInBuffer, int nInBufferSize, byte[] lpOutBuffer,int nOutBufferSize, ref int lpBytesReturned, IntPtr lpOverlapped); [DllImport("coredll", SetLastError = true)] static extern IntPtr CreateFile(String lpFileName, UInt32 dwDesiredAccess, UInt32 dwShareMode, IntPtr lpSecurityAttributes, UInt32 dwCreationDisposition, UInt32 dwFlagsAndAttributes, IntPtr hTemplateFile); [DllImport("coredll.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] static extern bool CloseHandle(IntPtr hObject);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)