C# Class Detours.Hook

Handles unmanaged API hooking.
显示文件 Open project: xcvd/Detours

Public Methods

Method Description
CallOriginal ( ) : object

Calls the original function, and returns a return value.

Hook ( Delegate target, Delegate hook ) : System

Initializes a new instance of the Hook class.

Install ( ) : bool

Installs the hook.

Uninstall ( ) : bool

Removes the hook.

Method Details

CallOriginal() public method

Calls the original function, and returns a return value.
public CallOriginal ( ) : object
return object

Hook() public method

Initializes a new instance of the Hook class.
public Hook ( Delegate target, Delegate hook ) : System
target System.Delegate /// The target. ///
hook System.Delegate /// The hook. ///
return System

Install() public method

Installs the hook.
public Install ( ) : bool
return bool

Uninstall() public method

Removes the hook.
public Uninstall ( ) : bool
return bool