Lines Matching refs:hook
747 const ProcHook* hook = GetProcHook(pName); in GetInstanceProcAddr() local
748 if (!hook) in GetInstanceProcAddr()
752 if (hook->type == ProcHook::GLOBAL) in GetInstanceProcAddr()
753 return hook->proc; in GetInstanceProcAddr()
761 return hook->proc; in GetInstanceProcAddr()
772 switch (hook->type) { in GetInstanceProcAddr()
774 proc = (GetData(instance).hook_extensions[hook->extension]) in GetInstanceProcAddr()
775 ? hook->proc in GetInstanceProcAddr()
779 proc = (hook->extension == ProcHook::EXTENSION_CORE) in GetInstanceProcAddr()
780 ? hook->proc in GetInstanceProcAddr()
781 : hook->checked_proc; in GetInstanceProcAddr()
795 const ProcHook* hook = GetProcHook(pName); in GetDeviceProcAddr() local
796 if (!hook) in GetDeviceProcAddr()
799 if (hook->type != ProcHook::DEVICE) { in GetDeviceProcAddr()
804 return (GetData(device).hook_extensions[hook->extension]) ? hook->proc in GetDeviceProcAddr()