ViIsContextIdValid
UINT8 __stdcall ViIsContextIdValid(VF_OBJECT_TYPE ObjectType, UINT64 ContextType){
UINT8 result;
__int32 v3;
__int32 v4;
bool v5;
bool v6;
result = 0;
if( ObjectType && (v3 = ObjectType - 1) != 0 && (v4 = v3 - 1) != 0 )
{
if( v4 != 1 )
return result;
v6 = __OFSUB__((_DWORD)ContextType, 2);
v5 = (int)ContextType - 2 < 0;
}
else
{
v6 = __OFSUB__((_DWORD)ContextType, 1);
v5 = (int)ContextType - 1 < 0;
}
return v5 ^ v6;
}Referenced by:
VfInsertContext
VfQueryDeviceContext
VfQueryDriverContext
VfQueryIrpContext
VfQueryThreadContext
VfRemoveContext