Go to the source code of this file.
◆ DriveMapGetBiosDriveNumber()
UCHAR DriveMapGetBiosDriveNumber |
( |
PCSTR |
DeviceName | ) |
|
Definition at line 66 of file drivemap.c.
68 UCHAR BiosDriveNumber = 0;
87 BiosDriveNumber |= 0x80;
90 return BiosDriveNumber;
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
◆ DriveMapIsValidDriveString()
Definition at line 34 of file drivemap.c.
39 if ((
strlen(DriveString) < 3) ||
40 ((DriveString[0] !=
'f') && (DriveString[0] !=
'F') &&
41 (DriveString[0] !=
'h') && (DriveString[0] !=
'H')) ||
42 ((DriveString[1] !=
'd') && (DriveString[1] !=
'D')))
51 if (DriveString[
Index] <
'0' || DriveString[
Index] >
'9')
58 if ((
atoi(&DriveString[2]) < 0) || (
atoi(&DriveString[2]) > 0xff))
ACPI_SIZE strlen(const char *String)
_In_ WDFCOLLECTION _In_ ULONG Index
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)