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.
Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.
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.
Character string that contains the name of the machine of the printed job. This is a null-terminated string.
Character string that contains the name of the user that printed the job. This is a null-terminated string.
Character string that contains the IP address of the machine that printed the job. This is a null-terminated string.
Character string that contains the name of the printed job. This is a null-terminated string.
Unique job ID.
Global pointer to be filled with user-defined data, which will be sent to the server machine.
The length of the user data to be sent to the server machine.
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