- Look up the hash of the hook installed on hook account at position
- Write the 32 byte hash to
int64_t hook_hash ( uint32_t write_ptr, uint32_t write_len, int32_t hook_no );
uint8_t hash; int64_t bytes_written = hook_hash(hash, 32, -1);
Pointer to a buffer of a suitable size to store the output. Should be at least 32 bytes.
Length of the output buffer.
The position in the hook chain the hook is located at, or -1 for the currently executing hook.
The number of bytes written
If negative, an error: