The DdeGetData function copies data from the specified dynamic data exchange (DDE) object to the specified local buffer.
DWORD DdeGetData(
HDDEDATA hData, // handle to DDE object
LPBYTE pDst, // pointer to destination buffer
DWORD cbMax, // amount of data to copy
DWORD cbOff // offset to beginning of data
);
If the pDst parameter points to a buffer, the return value is the size, in bytes, of the memory object associated with the data handle or the size specified in the cbMax parameter, whichever is lower.
If the pDst parameter is NULL, the return value is the size, in bytes, of the memory object associated with the data handle.
The DdeGetLastError function can be used to get the error code, which may be one of the following values:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_INVALIDPARAMETER
DMLERR_NO_ERROR
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, DdeAccessData, DdeCreateDataHandle, DdeFreeDataHandle