#include <ddeml.h>
XTYP_REQUEST
hszTopic = hsz1; /* handle of topic-name string */
hszItem = hsz2; /* handle of item-name string */
A DDE server callback function receives this transaction when a client specifies XTYP_REQUEST for the wType parameter of the DdeClientTransaction function. A client uses this transaction to request data from a server.
hszTopic
Value of hsz1. Identifies the topic name.
hszItem
Value of hsz2. Identifies the item name that has changed.
The server should call the DdeCreateDataHandle function to create a data handle that identifies the changed data and then should return the handle. The server should return NULL if it is unable to complete the transaction. If the server returns NULL, the client receives a DDE_FNOTPROCESSED acknowledgment flag.
If the server application specified the CBF_FAIL_REQUESTS flag in the DdeInitialize function, this transaction is filtered.
If responding to this transaction requires lengthy processing, the server can return CBR_BLOCK to suspend future transactions on the current conversation and then process the transaction asynchronously. When the server has finished and the data is ready to pass to the client, the server can call the DdeEnableCallback function to resume the conversation.
DdeClientTransaction, DdeCreateDataHandle, DdeEnableCallback, DdeInitialize