网站首页  词典首页

请输入您要查询的函数:

 

术语 ddecallback
释义 DdeCallback
语法:
HDDEDATA CALLBACK DdeCallback( UINT uType,
UINT uFmt,
HCONV hconv,
HSZ hsz1,
HSZ hsz2,
HDDEDATA hdata,
ULONG_PTR dwData1,
ULONG_PTR dwData2
);
DdeCallback功能
该DdeCallback函数是一个应用程序定义的回调函数与动态数据交换管理库(DDEML的)函数使用。它处理动态数据交换(DDE)的交易。在PFNCALLBACK类型定义一个指向这个回调函数。 DdeCallback是一个应用程序的占位符定义函数的名称。
参数
uType
[in]指定当前交易类型。此参数由一个交易类的旗帜和交易类型标志的组合。下表描述了每个类的交易,并提供了每个类的交易类型的列表。有关的具体交易类型的信息,请参阅该类型的个人说明。
XCLASS_BOOL
阿DDE回调函数应返回TRUE或FALSE当它完成处理的交易属于这一类。在XCLASS_BOOL交易类包括下列类型:
XTYP_ADVSTART
XTYP_CONNECT
XCLASS_DATA
一个DDE回调函数应返回一个DDE处理的CBR_BLOCK返回代码,或NULL时完成处理的交易属于这一类。在XCLASS_DATA交易类包括下列类型:
XTYP_ADVREQ
XTYP_REQUEST
XTYP_WILDCONNECT
XCLASS_FLAGS
一个DDE回调函数应返回DDE_FACK,DDE_FBUSY,或DDE_FNOTPROCESSED当它完成处理的交易属于这一类。在XCLASS_FLAGS交易类包括下列类型:
XTYP_ADVDATA
XTYP_EXECUTE
XTYP_POKE
XCLASS_NOTIFICATION
交易类型属于这一阶层的通知之用。从回调函数的返回值将被忽略。在XCLASS_NOTIFICATION交易类包括下列类型:
XTYP_ADVSTOP
XTYP_CONNECT_CONFIRM
XTYP_DISCONNECT
XTYP_ERROR
XTYP_MONITOR
XTYP_REGISTER
XTYP_XACT_COMPLETE
XTYP_UNREGISTER
uFmt
[in]指定在其中的数据发送或接收的格式。
hconv
[in]处理当前与交易相关的谈话。
hsz1
[in]句柄字符串。这个参数的含义取决于当前的交易类型。对于此参数的含义,见交易类型的描述。
hsz2
[in]句柄字符串。这个参数的含义取决于当前的交易类型。对于此参数的含义,见交易类型的描述。
hdata
[in]句柄DDE数据。这个参数的含义取决于当前的交易类型。对于此参数的含义,见交易类型的描述。
dwData1
[in]指定交易的具体数据。对于此参数的含义,见交易类型的描述。
dwData2
[in]指定交易的具体数据。对于此参数的含义,见交易类型的描述。
返回值
返回值取决于交易类。如需有关返回值的信息,了解各交易类型的说明。
备注
回调函数被调用异步的交易不涉及建立或会话终止。应用程序不经常接收传入的消息将减少DDE的性能,因为动态数据交换管理库(DDEML的)使用邮件发起交易。
应用程序必须注册在一个指定的指针调用函数的DdeInitialize函数的回调函数。
功能信息
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryNone
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,DdeEnableCallback,DdeInitialize
==英文原文==DdeCallback Function
The DdeCallback function is an application-defined callback function used with the Dynamic Data Exchange Management Library (DDEML) functions. It processes Dynamic Data Exchange (DDE) transactions. The PFNCALLBACK type defines a pointer to this callback function. DdeCallback is a placeholder for the application-defined function name.
Syntax
HDDEDATA CALLBACK DdeCallback( UINT uType,
UINT uFmt,
HCONV hconv,
HSZ hsz1,
HSZ hsz2,
HDDEDATA hdata,
ULONG_PTR dwData1,
ULONG_PTR dwData2
);
Parameters
uType
[in] Specifies the type of the current transaction. This parameter consists of a combination of transaction class flags and transaction type flags. The following table describes each of the transaction classes and provides a list of the transaction types in each class. For information about a specific transaction type, see the individual description of that type.
XCLASS_BOOL
A DDE callback function should return TRUE or FALSE when it finishes processing a transaction that belongs to this class. The XCLASS_BOOL transaction class consists of the following types:
XTYP_ADVSTART
XTYP_CONNECT
XCLASS_DATA
A DDE callback function should return a DDE handle, the CBR_BLOCK return code, or NULL when it finishes processing a transaction that belongs to this class. The XCLASS_DATA transaction class consists of the following types:
XTYP_ADVREQ
XTYP_REQUEST
XTYP_WILDCONNECT
XCLASS_FLAGS
A DDE callback function should return DDE_FACK, DDE_FBUSY, or DDE_FNOTPROCESSED when it finishes processing a transaction that belongs to this class. The XCLASS_FLAGS transaction class consists of the following types:
XTYP_ADVDATA
XTYP_EXECUTE
XTYP_POKE
XCLASS_NOTIFICATION
The transaction types that belong to this class are for notification purposes only. The return value from the callback function is ignored. The XCLASS_NOTIFICATION transaction class consists of the following types:
XTYP_ADVSTOP
XTYP_CONNECT_CONFIRM
XTYP_DISCONNECT
XTYP_ERROR
XTYP_MONITOR
XTYP_REGISTER
XTYP_XACT_COMPLETE
XTYP_UNREGISTER
uFmt
[in] Specifies the format in which data is sent or received.
hconv
[in] Handle to the conversation associated with the current transaction.
hsz1
[in] Handle to a string. The meaning of this parameter depends on the type of the current transaction. For the meaning of this parameter, see the description of the transaction type.
hsz2
[in] Handle to a string. The meaning of this parameter depends on the type of the current transaction. For the meaning of this parameter, see the description of the transaction type.
hdata
[in] Handle to DDE data. The meaning of this parameter depends on the type of the current transaction. For the meaning of this parameter, see the description of the transaction type.
dwData1
[in] Specifies transaction-specific data. For the meaning of this parameter, see the description of the transaction type.
dwData2
[in] Specifies transaction-specific data. For the meaning of this parameter, see the description of the transaction type.
Return Value
The return value depends on the transaction class. For more information about the return values, see descriptions of the individual transaction types.
Remarks
The callback function is called asynchronously for transactions that do not involve the creation or termination of conversations. An application that does not frequently accept incoming messages will have reduced DDE performance because the Dynamic Data Exchange Management Library (DDEML) uses messages to initiate transactions.
An application must register the callback function by specifying a pointer to the function in a call to the DdeInitialize function.
Function Information
HeaderDeclared in Ddeml.h, include Windows.h
Import libraryNone
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Dynamic Data Exchange Management Library Overview , DdeEnableCallback , DdeInitialize
==原始网址==http://msdn.microsoft.com/en-us/library/ms648742(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:22:35