|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| ddeml.h
| Unicode
| No
| Platform Notes
| None
|
|
|
XTYP_CONNECT
XTYP_CONNECT
A dynamic data exchange (DDE) server callback function receives the
XTYP_CONNECT transaction when a client specifies a service name that the server supports
and a topic name that is not NULL in a call to the DdeConnect function.
Parameters
uFmt
Not used.
hconv
Not used.
hsz1
Identifies the topic name.
hsz2
Identifies the service name.
hdata
Not used.
dwData1
Points to a CONVCONTEXT structure that contains context information for the conversation. If the
client is not a Dynamic Data Exchange Management Library (DDEML) application, this
parameter is 0.
dwData2
Specifies whether the client is the same application instance as the server.
If the parameter is 1, the client is the same instance. If the parameter is 0,
the client is a different instance.
Return Values
A server callback function should return TRUE to allow the client to establish
a conversation on the specified service name and topic name pair, or the
function should return FALSE to deny the conversation. If the callback function
returns TRUE and a conversation is successfully established, the system passes the
conversation handle to the server by issuing an XTYP_CONNECT_CONFIRM
transaction to the server's callback function (unless the server specified the
CBF_SKIP_CONNECT_CONFIRMS flag in the DdeInitialize function).
Remarks
This transaction is filtered if the server application specified the
CBF_FAIL_CONNECTIONS flag in the DdeInitialize function.
A server cannot block this transaction type; the CBR_BLOCK return code is
ignored.
See Also
CONVCONTEXT, DdeConnect, DdeInitialize
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|