DLL entry points definition
<< Click to Display Table of Contents >> Navigation: »No topics above this level« DLL entry points definition |
List of DLL entry points.
The definition is given in "PROGRESS" format, check for the right language specifications in individual chapters VB, C# or Delphi.
PROCEDURE getPrinterList EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter L as LONG.
def input parameter A as MEMPTR.
end.
PROCEDURE getPrinterFonts EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter L as LONG.
def input parameter A as MEMPTR.
end.
PROCEDURE getTextWidth EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter myText as CHAR.
def input parameter myFont as CHAR.
def output parameter lengthInPixels as LONG.
end.
You can use CHAR parameters instead of MEMPTR, it's more easy to code.
PROCEDURE getPrinterRes EXTERNAL "xPrint.dll" [PERSISTENT]:
def output parameter PrinterResolution as LONG.
end.
PROCEDURE getScreenFonts EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter L as LONG.
def input parameter A as MEMPTR.
end.
PROCEDURE fontDialog EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter L as LONG.
def input parameter A as MEMPTR.
def output parameter R as LONG.
end.
PROCEDURE getTextHeight EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter myText as CHAR.
def input parameter myFont as CHAR.
Def input parameter frameLength as LONG.
def output parameter numberOfLines as LONG.
end.
PROCEDURE getImageDim EXTERNAL "xPrint.dll" [PERSISTENT]:
def input parameter myImage as CHAR.
def input-output parameter imageWidth as LONG.
Def input-output parameter imageHeight as LONG.
end.
PROCEDURE getLPI EXTERNAL "xPrint.dll" [PERSISTENT]:
DEF INPUT PARAMETER A AS CHAR.
DEF INPUT PARAMETER B AS MEMPTR.
END.
PROCEDURE getCPI EXTERNAL "xPrint.dll" [PERSISTENT]:
DEF INPUT PARAMETER A AS LONG.
DEF INPUT PARAMETER B AS MEMPTR.
END.
PROCEDURE getPrinter EXTERNAL "xPrint.dll" [PERSISTENT]:
DEF INPUT PARAMETER B AS MEMPTR.
END.
PROCEDURE setPrinter EXTERNAL "xPrint.dll" [PERSISTENT]:
DEF INPUT PARAMETER B AS MEMPTR.
END.
PROCEDURE saveFromClipBoard EXTERNAL "xPrint.dll" [PERSISTENT] :
DEF INPUT PARAMETER A AS CHAR.
DEF OUTPUT parameter O as LONG.
END.
PROCEDURE pageCount EXTERNAL "xPrint.dll" [PERSISTENT] :
DEF INPUT PARAMETER A AS CHAR.
DEF OUTPUT PARAMETER N AS LONG.
END.
PROCEDURE getPrinterDefault EXTERNAL "xPrint.dll" [PERSISTENT] :
DEF INPUT PARAMETER pDef AS MEMPTR.
END.
All these names are included in the xPrint.i include file.