网站首页  词典首页

请输入您要查询的函数:

 

术语 ddeadddata
释义 DdeAddData
语法:
HDDEDATA DdeAddData( HDDEDATA hData,
LPBYTE pSrc,
DWORD cb,
DWORD cbOff
);
DdeAddData功能
该DdeAddData函数将数据传输到指定的动态数据交换(DDE)的对象。应用程序可以添加数据开始在任何偏移对象的开始。如果新的数据的重叠现象已经在对象中的数据,新的数据覆盖的字节的地方发生重叠的旧数据。在那些没有被写入对象的地点内容是不确定的。
参数
hData
[in]句柄DDE的对象,接收更多的数据。
警察体育游乐会
[in]指向一个缓冲区包含的数据添加到DDE的对象。
立法会CB
[in]指定的长度,以字节的数据被添加到DDE的对象,包括终止空,如果数据是一个字符串。
cbOff
[in]指定的偏移量,以字节为单位,从DDE的对象开始。额外的数据复制到该对象在此偏移开始。
返回值
如果函数成功,返回值是一个新的句柄DDE的对象。新的手柄在所有的对象引用使用。
如果函数失败,返回值是零。
该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_INVALIDPARAMETER
DMLERR_MEMORY_ERROR
DMLERR_NO_ERROR
备注
处理后的数据已被用来作为另一个动态数据交换管理库函数的参数,或已由DDE回调函数返回的句柄只能进行读访问DDE的使用对象句柄确定。
如果原来分配的内存量小于是需要保存更多数据,DdeAddData重新分配一个适当大小的全局内存对象。
功能信息
最低DLL版本 user32.dll
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,DdeAccessData,DdeCreateDataHandle,DdeUnaccessData
==英文原文==DdeAddData Function
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.
Syntax
HDDEDATA DdeAddData( HDDEDATA hData,
LPBYTE pSrc,
DWORD cb,
DWORD cbOff
);
Parameters
hData
[in] Handle to the DDE object that receives additional data.
pSrc
[in] Pointer to a buffer containing the data to add to the DDE object.
cb
[in] Specifies the length, in bytes, of the data to be added to the DDE object, including the terminating NULL, if the data is a string.
cbOff
[in] Specifies an offset, in bytes, from the beginning of the DDE object. The additional data is copied to the object beginning at this offset.
Return Value
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 can be one of the following values:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_INVALIDPARAMETER
DMLERR_MEMORY_ERROR
DMLERR_NO_ERROR
Remarks
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 can 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.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Ddeml.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Dynamic Data Exchange Management Library Overview , DdeAccessData , DdeCreateDataHandle , DdeUnaccessData
==原始网址==http://msdn.microsoft.com/en-us/library/ms648741(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:25:51