-
Notifications
You must be signed in to change notification settings - Fork 5
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.
AurieStatus MmHookExists(
[in] AurieModule* Module,
[in] std::string_view HookIdentifier
);
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.
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.
The function returns AURIE_SUCCESS
if the hook exists, otherwise returns AURIE_OBJECT_NOT_FOUND
.