---------- C prototypes ---------------------
#define DllExport	__declspec( dllexport )

DllExport int _stdcall PPrtr (int hx, int selection, int NewValue, int action)
DllExport int _stdcall Prtrs (LPSTR szActives)
DllExport int _stdcall GetPrtr (LPSTR szPrtr)
DllExport int _stdcall DefPrtr (LPSTR szNewPrinter, LPSTR szOldPrinter)
DllExport int _stdcall GetPort (LPSTR szPort)
DllExport int _stdcall PPGetDriver (LPSTR szD)
DllExport int _stdcall SetuPP (HWND hwndx)
DllExport int _stdcall PPGetSizes(LPINT iPaperX, LPINT iPaperY,
                                  LPINT iPageX, LPINT iPageY,
                                  LPINT iPageLeft, LPINT iPageTop,
                                  LPINT iPixelsInchX,
                                  LPINT iPixelsInchY)
DllExport int _stdcall PPSetupFileName (LPSTR szPrinterName, LPSTR szFileName)
DllExport int _stdcall PPRemoveFileName (LPSTR szPrinterName, LPSTR szFileName)
DllExport int _stdcall PPResetDC (int hx, HDC hDCPrinter)
DllExport int _stdcall PrtrCap (LPINT nDevCap)

---------- VB function declarations (unsupporteds commented out) -------
Declare Function PPrtr Lib "PPRTR32.DLL" (ByVal hx As Long, ByVal i1 As Long, ByVal i2 As Long, ByVal i3 As Long) As Long
Declare Function DefPrtr Lib "PPRTR32.DLL" (ByVal newone As String, ByVal oldone As String) As Long
Declare Function Prtrs Lib "PPRTR32.DLL" (ByVal plist As String) As Long
Declare Function PrtrCap Lib "PPRTR32.DLL" (ndc As DEVCAP) As Long
Declare Function GetPrtr Lib "PPRTR32.DLL" (ByVal DefPrtr As String) As Long
Declare Function GetPort Lib "PPRTR32.DLL" (ByVal ptrport As String) As Long
Declare Function PPGetDriver Lib "PPRTR32.DLL" (ByVal sdriver As String) As Long
Declare Function PPGetSizes Lib "PPRTR32.DLL" (lPaperX As Long, lPaperY As Long, lPageX As Long, iPageY As Long, lPageLeft As Long, lPageTop As Long, lPixInX As Long, lPixInY As Long) As Long
Declare Function SetuPP Lib "PPRTR32.DLL" (ByVal hwndx As Long) As Long
Declare Function PPSetupFileName Lib "PPRTR32.DLL" (ByVal s1 As String, ByVal fn As String) As Long
Declare Function PPRemoveFileName Lib "PPRTR32.DLL" (ByVal s1 As String, ByVal fn As String) As Long
Declare Function PPResetDC Lib "PPRTR32.DLL" (ByVal hwndx As Long, ByVal hdcx As Long) As Long


------------- PowerBuilder External Declarations --------------------
Function long PPrtr  (long hWnd, long ppSelection, long PPNewValue, long ppAction) Library "PPRTR32.DLL"
Function long SetuPP (long hWnd) Library "PPRTR32.DLL"
Function  long  DefPrtr  (string newone, ref string stringoldone)  Library "PPRTR32.DLL"
Function long  Prtrs (ref string plist)  Library "PPRTR32.DLL"
Function long  PrtrCap (ref devcap xdc) Library "PPRTR32.DLL"
Function long  GetPrtr (ref string DefPrtr) Library "PPRTR32.DLL"
Function long  GetPort  (ref string ptrport) Library "PPRTR32.DLL"
Function long PPGetDriver (ref string sdriver) Library "PPRTR32.DLL"
Function long PPGetSizes (ref long iPaperX, ref long iPaperY, ref long iPageX, ref long iPageY, ref long iPageLeft, ref long iPageTop, ref long iPixInX, ref long iPixInY) Library "PPRTR32.DLL"
Function long PPSetupFileName (ref string ptr, ref string fn) Library "PPRTR32.DLL"
Function long PPRemoveFileName (ref string ptr, ref string fn) Library "PPRTR32.DLL"
