IPrintOemUni::TTYGetInfo method enables a rendering plug-in to supply Unidrv with information relevant to text-only printers.
HRESULT TTYGetInfo( PDEVOBJ pdevobj, DWORD dwInfoIndex, PVOID pOutputBuf, DWORD dwSize, DWORD *pcbcNeeded );
Caller-supplied pointer to a DEVOBJ structure.
Caller-supplied constant identifying the type of information being requested. The following constant values are defined:
The pOutputBuf parameter points to a DWORD in which the method should return the number of the code page to be used.
The pOutputBuf parameter points to a RECT structure in which the method should return page margin widths, in tenths of millimeters (for example, 20 represents 2 mm). If the entire page is printable, all margin values must be 0.
The pOutputBuf parameter points to a DWORD in which the method should return the number of resource IDs of the UFMs for 10, 12, and 17 CPI fonts. To actually obtain these resource IDs, perform a query using OEMTTY_INFO_UFM_IDS.
The pOutputBuf parameter points to an array of DWORDs of sufficient size to hold the number of resource IDs of the UFMs for 10, 12, and 17 CPI fonts. (This number is obtained by using OEMTTY_INFO_NUM_UFMS in a query.) The method should return the resource IDs of the UFMs for 10,12, and 17 CPI fonts.
Caller-supplied pointer to a buffer to receive the requested information.
Caller-supplied size, in bytes, of the buffer pointed to by pOutputBuf.
Caller-supplied pointer to a location to receive the number of bytes written into the buffer pointed to by pOutputBuf. If the number of bytes required is smaller than the number specified by dwSize, the method should supply the required size and return E_FAIL.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
||The method is not implemented.|
IPrintOemUni::TTYGetInfo method is optional. If a rendering plug-in implements this method, the plug-in's IPrintOemUni::GetImplementedMethod method must return S_OK when it receives "TTYGetInfo" as input.
|Header||prcomoem.h (include Prcomoem.h)|