PiCMConvertDeviceKeyType
INT64 __fastcall PiCMConvertDeviceKeyType(INT16 a1, INT64 *a2){
unsigned int v2;
int v4;
int v5;
int v6;
v2 = 0;
*(_DWORD *)a2 = 0;
switch( (unsigned __int8)a1 )
{
case 0x11u:
*(_DWORD *)a2 = 17;
v4 = 529;
v5 = 273;
break;
case 0x12u:
*(_DWORD *)a2 = 18;
v4 = 530;
v5 = 274;
break;
case 0x13u:
*(_DWORD *)a2 = 19;
v4 = 531;
v5 = 275;
break;
case 0x14u:
*(_DWORD *)a2 = 20;
v4 = 532;
v5 = 276;
break;
default:
return(unsigned int)-1073741811;
}
v6 = a1 & 0xFF00;
if( v6 )
{
if( v6 == 256 )
{
*(_DWORD *)a2 = v5;
return v2;
}
if( v6 == 512 )
{
*(_DWORD *)a2 = v4;
return v2;
}
return(unsigned int)-1073741811;
}
return v2;
}Referenced by:
PiCMDeleteDeviceKey
PiCMOpenDeviceKey