Why is the document name in Lock/Unlock not Unicode/LPCTSTR?
Definition in both 4.0 and 4.5 version (LPCSTR instead of LPCTSTR):
Code: Select all
/********** Print Job Locking Functions **********/
int WINAPI Lock(HANDLE hPrinter, LPCSTR szLockName);
int WINAPI Unlock(HANDLE hPrinter, LPCSTR szLockName, long dwTimeout);
Code: Select all
typedef struct _JOB_INFO_1 {
DWORD JobId;
LPTSTR pPrinterName;
LPTSTR pMachineName;
LPTSTR pUserName;
LPTSTR pDocument;
LPTSTR pDatatype;
LPTSTR pStatus;
DWORD Status;
DWORD Priority;
DWORD Position;
DWORD TotalPages;
DWORD PagesPrinted;
SYSTEMTIME Submitted;
} JOB_INFO_1, *PJOB_INFO_1;
Aldus@Monitor