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 12:19, local time: 2024/8/27 13:15,
18.227.111.23: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://piclist.com/tecHREF/os/win/api/win32/func/src/f13_9.htm"> DdeCreateDataHandle</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.