|  | 
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Windows.Win32;
 
internal static partial class PInvoke
{
    /// <inheritdoc cref="IsAccelerator(HACCEL, int, MSG*, ushort*)"/>
    public static unsafe bool IsAccelerator<T>(T hAccel, int cAccelEntries, MSG* lpMsg, ushort* lpwCmd)
        where T : IHandle<HACCEL>
    {
        bool result = IsAccelerator(hAccel.Handle, cAccelEntries, lpMsg, lpwCmd);
        GC.KeepAlive(hAccel.Wrapper);
        return result;
    }
}
 |