DDCCIGetVCPFeature function

Important

This function is used by the monitor configuration API to access functionality in the display driver. Applications should not call this function.

Gets the current value, maximum value, and code type of a Virtual Control Panel (VCP) code for a monitor.

Syntax

NTSTATUS WINAPI DDCCIGetVCPFeature(
  _In_      HANDLE             hMonitor,
  _In_      DWORD              dwVCPCode,
  _Out_opt_ LPMC_VCP_CODE_TYPE pvct,
  _Out_     DWORD              *pdwCurrentValue,
  _Out_opt_ DWORD              *pdwMaximumValue
);

Parameters

hMonitor [in]

A handle to a physical monitor.

dwVCPCode [in]

The VCP code to query.

pvct [out, optional]

Receives the VCP code type, as a member of the MC_VCP_CODE_TYPE enumeration.

pdwCurrentValue [out]

Receives the current value of the VCP code.

pdwMaximumValue [out, optional]

Receives the maximum value of the VCP code.

Return value

If the method succeeds, it returns STATUS_SUCCESS. Otherwise, it returns an NTSTATUS error code.

Remarks

Applications should call GetVCPFeatureAndVCPFeatureReply instead of calling this function.

This function has no associated import library. To call this function, you must use the LoadLibrary and GetProcAddress functions to dynamically link to Gdi32.dll.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
DLL
Gdi32.dll

See also

Monitor Configuration Functions