diff options
author | RaMMicHaeL <leahcimmar@gmail.com> | 2013-09-30 15:41:53 +0400 |
---|---|---|
committer | RaMMicHaeL <leahcimmar@gmail.com> | 2013-09-30 20:43:03 +0400 |
commit | 95c26012300711962d162f1339044b716e30dcb0 (patch) | |
tree | 04fc0089a00f332bfa314f6edc7258975a29d2eb /include | |
parent | 11225fb3960138347f80f58e40ddbd2aa9d33c90 (diff) |
Define MH_ALL_HOOKS, which can be passed as a parameter to MH_EnableHook, MH_DisableHook, MH_QueueEnableHook or MH_QueueDisableHook.
Diffstat (limited to 'include')
-rw-r--r-- | include/MinHook.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/MinHook.h b/include/MinHook.h index 03e5aa4..cfc602c 100644 --- a/include/MinHook.h +++ b/include/MinHook.h @@ -71,6 +71,9 @@ typedef enum MH_STATUS } MH_STATUS; +// Can be passed as a parameter to MH_EnableHook, MH_DisableHook, MH_QueueEnableHook or MH_QueueDisableHook. +#define MH_ALL_HOOKS NULL + #if defined __cplusplus extern "C" { #endif @@ -95,22 +98,26 @@ extern "C" { // Enables the already created hook. // Parameters: - // pTarget [in] A pointer to the target function. If this parameter is NULL, all created hooks are enabled in one go. + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are enabled in one go. MH_STATUS WINAPI MH_EnableHook(void* pTarget); // Disables the already created hook. // Parameters: - // pTarget [in] A pointer to the target function. If this parameter is NULL, all created hooks are disabled in one go. + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are disabled in one go. MH_STATUS WINAPI MH_DisableHook(void* pTarget); // Queues to enable the already created hook. // Parameters: - // pTarget [in] A pointer to the target function. If this parameter is NULL, all created hooks are queued to be enabled. + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are queued to be enabled. MH_STATUS WINAPI MH_QueueEnableHook(void* pTarget); // Queues to disable the already created hook. // Parameters: - // pTarget [in] A pointer to the target function. If this parameter is NULL, all created hooks are queued to be disabled. + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are queued to be disabled. MH_STATUS WINAPI MH_QueueDisableHook(void* pTarget); // Applies all queued changes in one go. |