CM QUERYCNRINFO: Difference between revisions
Appearance
Created page with "This message returns the container's CNRINFO structure. ==Syntax== <PRE> param1 PCNRINFO pCnrInfo; →Pointer to a buffer into which the CNRINFO structure is copied.: param2 USHORT cbBuffer; →Number of bytes.: </PRE> ==Parameters== ;pCnrInfo (PCNRINFO) - Input : Pointer to a buffer into which the CNRINFO structure is copied. ;cbBuffer (USHORT) - Input : Maximum number of bytes to copy. ==Returns== ;cbBytes (USHORT) - returns : Success indic..." |
|||
Line 10: | Line 10: | ||
==Parameters== | ==Parameters== | ||
;pCnrInfo ([[ | ;pCnrInfo (P[[CNRINFO]]) - Input | ||
: Pointer to a buffer into which the [[CNRINFO]] structure is copied. | : Pointer to a buffer into which the [[CNRINFO]] structure is copied. | ||
;cbBuffer ([[USHORT]]) - Input | ;cbBuffer ([[USHORT]]) - Input |
Latest revision as of 01:05, 21 April 2025
This message returns the container's CNRINFO structure.
Syntax
param1 PCNRINFO pCnrInfo; /* Pointer to a buffer into which the CNRINFO structure is copied. */ param2 USHORT cbBuffer; /* Number of bytes. */
Parameters
- pCnrInfo (PCNRINFO) - Input
- Pointer to a buffer into which the CNRINFO structure is copied.
- cbBuffer (USHORT) - Input
- Maximum number of bytes to copy.
Returns
- cbBytes (USHORT) - returns
- Success indicator.
- 0: Container data was not successfully returned. The WinGetLastError function may return the following error:
- PMERR_INVALID_PARAMETERS.
- Other: Actual number of bytes copied.
- 0: Container data was not successfully returned. The WinGetLastError function may return the following error:
Remarks
The number of bytes specified in the cbBuffer parameter is returned in the buffer addressed by the pCnrInfo parameter.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return 0.