PipHardwareConfigGetIndex
NTSTATUS __stdcall PipHardwareConfigGetIndex(UINT64 *HardwareConfigIndex){
VOID *v1;
VOID *v2;
NTSTATUS v3;
__int64 v5;
int v6;
VOID *Handle;
v5 = (__int64)HardwareConfigIndex;
v6 = 0;
v2 = v1;
Handle = 0i64;
if( !v1 )
return -1073741811;
v3 = PipHardwareConfigOpenKey((VOID **)HardwareConfigIndex);
if( v3 >= 0 )
{
LODWORD(v5) = 4;
v3 = RegRtlQueryValue(Handle, L"Id", &v6, v2, (__int64)&v5);
}
if( Handle )
ZwClose((_HANDLE)Handle);
return v3;
}Referenced by:
IopInitializeBootDrivers