PRNJOBDATA

typedef struct _tagPRNJOBDATA 
{ 
   L_UINT uStructSize; / * size of the structure */ 
   L_TCHAR szVirtualPrinterName[80]; / * printer Name */ 
   L_TCHAR szClientMachineName[80]; / * client Machine Name */ 
   L_TCHAR szUserName[80]; / * client User Name */ 
   L_TCHAR szIPAddress[80]; / * client IP Address */ 
   L_TCHAR szPrintJobName[255]; / * printed Job Name */ 
   L_INT nJobID; / * print Job ID */ 
   L_HGLOBAL hUserData; / * client User Data */ 
   L_UINT uUserDataSize; / * user Data Size */ 
} PRNJOBDATA, *pPRNJOBDATA; 

The PRNJOBDATA structure provides information when installing or uninstalling LEADTOOLS Virtual Printer Drivers.

Members

L_UINT uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.

L_TCHAR szVirtualPrinterName

Character string that contains the name of the printer. This is a null-terminated string. The client printer driver will send the printer job name to the user Client DLL.

L_TCHAR szClientMachineName

Character string that contains the name of the machine of the printed job. This is a null-terminated string.

L_TCHAR szUserName

Character string that contains the name of the user that printed the job. This is a null-terminated string.

L_TCHAR szIPAddress

Character string that contains the IP address of the machine that printed the job. This is a null-terminated string.

L_TCHAR szPrintJobName

Character string that contains the name of the printed job. This is a null-terminated string.

L_INT nJobID

Unique job ID.

L_HGLOBAL hUserData

Global pointer to be filled with user-defined data, which will be sent to the server machine.

L_UINT uUserDataSize

The length of the user data to be sent to the server machine.

Comments

The user demo DLL should implement the L_PrnClntPrintJob function, the printer driver will call this function and pass a PRNJOBDATA structure to it. It is necessary to fill the hUserData and uUserDataSize members of this structure, in order to be sent to the server.

The hUserData will be filled with the user-specific data using normal windows API functions GlobalAlloc, GlobalLock and GlobalUnlock.

The uUserDataSize should contain an integer number that represents the size of the hUserData.

This structure is used within the L_PrnClntPrintJob function

Help Version 22.0.2021.10.28
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Virtual Printer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.