DeviceIoControl method

int DeviceIoControl(
  1. Pointer<Void> hDevice,
  2. int dwIoControlCode,
  3. Pointer<Void> lpInBuffer,
  4. int nInBufferSize,
  5. Pointer<Void> lpOutBuffer,
  6. int nOutBufferSize,
  7. Pointer<Uint64> lpBytesReturned,
  8. Pointer<LPOVERLAPPED> lpOverlapped,
)

Implementation

int DeviceIoControl(
  ffi.Pointer<ffi.Void> hDevice,
  int dwIoControlCode,
  ffi.Pointer<ffi.Void> lpInBuffer,
  int nInBufferSize,
  ffi.Pointer<ffi.Void> lpOutBuffer,
  int nOutBufferSize,
  ffi.Pointer<ffi.Uint64> lpBytesReturned,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
) {
  return (_DeviceIoControl ??=
      _dylib.lookupFunction<_c_DeviceIoControl, _dart_DeviceIoControl>(
          'DeviceIoControl'))(
    hDevice,
    dwIoControlCode,
    lpInBuffer,
    nInBufferSize,
    lpOutBuffer,
    nOutBufferSize,
    lpBytesReturned,
    lpOverlapped,
  );
}