Files
stgsharp/源代码/StgSharp/Graphic/Core/IBindingsContext.cs
T
2023-04-29 03:06:32 +08:00

28 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Graphic
{
/// <summary>
/// Provides methods for querying available functions in a bindings context.
/// </summary>
public interface IBindingsContext
{
/// <summary>
/// Retrieves an unmanaged function pointer to the specified function on the specified bindings context.
/// </summary>
/// <param name="procName">An ASCII-encoded string that defines the name of the function.</param>
/// <returns>
/// A <see cref="System.IntPtr"/> that contains the address of procName or IntPtr.Zero,
/// if the function is not supported by the drivers.
/// </returns>
/// <remarks>
/// Note: some drivers are known to return non-zero values for unsupported functions.
/// Typical values include 1 and 2 - inheritors are advised to check for and ignore these
/// values.
/// </remarks>
IntPtr GetProcAddress(string procName);
}
}