Click or drag to resize

LocalHook Methods

The LocalHook type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate
Installs a managed hook. After this you'll have to activate it by setting a proper ThreadACL.
Public methodStatic memberCreateUnmanaged
Installs an unmanaged hook. After this you'll have to activate it by setting a proper ThreadACL. HookRuntimeInfo WON'T be supported! Refer to the native "LhBarrierXxx" APIs to access unmanaged hook runtime information.
Public methodDispose
If you want to immediately uninstall a hook, the only way is to dispose it. A disposed hook is guaranteed to never invoke your handler again but may still consume memory even for process life-time!
Public methodStatic memberEnableRIPRelocation
RIP relocation is disabled by default. If you want to enable it, just call this method which will attach a debugger to the current process. There may be circumstances under which this might fail and this is why it is not done by default. On 32-Bit system this method will always succeed and do nothing...
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Ensures that each instance is always terminated with Dispose.
(Overrides CriticalFinalizerObjectFinalize.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetNameByHandle
Reads the kernel object name for a given windows usermode handle. Executes in approx. 100 micro secounds.
Public methodStatic memberGetProcAddress
Will return the address for a given DLL export symbol. The specified module has to be loaded into the current process space and also export the given method.
Public methodStatic memberGetProcDelegateTDelegate
Will return a delegate for a given DLL export symbol. The specified module has to be loaded into the current process space and also export the given method.
Public methodStatic memberGetProcessIdByHandle
Tries to get the underlying process ID for a given handle.
Public methodStatic memberGetThreadIdByHandle
Tries to get the underlying thread ID for a given handle.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsThreadIntercepted
Checks whether a given thread ID will be intercepted by the underlying hook.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRelease
Processes any pending hook removals. Warning! This method can be quite slow (1 second) under certain circumstances.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also