EngDeviceIoControl
DWORD EngDeviceIoControl(
| 
    HANDLE hDevice,
 |  | 
| 
    DWORD dwIoControlCode,
 |  | 
| 
    LPVOID lpInBuffer,
 |  | 
| 
    DWORD nInBufferSize,
 |  | 
| 
    LPVOID lpOutBuffer,
 |  | 
| 
    DWORD nOutBufferSize,
 |  | 
| 
    LPDWORD lpBytesReturned
 |  | 
| 
   );
 |  | 
EngDeviceIoControl sends a control code to the specified video miniport
driver, causing the device to perform the specified operation.
Parameters
- 
hDevice
- 
Handle to the device that is to perform the operation.
 
- 
dwIoControlCode
- 
Specifies the control code for the operation. The I/O controls are listed and
described in full in Video I/O
Control Codes.
 
- 
lpInBuffer
- 
Pointer to a buffer containing data required to perform the operation. This
parameter can be null if the control code specifies an operation that does not
require input data.
 
- 
nInBufferSize
- 
Specifies the size, in bytes, of lpInBuffer.
 
- 
lpOutBuffer
- 
Pointer to a buffer in which the operation’s output data is returned. This
parameter can be null if the control code specifies an operation that does not
produce output data.
 
- 
nOutBufferSize
- 
Specifies the size, in bytes, of lpOutBuffer.
 
- 
lpBytesReturned
- 
Pointer to a long word that specifies the actual size, in bytes, of the data
returned in lpOutBuffer.
Return Value
The return value is a 32-bit Win32 API-defined error code.
Comments
EngDeviceIoControl is used by a display driver to communicate I/O
requests to its corresponding miniport driver. This function provides the only
communication channel between a display and video miniport driver.