/// <summary> /// Dispose the hooker. /// </summary> public void Dispose() { if (hookID != IntPtr.Zero) { Unhook(); } instance = null; }