Expand Minimize

EngDeviceIoControl function

The EngDeviceIoControl function sends a control code to the specified video miniport driver, causing the device to perform the specified operation.

Syntax


DWORD EngDeviceIoControl(
  _In_      HANDLE  hDevice,
  _In_      DWORD   dwIoControlCode,
  _In_opt_  LPVOID  lpInBuffer,
  _In_      DWORD   nInBufferSize,
  _Out_opt_ LPVOID  lpOutBuffer,
  _In_      DWORD   nOutBufferSize,
  _Out_     LPDWORD lpBytesReturned
);

Parameters

hDevice [in]

Handle to the device that is to perform the operation.

dwIoControlCode [in]

Specifies the control code for the operation. The I/O controls are listed and described in full in Video Miniport Driver I/O Control Codes.

lpInBuffer [in, optional]

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 [in]

Specifies the size, in bytes, of lpInBuffer.

lpOutBuffer [out, optional]

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 [in]

Specifies the size, in bytes, of lpOutBuffer.

lpBytesReturned [out]

Pointer to a DWORD 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.

Remarks

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.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

VIDEO_REQUEST_PACKET

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft