Specifications

22 Version 2.0
EFI_SHELL_PROTOCOL.GetCurDir()
Summary
Returns the current directory on the specified device.
Prototype
typedef
CONST CHAR16 *
(EFIAPI *EFI_SHELL_GET_CUR_DIR) (
IN CONST CHAR16 *FileSystemMapping OPTIONAL
);
Parameters
FileSystemMapping
A pointer to the file system mapping. If NULL, then the current working directory
is returned.
Description
If FileSystemMapping is NULL, it returns the current working directory. If the
FileSystemMapping is not NULL, it returns the current directory associated with the
FileSystemMapping. In both cases, the returned name includes the file system
mapping (i.e. fs0:\current-dir).
For more information, see “Current Directory”, section3.5.
Status Codes Returned
NULL The current directory.
NULL Current directory does not exist.