Tric_WriteDocID

The Tric_WriteDocID function is used to register a DOCID that helps identify a document name to the status monitor.

void WINAPI Tric_WriteDocID(
 LPCTSTR  lpszPrinterName,  // a pointer to a printer name string ending with a NULL character.(IN)
 DWORD  dwDocID     // the value of DocID (IN)
);
  

Parameter

lpszPrinterName
a parameter to specify a pointer to a character string for printer friendly name of the printer. This string ends with a NULL character.

dwDocID
a parameter to specify the value of document identifier, DOCID.

Return Value

N/A

Description

When a request for the printer status information is made against the status monitor with "Tric_RequestStatusNotify," DOCID is registered before the printing action. The application can identify the document corresponding to the obtained information by comparing the DOCID in the information obtained through WM_COPYDATA with the DOCID of the printed document.

DOCID needs to have a distinctive value for each document.

Reference

index, Tric_RequestStatusNotify, DOCID
<strong>Back</strong>