Parameter Type and Description
- char cShortSessionID
- Presentation space short session ID.
- const PAGEINFO * const pPageInfo
- Pointer to PAGEINFO structure, where the page settings are mentioned.
- nFlags
- Combination of bit flags that indicates which members in the
structure are valid. These flags can be used independently or by ORing
them together to restore the property page (defined in PCSAPI32.H).
The flags, along with the corresponding valid members in the structure,
are as follows:
- Flag
- Valid members in the structure
- PCS_PAGE_CPI
- nCPI
- PCS_PAGE_LPI
- nLPI
- PCS_PAGE_FACE_NAME
- szFaceName
- PCS_PAGE_MPL
- nMPL
- PCS_PAGE_MPP
- nMPP
- nCPI
- The number of characters printed per inch.
To select Font CPI, set the HIWORD of nCPI to 1. LOWORD of nCPI will be ignored.
To select a particular CPI value, do the following:- Set the HIWORD of nCPI to 0.
- Set the LOWORD of nCPI to the actual CPI value.
- nLPI
- The number of lines printed per inch.
To select Font LPI, set the HIWORD of nLPI to 1. LOWORD of nLPI will be ignored
To select a particular LPI value, do the following:- Set the HIWORD of nLPI to 0.
- Set the LOWORD of nLPI to the actual LPI value.
- szFaceName
- Face name of the printer font. This must be a null-terminated string.
- nMPL
- Maximum number of lines that can be printed per page.
This is also called MPL (Maximum Print Lines). Supported range is 1 to 255.
- nMPP
- Maximum number of characters that can be printed per line.
This is also called MPP (Maximum Print Position). Supported range is 1 to 255.
- ULONG * const pErrorInfo
- Contains the extended error info when the API fails with the
return code of PCS_FAILURE. If the detailed error information is not
needed, this flag must be set to NULL by the caller.
This is a combination of bit flags that describe which members of the PAGEINFO structure could not be set successfully. The flags that are defined in PCSAPI32.H are as follows:
- Flag
- Valid members in the structure
- PCS_PAGE_CPI
- Only nCPI is not valid.
- PCS_PAGE_LPI
- Only nLPI is not valid.
- PCS_PAGE_FACE_NAME
- Only szFaceName is not valid.
- PCS_PAGE_MPL
- Only nMPL is not valid.
- PCS_PAGE_MPP
- Only nMPP is not valid.