Post
by Jeff Luther » 16 Aug 2006, 18:14
Posted by: Jeff Luther
I have a link on my 'gupta' page, shown below, that has a SALExtension.zip
link for downloading. That's (to me, anyway) a kind of cross-reference to
most of the Win. API functions, constant declarations, etc. I'd suggest
downloading that for future reference.
In the meantime, your Getxxx() below is what's in the SalExt. code. SetPrinterA(),
however, is different there to some minor extent:
Function: SetPrinterA
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Number: HANDLE
! Printerhandle
Number: DWORD
! Level
Number: LPVOID
! nAddrBuffer
Number: DWORD
and MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_13ua.asp
has SetPrinter() as:
BOOL SetPrinter(
HANDLE hPrinter, // handle to printer object
DWORD Level, // information level
LPBYTE pPrinter, // printer data buffer
DWORD Command // printer-state command
);
TD doesn't have LPBYTE, so LPVOID is likely correct in the SALExt's declaration.
Best Regards,
Jeff Luther/PC Design
info: www.pulpcards.com/gupta/