28 lines
1.0 KiB
C#
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);
|
|
}
|
|
}
|