The DdeFreeStringHandle function frees a string handle in the calling application.
BOOL DdeFreeStringHandle(
DWORD idInst, // instance identifier
HSZ hsz // handle to string
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
An application can free string handles it creates with DdeCreateStringHandle but should not free those that the system passed to the application's dynamic data exchange (DDE) callback function or those returned in the CONVINFO structure by the DdeQueryConvInfo function.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ddeml.h.
Import Library: Use user32.lib.
Dynamic Data Exchange Management Library Overview, Dynamic Data Exchange Management Functions, CONVINFO, DdeCmpStringHandles, DdeCreateStringHandle, DdeInitialize, DdeKeepStringHandle, DdeQueryConvInfo, DdeQueryString