Freeing PackDDElParam() Memory (94149)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows NT 3.5
    • the operating system: Microsoft Windows NT 3.51
    • Microsoft Windows 95

This article was previously published under Q94149
When posting DDE messages via PostMessage(), an application first calls PackDDElParam() and sends its return value (a pointer cast to LPARAM) as the lParam in PostMessage().

Normally the receiving application is responsible for freeing the structure [via FreeDDElParam()]. However, if the call to PostMessage() fails, the posting application must free the packed data. This is also the method used by 16-bit Windows.

Modification Type:MinorLast Reviewed:8/2/2004
Keywords:KB94149