public static interface DdemlUtil.IDdeConnection
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
abandonTransaction(int transactionId)
Abandons the specified asynchronous transaction and releases all
resources associated with the transaction.
|
void |
abandonTransactions()
Abandons all transactions of this conversation and releases all
resources associated with the transaction.
|
void |
advstart(Ddeml.HSZ item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
void |
advstart(java.lang.String item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
void |
advstop(Ddeml.HSZ item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
A client uses the XTYP_ADVSTOP transaction to end an advise loop with
a server.
|
void |
advstop(java.lang.String item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
A client uses the XTYP_ADVSTOP transaction to end an advise loop with
a server.
|
Ddeml.HDDEDATA |
clientTransaction(Pointer data,
int dataLength,
Ddeml.HSZ item,
int wFmt,
int transaction,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
Ddeml.HDDEDATA |
clientTransaction(Pointer data,
int dataLength,
java.lang.String item,
int wFmt,
int transaction,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
void |
close()
Terminates a conversation started by either the DdeConnect or
DdeConnectList function and invalidates the specified conversation
handle.
|
boolean |
enableCallback(int wCmd)
Enables or disables transactions for a specific conversation or for
all conversations currently established by the calling application.
|
void |
execute(java.lang.String executeString,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Run an XTYP_EXECUTE client transaction.
|
Ddeml.HCONV |
getConv() |
void |
impersonateClient()
Impersonates a Dynamic Data Exchange (DDE) client application in a
DDE client conversation.
|
void |
poke(Pointer data,
int dataLength,
Ddeml.HSZ item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Run an XTYP_POKE client transaction
|
void |
poke(Pointer data,
int dataLength,
java.lang.String item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Run an XTYP_POKE client transaction
|
Ddeml.CONVINFO |
queryConvInfo(int idTransaction)
Retrieves information about a Dynamic Data Exchange (DDE) transaction
and about the conversation in which the transaction takes place.
|
void |
reconnect()
Enables a client Dynamic Data Exchange Management Library (DDEML)
application to attempt to reestablish a conversation with a service
that has terminated a conversation with the client.
|
Ddeml.HDDEDATA |
request(Ddeml.HSZ item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
Ddeml.HDDEDATA |
request(java.lang.String item,
int wFmt,
int timeout,
WinDef.DWORDByReference result,
BaseTSD.DWORD_PTR userHandle)
Begins a data transaction between a client and a server.
|
void |
setUserHandle(int id,
BaseTSD.DWORD_PTR hUser)
Associates an application-defined value with a conversation handle or
a transaction identifier.
|
Ddeml.HCONV getConv()
void execute(java.lang.String executeString, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
executeString
- The string passed to the server for executiontimeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transaction
If an error occurs, a DdemlException is raised with the appropriate error code:
void poke(Pointer data, int dataLength, Ddeml.HSZ item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
data
- The beginning of the data the client must pass to the
server.
Optionally, an application can specify the data handle (HDDEDATA) to pass to the server and in that case the cbData parameter should be set to -1. This parameter is required only if the wType parameter is XTYP_EXECUTE or XTYP_POKE. Otherwise, this parameter should be NULL.
For the optional usage of this parameter, XTYP_POKE transactions where pData is a data handle, the handle must have been created by a previous call to the DdeCreateDataHandle function, employing the same data format specified in the wFmt parameter.
dataLength
- The length, in bytes, of the data pointed to by the
pData parameter, including the terminating NULL, if the data is a
string. A value of -1 indicates that pData is a data handle that
identifies the data being sent.item
- A handle to the data item for which data is being
exchanged during the transaction. This handle must have been created
by a previous call to the DdeCreateStringHandle function. This
parameter is ignored (and should be set to 0L) if the wType parameter
is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter does not pass data or is XTYP_EXECUTE, this parameter should be zero.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.userHandle
- data to associate with the transactionresult
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.
If an error occurs, a DdemlException is raised with the appropriate error code:
void poke(Pointer data, int dataLength, java.lang.String item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
data
- The beginning of the data the client must pass to the
server.
Optionally, an application can specify the data handle (HDDEDATA) to pass to the server and in that case the cbData parameter should be set to -1. This parameter is required only if the wType parameter is XTYP_EXECUTE or XTYP_POKE. Otherwise, this parameter should be NULL.
For the optional usage of this parameter, XTYP_POKE transactions where pData is a data handle, the handle must have been created by a previous call to the DdeCreateDataHandle function, employing the same data format specified in the wFmt parameter.
dataLength
- The length, in bytes, of the data pointed to by the
pData parameter, including the terminating NULL, if the data is a
string. A value of -1 indicates that pData is a data handle that
identifies the data being sent.item
- The data item for which data is being exchanged during
the transaction. This parameter is ignored (and should be set to NULL)
if the wType parameter is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter does not pass data or is XTYP_EXECUTE, this parameter should be zero.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.userHandle
- data to associate with the transactionresult
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.
If an error occurs, a DdemlException is raised with the appropriate error code:
Ddeml.HDDEDATA request(Ddeml.HSZ item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- A handle to the data item for which data is being
exchanged during the transaction. This handle must have been created
by a previous call to the DdeCreateStringHandle function. This
parameter is ignored (and should be set to 0L) if the wType parameter
is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transactionIf an error occurs, a DdemlException is raised with the appropriate error code:
Ddeml.HDDEDATA request(java.lang.String item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- The data item for which data is being exchanged during
the transaction. This parameter is ignored (and should be set to NULL)
if the wType parameter is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transactionIf an error occurs, a DdemlException is raised with the appropriate error code:
Ddeml.HDDEDATA clientTransaction(Pointer data, int dataLength, Ddeml.HSZ item, int wFmt, int transaction, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
data
- The beginning of the data the client must pass to the
server.
Optionally, an application can specify the data handle (HDDEDATA) to pass to the server and in that case the cbData parameter should be set to -1. This parameter is required only if the wType parameter is XTYP_EXECUTE or XTYP_POKE. Otherwise, this parameter should be NULL.
For the optional usage of this parameter, XTYP_POKE transactions where pData is a data handle, the handle must have been created by a previous call to the DdeCreateDataHandle function, employing the same data format specified in the wFmt parameter.
dataLength
- The length, in bytes, of the data pointed to by the
pData parameter, including the terminating NULL, if the data is a
string. A value of -1 indicates that pData is a data handle that
identifies the data being sent.item
- A handle to the data item for which data is being
exchanged during the transaction. This handle must have been created
by a previous call to the DdeCreateStringHandle function. This
parameter is ignored (and should be set to 0L) if the wType parameter
is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter does not pass data or is XTYP_EXECUTE, this parameter should be zero.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
transaction
- The transaction type. This parameter can be one of the
following values.
Value | Meaning |
---|---|
XTYP_ADVSTART | Begins an advise loop. Any number of
distinct advise loops can exist within a conversation. An application
can alter the advise loop type by combining the XTYP_ADVSTART
transaction type with one or more of the following flags:
|
XTYP_ADVSTOP | Ends an advise loop. |
XTYP_EXECUTE | Begins an execute transaction. |
XTYP_POKE | Begins a poke transaction. |
XTYP_REQUEST | Begins a request transaction. |
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transactionIf an error occurs, a DdemlException is raised with the appropriate error code:
Ddeml.HDDEDATA clientTransaction(Pointer data, int dataLength, java.lang.String item, int wFmt, int transaction, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
data
- The beginning of the data the client must pass to the
server.
Optionally, an application can specify the data handle (HDDEDATA) to pass to the server and in that case the cbData parameter should be set to -1. This parameter is required only if the wType parameter is XTYP_EXECUTE or XTYP_POKE. Otherwise, this parameter should be NULL.
For the optional usage of this parameter, XTYP_POKE transactions where pData is a data handle, the handle must have been created by a previous call to the DdeCreateDataHandle function, employing the same data format specified in the wFmt parameter.
dataLength
- The length, in bytes, of the data pointed to by the
pData parameter, including the terminating NULL, if the data is a
string. A value of -1 indicates that pData is a data handle that
identifies the data being sent.item
- The data item for which data is being exchanged during
the transaction. This parameter is ignored (and should be set to NULL)
if the wType parameter is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.
If the transaction specified by the wType parameter does not pass data or is XTYP_EXECUTE, this parameter should be zero.
If the transaction specified by the wType parameter references non-execute DDE data ( XTYP_POKE, XTYP_ADVSTART, XTYP_ADVSTOP, XTYP_REQUEST), the wFmt value must be either a valid predefined (CF_) DDE format or a valid registered clipboard format.
transaction
- The transaction type. This parameter can be one of the
following values.
Value | Meaning |
---|---|
XTYP_ADVSTART | Begins an advise loop. Any number of
distinct advise loops can exist within a conversation. An application
can alter the advise loop type by combining the XTYP_ADVSTART
transaction type with one or more of the following flags:
|
XTYP_ADVSTOP | Ends an advise loop. |
XTYP_EXECUTE | Begins an execute transaction. |
XTYP_POKE | Begins a poke transaction. |
XTYP_REQUEST | Begins a request transaction. |
timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transactionIf an error occurs, a DdemlException is raised with the appropriate error code:
void advstart(Ddeml.HSZ item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- A handle to the data item for which data is being
exchanged during the transaction. This handle must have been created
by a previous call to the DdeCreateStringHandle function. This
parameter is ignored (and should be set to 0L) if the wType parameter
is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transaction
If an error occurs, a DdemlException is raised with the appropriate error code:
void advstart(java.lang.String item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- The data item for which data is being exchanged during
the transaction. This parameter is ignored (and should be set to NULL)
if the wType parameter is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transaction
If an error occurs, a DdemlException is raised with the appropriate error code:
void advstop(Ddeml.HSZ item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- A handle to the data item for which data is being
exchanged during the transaction. This handle must have been created
by a previous call to the DdeCreateStringHandle function. This
parameter is ignored (and should be set to 0L) if the wType parameter
is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transaction
If an error occurs, a DdemlException is raised with the appropriate error code:
void advstop(java.lang.String item, int wFmt, int timeout, WinDef.DWORDByReference result, BaseTSD.DWORD_PTR userHandle)
item
- The data item for which data is being exchanged during
the transaction. This parameter is ignored (and should be set to NULL)
if the wType parameter is XTYP_EXECUTE.wFmt
- The standard clipboard format in which the data item is
being submitted or requested.timeout
- The maximum amount of time, in milliseconds, that
the client will wait for a response from the server application in a
synchronous transaction. This parameter should be TIMEOUT_ASYNC for
asynchronous transactions.result
- A pointer to a variable that receives the result of
the transaction. An application that does not check the result can
use NULL for this value. For synchronous transactions, the low-order
word of this variable contains any applicable DDE_ flags resulting
from the transaction. This provides support for applications
dependent on DDE_APPSTATUS bits. It is, however, recommended that
applications no longer use these bits because they may not be
supported in future versions of the Dynamic Data Exchange Management
Library (DDEML). For asynchronous transactions, this variable is
filled with a unique transaction identifier for use with the
DdeAbandonTransaction function and the XTYP_XACT_COMPLETE
transaction.userHandle
- data to associate with the transaction
If an error occurs, a DdemlException is raised with the appropriate error code:
void abandonTransaction(int transactionId)
transactionId
- The identifier of the transaction to be
abandoned. If this parameter is 0L, all active transactions in the
specified conversation are abandoned.
If the method fails a DdeException will be raised with the corresponding errorCode:
void abandonTransactions()
If the method fails a DdeException will be raised with the corresponding errorCode:
void impersonateClient()
void close()
Note: This wraps the DdeDisconnect function and aligns the name with the Closable-wording.
If the method fails a DdeException will be raised with the corresponding errorCode:
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
void reconnect()
If the method fails a DdeException will be raised with the corresponding errorCode:
boolean enableCallback(int wCmd)
wCmd
- The function code. This parameter can be one of the
following values.
Value | Meaning |
---|---|
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:
A client application can disable the following transactions:
|
EC_QUERYWAITING | Determines whether any transactions are in the queue for the specified conversation. |
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.
If the method fails a DdeException will be raised with the corresponding errorCode:
void setUserHandle(int id, BaseTSD.DWORD_PTR hUser) throws DdemlUtil.DdemlException
id
- The transaction identifier to associate with the value
specified by the hUser parameter. An application should set this
parameter to QID_SYNC to associate hUser with the conversation
identified by the hConv parameter.hUser
- The value to be associated with the conversation handle.
If the method fails a DdeException will be raised with the corresponding errorCode:
DdemlUtil.DdemlException
Ddeml.CONVINFO queryConvInfo(int idTransaction) throws DdemlUtil.DdemlException
idTransaction
- The transaction. For asynchronous transactions,
this parameter should be a transaction identifier returned by the
DdeClientTransaction function. For synchronous transactions, this
parameter should be QID_SYNC.If the method fails a DdeException will be raised with the corresponding errorCode:
DdemlUtil.DdemlException