gsapi_revision (gsapi)
Last changed: -93.4.66.71

.
Summary
This function returns information about the Ghostscript Interpreter API (gsapi.dll)

C# Signature:

    [DllImport("gsdll32.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
    private static extern int gsapi_revision(ref GSVersion version, int len);

VB Signature:

    Declare Auto Function gsapi_revision Lib "gsdll32.dll" (ByRef pVer As GSVersion, ByVal pSize As Integer) As Integer

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

The gsapi_revision function takes a reference to a GSVersion structure.

Tips & Tricks:

Please add some!

Sample Code:

Here is an example of using the gsapi_revision in an object property.

    public GSVersion GSVer
    {
        get
        {
        GSVersion gsVer = new GSVersion();
        gsapi_revision(ref gsVer, Marshal.SizeOf(gsVer));
        return gsVer;
        }
    }

    Public Function TellRevision() As String
    Dim lVer As New GSVersion
    Dim lResult As Integer

    lResult = gsapi_revision(lVer, Marshal.SizeOf(lVer))
    Return lVer.product
    End Function

Documentation