Jump to content

CM QUERYCNRINFO

From EDM2
Revision as of 01:05, 21 April 2025 by Martini (talk | contribs) (Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

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.