网站首页  词典首页

请输入您要查询的函数:

 

术语 ddegetlasterror
释义 DdeGetLastError
语法:
UINT DdeGetLastError( DWORD idInst
);
DdeGetLastError功能
该DdeGetLastError函数检索的最新错误代码的动态数据交换管理库(DDEML的)失败功能设置和重置错误代码DMLERR_NO_ERROR。
参数
idInst
[in]指定的应用程序实例标识符先前调用DdeInitialize函数获得。
返回值
如果函数执行成功,返回值是最后一个错误代码,它可以是下列值之一:
ValueMeaning
DMLERR_ADVACKTIMEOUTA要求同步提醒交易已超时。
DMLERR_BUSYThe响应交易造成DDE_FBUSY标志被设置。
DMLERR_DATAACKTIMEOUTA的同步数据的交易请求已超时。
DMLERR_DLL_NOT_INITIALIZEDA DDEML的功能,被称为不先调用DdeInitialize功能,或无效的实例标识符传递给一个DDEML函数。
DMLERR_DLL_USAGEAn应用程序初始化为APPCLASS_MONITOR试图执行一个动态数据交换(DDE)的交易,或作为APPCMD_CLIENTONLY试图执行服务器应用程序初始化的交易。
DMLERR_EXECACKTIMEOUTA要求同步执行的交易已超时。
DMLERR_INVALIDPARAMETERA参数未能由DDEML的验证。对一些可能的原因如下:
应用程序使用的数据处理不同的项目名称初始化处理比规定的交易。
应用程序使用的数据处理这是一个不同的剪贴板的数据格式比交易所需的初始化。
应用程序使用的客户端会话处理服务器端的功能,反之亦然。
该应用程序使用的数据处理释放或字符串处理。
不止一个应用程序实例使用相同的对象。
DMLERR_LOW_MEMORYA DDEML的应用创造了一个长期的竞争条件(在该服务器应用性能超过客户端),导致大量内存的消耗金额。
DMLERR_MEMORY_ERRORA内存分配失败。
DMLERR_NO_CONV_ESTABLISHEDA客户试图建立一个会话失败。
DMLERR_NOTPROCESSEDA交易已经失败。
DMLERR_POKEACKTIMEOUTA捅了同步的交易请求已超时。
DMLERR_POSTMSG_FAILEDAn内部调用PostMessage函数失败。
DMLERR_REENTRANCYAn交易的同步应用程序的实例已在进行中尝试启动另一个同步交易,或DdeEnableCallback函数从一个DDEML回调函数调用。
DMLERR_SERVER_DIEDA服务器端试图在交易的客户,或在完成交易终止服务器终止了谈话。
DMLERR_SYS_ERRORAn发生内部错误的DDEML的。
DMLERR_UNADVACKTIMEOUTA的请求,停止交易的建议已超时。
DMLERR_UNFOUND_QUEUE_IDAn无效的事务标识符传递给一个DDEML函数。一旦应用程序已经从XTYP_XACT_COMPLETE回调产生,该回调函数事务标识符不再有效。
功能信息
最低DLL版本 user32.dll
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,DdeEnableCallback,DdeInitialize,PostMessage
==英文原文==DdeGetLastError Function
The DdeGetLastError function retrieves the most recent error code set by the failure of a Dynamic Data Exchange Management Library (DDEML) function and resets the error code to DMLERR_NO_ERROR.
Syntax
UINT DdeGetLastError( DWORD idInst
);
Parameters
idInst
[in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize function.
Return Value
If the function succeeds, the return value is the last error code, which can be one of the following values:
ValueMeaning
DMLERR_ADVACKTIMEOUTA request for a synchronous advise transaction has timed out.
DMLERR_BUSYThe response to the transaction caused the DDE_FBUSY flag to be set.
DMLERR_DATAACKTIMEOUTA request for a synchronous data transaction has timed out.
DMLERR_DLL_NOT_INITIALIZEDA DDEML function was called without first calling the DdeInitialize function, or an invalid instance identifier was passed to a DDEML function.
DMLERR_DLL_USAGEAn application initialized as APPCLASS_MONITOR has attempted to perform a Dynamic Data Exchange (DDE) transaction, or an application initialized as APPCMD_CLIENTONLY has attempted to perform server transactions.
DMLERR_EXECACKTIMEOUTA request for a synchronous execute transaction has timed out.
DMLERR_INVALIDPARAMETERA parameter failed to be validated by the DDEML. Some of the possible causes follow:
The application used a data handle initialized with a different item name handle than was required by the transaction.
The application used a data handle that was initialized with a different clipboard data format than was required by the transaction.
The application used a client-side conversation handle with a server-side function or vice versa.
The application used a freed data handle or string handle.
More than one instance of the application used the same object.
DMLERR_LOW_MEMORYA DDEML application has created a prolonged race condition (in which the server application outruns the client), causing large amounts of memory to be consumed.
DMLERR_MEMORY_ERRORA memory allocation has failed.
DMLERR_NO_CONV_ESTABLISHEDA client's attempt to establish a conversation has failed.
DMLERR_NOTPROCESSEDA transaction has failed.
DMLERR_POKEACKTIMEOUTA request for a synchronous poke transaction has timed out.
DMLERR_POSTMSG_FAILEDAn internal call to the PostMessage function has failed.
DMLERR_REENTRANCYAn application instance with a synchronous transaction already in progress attempted to initiate another synchronous transaction, or the DdeEnableCallback function was called from within a DDEML callback function.
DMLERR_SERVER_DIEDA server-side transaction was attempted on a conversation terminated by the client, or the server terminated before completing a transaction.
DMLERR_SYS_ERRORAn internal error has occurred in the DDEML.
DMLERR_UNADVACKTIMEOUTA request to end an advise transaction has timed out.
DMLERR_UNFOUND_QUEUE_IDAn invalid transaction identifier was passed to a DDEML function. Once the application has returned from an XTYP_XACT_COMPLETE callback, the transaction identifier for that callback function is no longer valid.
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 , DdeEnableCallback , DdeInitialize , PostMessage
==原始网址==http://msdn.microsoft.com/en-us/library/ms648755(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:23:58