DOCINFO
The DOCINFO structure contains the input and output filenames and other information used by the StartDoc function.
typedef struct { // di
int cbSize;
LPCTSTR lpszDocName;
LPCTSTR lpszOutput;
LPCTSTR lpszDatatype;
DWORD fwType; // Windows 95 only; ignored on Windows NT
} DOCINFO;
Members
-
cbSize
-
Specifies the size, in bytes, of the structure.
-
lpszDocName
-
Pointer to a null-terminated string that specifies the name of the document.
-
lpszOutput
-
Pointer to a null-terminated string that specifies the name of an output file. If this pointer is NULL, the output will be sent to the device identified by the device context handle that was passed to the StartDoc function.
-
lpszDatatype
-
Pointer to a null-terminated string that specifies the type of data, such as "raw" or "emf", used to record the print job. This member can be NULL. If it is not NULL, the StartDoc function passes it to the printer driver. Note that the printer driver might ignore the requested data type
-
fwType
-
Specifies additional information about the print job. This member must be zero or DI_APPBANDING.
Value |
Meaning |
DI_APPBANDING |
Applications that use banding should set this flag for optimal performance during printing. |
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Unicode: Defined as Unicode and ANSI structures.
See Also
Printing and Print Spooler Overview, Printing and Print Spooler Structures, StartDoc