Freeing Memory for Transactions in a DDEML Client App (83912)
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
This article was previously published under Q83912 SUMMARY
A Dynamic Data Exchange Management Library (DDEML) client application
can request data from a server both synchronously and asynchronously
by calling the DdeClientTransaction function.
To make a synchronous request, the client application specifies
XTYP_REQUEST as the value for the uType parameter to
DdeClientTransaction, and any reasonable value for the uTimeout
parameter.
To make an asynchronous request, the client application specifies
XTYP_REQUEST as the value for the uType parameter to
DdeClientTransaction, and TIMEOUT_ASYNC as the value for the uTimeout
parameter.
The client can also establish an advise loop with a server application
by specifying XTYP_ADVSTART as the value for the uType parameter. In
an advise loop, the client application's callback function receives an
XTYP_ADVDATA transaction each time the specified data item changes in
the server application. (NOTE: This article discusses only hot advise
loops in which changed data is communicated to the application. No
data is transferred for a warm advise loop, only a notification that
the data changed.)
The client application must free the data handle it receives from a
synchronous transaction; however, the client application should not
free the data handle it receives from an asynchronous transaction or
from an advise loop.
Modification Type: | Minor | Last Reviewed: | 8/2/2004 |
---|
Keywords: | KB83912 |
---|
|