Platform SDK: Interprocess Communications

PackDDElParam

The PackDDElParam function packs a DDE lParam value into an internal structure used for sharing DDE data between processes.

LPARAM PackDDElParam(
  UINT msg,      // DDE message to be posted
  UINT_PTR uiLo, // low-order word of lParam of message
  UINT_PTR uiHi  // high-order word of lParam of message
);

Parameters

msg
[in] Specifies the DDE message to be posted.
uiLo
[in] Specifies a value that corresponds to the 16-bit Windows low-order word of an lParam parameter for the DDE message being posted.
uiHi
[in] Specifies a value that corresponds to the 16-bit Windows high-order word of an lParam parameter for the DDE message being posted.

Return Values

The return value is the lParam value.

Remarks

The return value must be posted as the lParam parameter of a DDE message; it must not be used for any other purpose. After the application posts a return value, it need not perform any action to dispose of the lParam parameter.

PackDDElParam eases the porting of 16-bit Windows-based applications to Win32-based applications.

An application should call this function only for posted DDE messages.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Dde.h; include Windows.h.
  Library: Use User32.lib.

See Also

Dynamic Data Exchange Overview, Dynamic Data Exchange Functions, FreeDDElParam, ReuseDDElParam, UnpackDDElParam