![Intel Extensible Firmware Interface Specification Download Page 96](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117096.webp)
Extensible Firmware Interface Specification
78
12/12/00
Version 1.02
3.5.1 GetVariable()
Summary
Returns the value of a variable.
Prototype
EFI_STATUS
GetVariable (
IN CHAR16
*VariableName,
IN EFI_GUID
*VendorGuid
,
OUT UINT32
*Attributes
OPTIONAL,
IN OUT UINTN
*DataSize,
OUT VOID
*Data
);
Parameters
VariableName
A Null-terminated Unicode string that is the name of the
vendor’s variable.
VendorGuid
A unique identifier for the vendor. Type
EFI_GUID
is defined
in Section 3.3.1.
Attributes
If not
NULL
, a pointer to the memory location to return the
attributes bitmask for the variable. See “Related Definitions”.
DataSize
On input, the size in bytes of the return
Data
buffer.
On output the size of data returned in
Data
.
Data
The buffer to return the contents of the variable.
Related Definitions
//*******************************************************
// Variable Attributes
//*******************************************************
#define EFI_VARIABLE_NON_VOLATILE
0x0000000000000001
#define EFI_VARIABLE_BOOTSERVICE_ACCESS
0x0000000000000002
#define EFI_VARIABLE_RUNTIME_ACCESS
0x0000000000000004
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...