Skip to content

API: MmHookExists

Archie_UwU edited this page Sep 30, 2024 · 2 revisions

Tests whether a named hook (inline or mid-function) is set by a given module.

Syntax

AurieStatus MmHookExists(
    [in] AurieModule*     Module,
    [in] std::string_view HookIdentifier
);

Parameters

Module

A pointer to the owner module of the hook. The hook is automatically removed and resources associated with it are freed once this module unloads. This pointer must be valid and point to a valid module.

HookIdentifier

A unique, case-sensitive name for the hook. Hook names are module-scoped, therefore two modules can register a hook with the same name without a collision.

Return Value

The function returns AURIE_SUCCESS if the hook exists, otherwise returns AURIE_OBJECT_NOT_FOUND.