// dispmprt.h
DXGK_BRIGHTNESS_GET_POSSIBLE DxgkBrightnessGetPossible;
NTSTATUS DxgkBrightnessGetPossible(
[in] PVOID Context,
[in] ULONG BufferSize,
[out] PUCHAR LevelCount,
[out] PUCHAR BrightnessLevels
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiGetPossibleBrightness function retrieves the brightness levels that an integrated display panel supports.
Context [in][in] A handle to a context block that is associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to the Microsoft DirectX graphics kernel subsystem.
BufferSize [in][in] The size, in bytes, of the buffer that is passed in the BrightnessLevels parameter.
LevelCount [out][out] A pointer to a variable that receives the number of brightness levels that the driver returns in the buffer that the BrightnessLevels parameter points to.
BrightnessLevels [out][in/out] A pointer to a buffer that receives the brightness levels that an integrated display panel supports.
DxgkDdiGetPossibleBrightness returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes that are defined in Ntstatus.h.
The display miniport driver should return brightness levels in the buffer that the BrightnessLevels parameter points to in the following order:
To simplify your job of implementing a display miniport driver, the operating system provides the driver with the buffer that the BrightnessLevels parameter points to.
DxgkDdiGetPossibleBrightness should be made pageable.