网站首页  词典首页

请输入您要查询的函数:

 

术语 ddeabandontransaction
释义 DdeAbandonTransaction
语法:
BOOL DdeAbandonTransaction( DWORD idInst,
HCONV hConv,
DWORD idTransaction
);
DdeAbandonTransaction功能
该DdeAbandonTransaction函数指定的异步放弃交易,并释放与交易相关的所有资源。
参数
idInst
[in]指定的应用程序实例标识符先前调用DdeInitialize函数获得。
hConv
[in]句柄在该交易发起的交谈。如果此参数0L,所有的交易被遗弃(即idTransaction参数被忽略)。
idTransaction
[in]指定交易的标识符放弃。如果此参数0L,在指定的会话中的所有活动的事务被抛弃。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_INVALIDPARAMETER
DMLERR_NO_ERROR
DMLERR_UNFOUND_QUEUE_ID
备注
只有动态数据交换(DDE)客户端应用程序应调用DdeAbandonTransaction。如果服务器应用程序响应客户端后,呼吁DdeAbandonTransaction,该丢弃的交易系统的交易结果。这个函数有没有同步交易的影响。
功能信息
最低DLL版本 user32.dll
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,DdeClientTransaction,DdeInitialize,DdeQueryConvInfo
==英文原文==DdeAbandonTransaction Function
The DdeAbandonTransaction function abandons the specified asynchronous transaction and releases all resources associated with the transaction.
Syntax
BOOL DdeAbandonTransaction( DWORD idInst,
HCONV hConv,
DWORD idTransaction
);
Parameters
idInst
[in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize function.
hConv
[in] Handle to the conversation in which the transaction was initiated. If this parameter is 0L, all transactions are abandoned (that is, the idTransaction parameter is ignored).
idTransaction
[in] Specifies the identifier of the transaction to abandon. If this parameter is 0L, all active transactions in the specified conversation are abandoned.
Return Value
If the function succeeds, the return value is nonzero.
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_NO_ERROR
DMLERR_UNFOUND_QUEUE_ID
Remarks
Only a Dynamic Data Exchange (DDE) client application should call DdeAbandonTransaction. If the server application responds to the transaction after the client has called DdeAbandonTransaction, the system discards the transaction results. This function has no effect on synchronous transactions.
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 , DdeClientTransaction , DdeInitialize , DdeQueryConvInfo
==原始网址==http://msdn.microsoft.com/en-us/library/ms648739(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:24:37