DeviceIoControl function kernel32
int
DeviceIoControl(
- int hDevice,
- int dwIoControlCode,
- Pointer<
NativeType> lpInBuffer, - int nInBufferSize,
- Pointer<
NativeType> lpOutBuffer, - int nOutBufferSize,
- Pointer<
Uint32> lpBytesReturned, - Pointer<
OVERLAPPED> lpOverlapped,
Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.
BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped
);
Implementation
int DeviceIoControl(
int hDevice,
int dwIoControlCode,
Pointer lpInBuffer,
int nInBufferSize,
Pointer lpOutBuffer,
int nOutBufferSize,
Pointer<Uint32> lpBytesReturned,
Pointer<OVERLAPPED> lpOverlapped) =>
_DeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize,
lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped);