术语 | ddeenablecallback |
释义 | DdeEnableCallback 语法: BOOL DdeEnableCallback( DWORD idInst, HCONV hConv, UINT wCmd ); DdeEnableCallback功能 该DdeEnableCallback功能启用或禁用特定的交谈交易,或由调用应用程序设立的所有会话。 参数 idInst [in]指定的应用实例标识符先前调用DdeInitialize函数获得。 hConv [in]句柄谈话启用或禁用。如果该参数为NULL,则函数会影响所有的谈话。 风修正子母炸弹 [in]指定函数的代码。此参数可以是下列值之一。 EC_ENABLEALL 启用指定的会话中的所有交易。 EC_ENABLEONE 启用指定的交谈一笔交易。 EC_DISABLE Disables all blockable transactions for the specified conversation. 服务器应用程序可以禁用以下交易: XTYP_ADVSTART XTYP_ADVSTOP XTYP_EXECUTE XTYP_POKE XTYP_REQUEST 客户端应用程序可以禁用以下交易: XTYP_ADVDATA XTYP_XACT_COMPLETE EC_QUERYWAITING 确定是否有任何交易,指定谈话队列。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 如果风修正子母炸弹参数EC_QUERYWAITING,申请交易队列包含一个或多个不被处理,返回值为TRUE未加工的交易,否则为FALSE。 该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一: DMLERR_DLL_NOT_INITIALIZED DMLERR_INVALIDPARAMETER DMLERR_NO_ERROR 备注 应用程序可以禁用交易中的特定会话通过返回其动态数据交换(DDE)CBR_BLOCK回调函数的返回代码。当您重新启用使用DdeEnableCallback函数的谈话中,操作系统生成相同的交易过程,在谈话时被禁用。 使用EC_QUERYWAITING标志不改变使该对话的状态,不会导致交易,可以在呼叫的范围内DdeEnableCallback印发。 如果DdeEnableCallback是调用EC_QUERYWAITING和函数返回非零,应用程序应设法尽快让消息处理,其回调,或使返回回调。这种结果并不能保证以后的回调将。调用与EC_QUERYWAITING DdeEnableCallback让一个应用程序阻止回调确定是否有任何交易的等待阻塞的谈话。当然,即使这样的调用返回零,应用过程中应始终及时的信息。 功能信息 最低DLL版本 user32.dll 在Ddeml.h HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 参见 动态数据交换管理库概况,DdeConnect,DdeConnectList,DdeDisconnect,DdeInitialize ==英文原文==DdeEnableCallback Function The DdeEnableCallback function enables or disables transactions for a specific conversation or for all conversations currently established by the calling application. Syntax BOOL DdeEnableCallback( DWORD idInst, HCONV hConv, UINT wCmd ); Parameters idInst [in] Specifies the application-instance identifier obtained by a previous call to the DdeInitialize function. hConv [in] Handle to the conversation to enable or disable. If this parameter is NULL, the function affects all conversations. wCmd [in] Specifies the function code. This parameter can be one of the following values. EC_ENABLEALL Enables all transactions for the specified conversation. EC_ENABLEONE Enables one transaction for the specified conversation. EC_DISABLE Disables all blockable transactions for the specified conversation. A server application can disable the following transactions: XTYP_ADVSTART XTYP_ADVSTOP XTYP_EXECUTE XTYP_POKE XTYP_REQUEST A client application can disable the following transactions: XTYP_ADVDATA XTYP_XACT_COMPLETE EC_QUERYWAITING Determines whether any transactions are in the queue for the specified conversation. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. If the wCmd parameter is EC_QUERYWAITING, and the application transaction queue contains one or more unprocessed transactions that are not being processed, the return value is TRUE; otherwise, it is FALSE. 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 Remarks An application can disable transactions for a specific conversation by returning the CBR_BLOCK return code from its Dynamic Data Exchange (DDE) callback function. When you reenable the conversation by using the DdeEnableCallback function, the operating system generates the same transaction that was in process when the conversation was disabled. Using the EC_QUERYWAITING flag does not change the enable state of the conversation and does not cause transactions to be issued within the context of the call to DdeEnableCallback. If DdeEnableCallback is called with EC_QUERYWAITING and the function returns a nonzero, an application should try to quickly allow message processing, return from its callback, or enable callbacks. Such a result does not guarantee that subsequent callbacks will be made. Calling DdeEnableCallback with EC_QUERYWAITING lets an application with blocked callbacks determine whether there are any transactions pending on the blocked conversation. Of course, even if such a call returns zero, an application should always process messages in a timely manner. 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 , DdeConnect , DdeConnectList , DdeDisconnect , DdeInitialize ==原始网址==http://msdn.microsoft.com/en-us/library/ms648751(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。