GetPenDataInfo 

1.0     2.0     

This function retrieves information from an HPENDATA memory block. It is superseded by the GetPenDataAttributes1AOBX_ function.

BOOL GetPenDataInfo( HPENDATA hpndt, LPPENDATAHEADER lppdh, LPPENINFO lppeninfo, DWORD dwReserved )

Parameters

hpndt

Handle to a pen data object that receives the pen data information.

lppdh

Address of a PENDATAHEADER1AOCX0 structure, or NULL if not required.

lppeninfo

Address of a PENINFO3BE5AL5 structure, or NULL if not required.

dwReserved

Reserved for future use. Must be set to 0.

Return Value

Returns TRUE if successful. The return value is FALSE if invalid parameters are used, or if the handle to the pen data is invalid, or if the requested PENINFO does not exist in the pen data.

Comments

This function retrieves the header and pen information in the pen data memory block. If lppeninfo is not NULL and the pen data does not contain pen information, the contents of lppeninfo are not changed. The wPndts member in the PENDATAHEADER1AOCX0 structure can be checked to see if the HPENDATA object has a PENINFO structure associated with it (a value of PTDS_NOPENINFO indicates not). The amount of data allocated is contained in the cbSizeUsed member of the PENDATAHEADER structure.

See Also

GetPenDataAttributes