Düzenle

Aracılığıyla paylaş


EFI_DISPLAY_POWER_PROTOCOL.GetDisplayPowerState

Returns the current power state of the display and backlight.

Syntax

typedef EFI_STATUS (EFIAPI * EFI_DISPLAY_POWER_GETDISPLAYPOWERSTATE) (
    IN EFI_DISPLAY_POWER_PROTOCOL *This,
    OUT EFI_DISPLAY_POWER_STATE *PowerState 
    );

Parameters

This
[in] A pointer to the EFI_DISPLAY_POWER_PROTOCOL instance.

PowerState
[out] A pointer to an EFI_DISPLAY_POWER_STATE value that receives the current power state.

Return value

Returns one of the following status codes.

Status code Description
EFI_SUCCESS The function returned successfully.
EFI_INVALID_PARAMETER A parameter was invalid.
EFI_DEVICE_ERROR The physical device reported an error.

Requirements

Header: User generated

EFI_DISPLAY_POWER_PROTOCOL