using System;
using ProcessHacker.Native.Objects;
namespace ProcessHacker.Native
{
///
/// Provides various utility methods.
///
public static class NativeUtils
{
///
/// Calls a function.
///
/// The address of the function.
/// The first parameter to pass.
/// The second parameter to pass.
/// The third parameter to pass.
public static void Call(IntPtr address, IntPtr param1, IntPtr param2, IntPtr param3)
{
// Queue a user-mode APC to the current thread.
ThreadHandle.Current.QueueApc(address, param1, param2, param3);
// Flush the APC queue.
ThreadHandle.TestAlert();
}
}
}