The DdeAddData function adds data to the specified dynamic data exchange (DDE) object. An application can add data starting at any offset from the beginning of the object. If new data overlaps data already in the object, the new data overwrites the old data in the bytes where the overlap occurs. The contents of locations in the object that have not been written to are undefined.
HDDEDATA DdeAddData(
HDDEDATA hData, |
// handle to DDE data object |
LPBYTE pSrc, |
// pointer to source buffer |
DWORD cb, |
// length of data |
DWORD cbOff |
// offset within DDE data object |
); |
If the function succeeds, the return value is a new handle to the DDE object. The new handle is used in all references to the object.
If the function fails, the return value is zero.
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_MEMORY_ERROR
DMLERR_NO_ERROR
After a data handle has been used as a parameter in another Dynamic Data Exchange Management Library function or has been returned by a DDE callback function, the handle may be used only for read access to the DDE object identified by the handle.
If the amount of memory originally allocated is less than is needed to hold the added data, DdeAddData reallocates a global memory object of the appropriate size.
DdeAccessData, DdeCreateDataHandle, DdeUnaccessData
file: /Techref/os/win/api/win32/func/src/f13_3.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/10 22:09,
18.189.141.236:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/os/win/api/win32/func/src/f13_3.htm"> DdeAddData</A> |
Did you find what you needed? |