beautypg.com

Simple_text_output.setmode(), Setmode() – Intel Extensible Firmware Interface User Manual

Page 312

background image

Extensible Firmware Interface Specification

10-18

12/01/02

Version 1.10

SIMPLE_TEXT_OUTPUT.SetMode()

Summary

Sets the output device(s) to a specified mode.

Prototype

EFI_STATUS

(* EFIAPI EFI_TEXT_SET_MODE) (

IN

SIMPLE_TEXT_OUTPUT_INTERFACE

*This,

IN

UINTN

ModeNumber

);

Parameters

This

A pointer to the

SIMPLE_TEXT_OUTPUT_INTERFACE

instance.

Type

SIMPLE_TEXT_OUTPUT_INTERFACE

is defined in the

“Related Definitions” section of Section 10.3.

ModeNumber

The text mode to set.

Description

The

SetMode()

function sets the output device(s) to the requested mode. On success the device

is in the geometry for the requested mode, and the device has been cleared to the current
background color with the cursor at (0,0).

Status Codes Returned

EFI_SUCCESS

The requested text mode was set.

EFI_DEVICE_ERROR

The device had an error and could not complete the request.

EFI_UNSUPPORTED

The mode number was not valid.