Beispiel #1
0
 private static int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen)
 {
     if (IntPtr.Size > 4)
     {
         return(gsapi_revision64(ref pGSRevisionInfo, intLen));
     }
     else
     {
         return(gsapi_revision32(ref pGSRevisionInfo, intLen));
     }
 }
Beispiel #2
0
        public GhostScriptRevision GetRevision()
        {
            // Check revision number of Ghostscript
            int                 intReturn;
            GS_Revision         udtGSRevInfo = new GS_Revision();
            GhostScriptRevision output;
            GCHandle            gcRevision;

            gcRevision                   = GCHandle.Alloc(udtGSRevInfo, GCHandleType.Pinned);
            intReturn                    = gsapi_revision(ref udtGSRevInfo, 16);
            output.intRevision           = udtGSRevInfo.intRevision;
            output.intRevisionDate       = udtGSRevInfo.intRevisionDate;
            output.ProductInformation    = AnsiZtoString(udtGSRevInfo.strProduct);
            output.CopyrightInformations = AnsiZtoString(udtGSRevInfo.strCopyright);
            gcRevision.Free();
            return(output);
        }
Beispiel #3
0
 private static extern int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen);
Beispiel #4
0
 public GhostScriptRevision GetRevision()
 {
     // Check revision number of Ghostscript
     int intReturn;
     GS_Revision udtGSRevInfo = new GS_Revision();
     GhostScriptRevision output;
     GCHandle gcRevision;
     gcRevision = GCHandle.Alloc(udtGSRevInfo, GCHandleType.Pinned);
     intReturn = gsapi_revision(ref udtGSRevInfo, 16);
     output.intRevision = udtGSRevInfo.intRevision;
     output.intRevisionDate = udtGSRevInfo.intRevisionDate;
     output.ProductInformation = AnsiZtoString(udtGSRevInfo.strProduct);
     output.CopyrightInformations = AnsiZtoString(udtGSRevInfo.strCopyright);
     gcRevision.Free();
     return output;
 }
Beispiel #5
0
 private static extern int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen);
Beispiel #6
0
 private static int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen)
 {
     if (IntPtr.Size > 4)
         return gsapi_revision64(ref pGSRevisionInfo, intLen);
     else
         return gsapi_revision32(ref pGSRevisionInfo, intLen);
 }