Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


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

Search Results for "gsapi_revision" in [All]

gsapi

.

When working with the gsapi.dll, start with the gsapi_revision function, get that working. Then get this api working next.

.

    private static extern int gsapi_revision(ref GSVersion version, int len);

.

        gsapi_revision(ref version, Marshal.SizeOf(version));

.

    private static extern int gsapi_revision(ref GSVersion version, int len);

.

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

.

The gsapi_revision function takes a reference to a GSVersion structure.

.

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

.

        gsapi_revision(ref gsVer, Marshal.SizeOf(gsVer));

.

    lResult = gsapi_revision(lVer, Marshal.SizeOf(lVer))

Structures

.
Summary
This structure is filled in by the gsapi_revision function.
.

When starting to work with the Ghostscript Interpreter API (gsapi.dll), it is helpful to start by getting the gsapi_revision function to work.

.

Here is a sample of how the GSVersion structure is filled in by the gsapi_revision function.

.

Originally this article showed the 'product' and 'copyright' fields as type 'string', but this causes a program crash when calling the gsapi_revision function (tested under VS2013 and 32-bit GPL Ghostscript v9.15).


 
Access PInvoke.net directly from VS: