|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user-defined
| Header File
| ddeml.h
| Unicode
| No
| Platform Notes
| PFNCALLBACK
|
|
|
DdeCallback
The DdeCallback function is an application-defined callback function that processes dynamic
data exchange (DDE) transactions sent to the function in response to Dynamic Data Exchange Management Library (DDEML) calls by other applications.
HDDEDATA CALLBACK DdeCallback(
UINT uType,
| // transaction type
| UINT uFmt,
| // clipboard data format
| HCONV hconv,
| // handle to the conversation
| HSZ hsz1,
| // handle to a string
| HSZ hsz2,
| // handle to a string
| HDDEDATA hdata,
| // handle to a global memory object
| DWORD dwData1,
| // transaction-specific data
| DWORD dwData2
| // transaction-specific data
| );
|
|
Parameters
uType
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.
Class
| Meaning
| 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
Specifies the format in which data is sent or received.
hconv
Identifies the conversation associated with the current transaction.
hsz1
Identifies 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
Identifies 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
Identifies 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
Specifies transaction-specific data. For the meaning of this parameter, see
the description of the transaction type.
dwData2
Specifies transaction-specific data. For the meaning of this parameter, see
the description of the transaction type.
Return Values
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 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.
DdeCallback is a placeholder for the application-defined or library-defined function
name.
See Also
DdeEnableCallback, DdeInitialize
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|