The DdeCreateDataHandle function creates a dynamic data exchange (DDE) object and fills the object with data from the specified buffer. A DDE application uses this function during transactions that involve passing data to the partner application.
HDDEDATA DdeCreateDataHandle(
DWORD idInst, |
// instance identifier |
LPBYTE pSrc, |
// pointer to source buffer |
DWORD cb, |
// length of DDE object |
DWORD cbOff, |
// offset from beginning of source buffer |
HSZ hszItem, |
// handle to item name string |
UINT wFmt, |
// clipboard data format |
UINT afCmd |
// creation flags |
); |
If the function succeeds, the return value is a data handle.
If the function fails, the return value is 0L.
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
Any unfilled locations in the DDE object are undefined.
After a data handle has been used as a parameter in another DDEML 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.
DdeAccessData, DdeCreateStringHandle, DdeFreeDataHandle, DdeGetData, DdeInitialize
file: /Techref/os/win/api/win32/func/src/f13_9.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/13 03:26,
18.224.45.32:LOG IN
|
©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_9.htm"> DdeCreateDataHandle</A> |
Did you find what you needed? |