You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
830 B
35 lines
830 B
|
6 years ago
|
// This code is distributed under MIT license.
|
||
|
|
// Copyright (c) 2015 George Mamaladze
|
||
|
|
// See license.txt or http://opensource.org/licenses/mit-license.php
|
||
|
|
|
||
|
|
using System;
|
||
|
|
|
||
|
|
namespace Gma.System.MouseKeyHook.WinApi
|
||
|
|
{
|
||
|
|
internal class HookResult : IDisposable
|
||
|
|
{
|
||
|
|
private readonly HookProcedureHandle m_Handle;
|
||
|
|
private readonly HookProcedure m_Procedure;
|
||
|
|
|
||
|
|
public HookResult(HookProcedureHandle handle, HookProcedure procedure)
|
||
|
|
{
|
||
|
|
m_Handle = handle;
|
||
|
|
m_Procedure = procedure;
|
||
|
|
}
|
||
|
|
|
||
|
|
public HookProcedureHandle Handle
|
||
|
|
{
|
||
|
|
get { return m_Handle; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public HookProcedure Procedure
|
||
|
|
{
|
||
|
|
get { return m_Procedure; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Dispose()
|
||
|
|
{
|
||
|
|
m_Handle.Dispose();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|