SiDisambiguateSystemDevice
NTSTATUS __stdcall SiDisambiguateSystemDevice(UINT64 *SystemDisk, UINT64 *SystemPartition){
UINT64 *v2;
int RegistryValue;
UINT64 PartitionId;
PVOID P;
UINT64 DiskId;
LODWORD(DiskId) = 0;
LODWORD(PartitionId) = 0;
P = 0i64;
RegistryValue = SiGetRegistryValue(
(PWCHAR)SystemDisk,
(PWCHAR)L"SystemPartition",
(PVOID *)L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\Syspart",
v2);
if( RegistryValue >= 0 )
return -1073741823;
return RegistryValue;
}Referenced by:
SiGetEfiSystemDevice