PiDevCfgGetFailedInstallProblemStatus
INT64 __stdcall PiDevCfgGetFailedInstallProblemStatus(WCHAR *DeviceInstanceId, PVOID DeviceInstanceKeyHandle){
unsigned int v2;
int v4[6];
int v5;
ULONG v6;
v2 = 0;
v4[0] = 0;
v5 = 1;
v6 = 0;
if( (int)PnpGetObjectProperty(
PiPnpRtlCtx,
(__int64)DeviceInstanceId,
1i64,
(__int64)DeviceInstanceKeyHandle,
0i64,
(__int64)&DEVPKEY_Device_InstallError,
&v5,
(unsigned __int64)v4,
4,
&v6,
0) >= 0
&& v5 == 23
&& v6 == 4 )
{
switch( v4[0] )
{
case -536870375:
return(unsigned int)-1073740652;
case -536870360:
return(unsigned int)-1073740656;
case -536870320:
return(unsigned int)-1073740655;
case -536870319:
return(unsigned int)-1073740654;
case -536870318:
return(unsigned int)-1073740653;
}
}
return v2;
}Referenced by:
IopInitializeDeviceInstanceKey
PiInitializeDevice
PiProcessNewDeviceNode