Desktop Functions:

   Smart Device Functions:

Show Recent Changes
Subscribe (RSS)
Misc. Pages
Helpful Tools
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
gsapi_revision (gsapi)
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:


Alternative Managed API:

Do you know one? Please contribute it!


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
        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


Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

Access directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version