AltCallingConvention
, Library
, StdCall
, StdCallLibrary
Bindings for the DDEML - Dynamic Data Exchange Management Library (DDEML)
Verschachtelte Klassen
static class
static class
Contains information about a Dynamic Data Exchange (DDE) conversation.
static interface
static class
static class
static class
static class
static class
static class
static class
Contains information about the current Dynamic Data Exchange (DDE) transaction.
static class
Contains information about a Dynamic Data Exchange (DDE) conversation.
static class
Contains information about the current Dynamic Data Exchange (DDE) error.
static class
Contains information about a Dynamic Data Exchange (DDE) string handle.
static class
Contains information about a Dynamic Data Exchange (DDE) advise loop.
static class
Felder
static final int
static final int
Makes it possible for the application to monitor DDE activity in the system.
static final int
Registers the application as a standard (nonmonitoring) DDEML application.
static final int
Prevents the application from becoming a server in a DDE conversation.
static final int
static final int
static final int
static final int
static final int
Prevents the callback function from receiving server transactions.
static final int
static final int
Prevents the callback function from receiving
XTYP_EXECUTE
transactions.
static final int
Prevents the callback function from receiving
XTYP_POKE
transactions.
static final int
Prevents the callback function from receiving
XTYP_REQUEST
transactions.
static final int
Prevents the callback function from receiving
XTYP_CONNECT
transactions from the application's own instance.
static final int
Prevents the callback function from receiving any notifications.
static final int
static final int
Prevents the callback function from receiving
XTYP_DISCONNECT
notifications.
static final int
Prevents the callback function from receiving
XTYP_REGISTER
notifications.
static final int
Prevents the callback function from receiving
XTYP_UNREGISTER
notifications.
static final int
default codepage for windows & old DDE convs.
static final int
static final int
default codepage for usage from java
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
A request for a synchronous advise transaction has timed out.
static final int
The response to the transaction caused the
DDE_FBUSY
flag to be set.
static final int
A request for a synchronous data transaction has timed out.
static final int
static final int
An application initialized as
APPCLASS_MONITOR
has attempted to perform a DDE transaction, or an application initialized as
APPCMD_CLIENTONLY
has attempted to perform server transactions.
static final int
A request for a synchronous execute transaction has timed out.
static final int
static final int
A parameter failed to be validated by the DDEML.
static final int
static final int
A DDEML application has created a prolonged race condition (in which the server application outruns the client), causing large amounts of memory to be consumed.
static final int
A memory allocation has failed.
static final int
A client's attempt to establish a conversation has failed.
static final int
static final int
A transaction has failed.
static final int
A request for a synchronous poke transaction has timed out.
static final int
An internal call to the PostMessage function has failed.
static final int
static final int
A server-side transaction was attempted on a conversation terminated by the client, or the server terminated before completing a transaction.
static final int
An internal error has occurred in the DDEML.
static final int
A request to end an advise transaction has timed out.
static final int
An invalid transaction identifier was passed to a DDEML function.
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Notifies the callback function whenever a transaction is sent to any DDE callback function in the system.
static final int
Notifies the callback function whenever a conversation is established or terminated.
static final int
Notifies the callback function whenever a DDE error occurs.
static final int
Notifies the callback function whenever a DDE application creates, frees, or increments the usage count of a string handle or whenever a string handle is freed as a result of a call to the
DdeUninitialize(int)
function.
static final int
Notifies the callback function whenever an advise loop is started or ended.
static final int
static final int
Notifies the callback function whenever the system or an application posts a DDE message.
static final int
Notifies the callback function whenever the system or an application sends a DDE message.
static final int
static final int
Pseudo Transaction ID constant for the synchronous transaction
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Timeout constants for asynchronous requests
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Informs the client that the value of the data item has changed.
static final int
The XTYP_ADVREQ transaction informs the server that an advise transaction is outstanding on the specified topic name and item name pair and that data corresponding to the topic name and item name pair has changed.
static final int
A client uses the XTYP_ADVSTART transaction to establish an advise loop with a server.
static final int
A client uses the XTYP_ADVSTOP transaction to end an advise loop with a server.
static final int
A client uses the XTYP_CONNECT transaction to establish a conversation.
static final int
A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives the XTYP_CONNECT_CONFIRM transaction to confirm that a conversation has been established with a client and to provide the server with the conversation handle.
static final int
An application's Dynamic Data Exchange (DDE) callback function, DdeCallback, receives the XTYP_DISCONNECT transaction when the application's partner in a conversation uses the
DdeDisconnect(com.sun.jna.platform.win32.Ddeml.HCONV)
function to terminate the conversation.
static final int
A Dynamic Data Exchange (DDE) callback function, DdeCallback, receives the XTYP_ERROR transaction when a critical error occurs.
static final int
A client uses the XTYP_EXECUTE transaction to send a command string to the server.
static final int
static final int
A Dynamic Data Exchange (DDE) debugger's DDE callback function, DdeCallback, receives the XTYP_MONITOR transaction whenever a DDE event occurs in the system.
static final int
A client uses the XTYP_POKE transaction to send unsolicited data to the server.
static final int
static final int
A client uses the XTYP_REQUEST transaction to request data from a server.
static final int
static final int
static final int
Enables a client to establish a conversation on each of the server's service name and topic name pairs that match the specified service name and topic name.
static final int
A Dynamic Data Exchange (DDE) client callback function, DdeCallback, receives the XTYP_XACT_COMPLETE transaction when an asynchronous transaction, initiated by a call to the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function, has completed.
static final int
static final int
static final int
boolean
Abandons the specified asynchronous transaction and releases all resources associated with the transaction.
Provides access to the data in the specified Dynamic Data Exchange (DDE) object.
Adds data to the specified Dynamic Data Exchange (DDE) object.
Begins a data transaction between a client and a server.
Establishes a conversation with a server application that supports the specified service name and topic name pair.
Establishes a conversation with all server applications that support the specified service name and topic name pair.
Creates a Dynamic Data Exchange (DDE) object and fills the object with data from the specified buffer.
Creates a handle that identifies the specified string.
boolean
boolean
Destroys the specified conversation list and terminates all conversations associated with the list.
boolean
Enables or disables transactions for a specific conversation or for all conversations currently established by the calling application.
boolean
Frees a Dynamic Data Exchange (DDE) object and deletes the data handle associated with the object.
boolean
Frees a string handle in the calling application.
int
Copies data from the specified Dynamic Data Exchange (DDE) object to the specified local buffer.
int
boolean
Impersonates a Dynamic Data Exchange (DDE) client application in a DDE client conversation.
int
Registers an application with the Dynamic Data Exchange Management Library (DDEML).
boolean
Increments the usage count associated with the specified handle.
Registers or unregisters the service names a Dynamic Data Exchange (DDE) server supports.
boolean
Causes the system to send an
XTYP_ADVREQ
transaction to the calling (server) application's Dynamic Data Exchange (DDE) callback function for each client with an active advise loop on the specified topic and item.
int
Retrieves information about a Dynamic Data Exchange (DDE) transaction and about the conversation in which the transaction takes place.
Retrieves the next conversation handle in the specified conversation list.
int
Copies text associated with a string handle into a buffer.
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.
boolean
Associates an application-defined value with a conversation handle or a transaction identifier.
boolean
Unaccesses a Dynamic Data Exchange (DDE) object.
boolean
Frees all Dynamic Data Exchange Management Library (DDEML) resources associated with the calling application.
static final int XST_NULL
static final int XST_INCOMPLETE
static final int XST_CONNECTED
static final int XST_INIT1
static final int XST_INIT2
static final int XST_REQSENT
static final int XST_DATARCVD
static final int XST_POKESENT
static final int XST_POKEACKRCVD
static final int XST_EXECSENT
static final int XST_EXECACKRCVD
static final int XST_ADVSENT
static final int XST_UNADVSENT
static final int XST_ADVACKRCVD
static final int XST_UNADVACKRCVD
static final int XST_ADVDATASENT
static final int XST_ADVDATAACKRCVD
static final int CADV_LATEACK
static final int ST_CONNECTED
static final int ST_ADVISE
static final int ST_ISLOCAL
static final int ST_BLOCKED
static final int ST_CLIENT
static final int ST_TERMINATED
static final int ST_INLIST
static final int ST_BLOCKNEXT
static final int ST_ISSELF
static final int DDE_FACK
static final int DDE_FBUSY
static final int DDE_FDEFERUPD
static final int DDE_FACKREQ
static final int DDE_FRELEASE
static final int DDE_FREQUESTED
static final int DDE_FAPPSTATUS
static final int DDE_FNOTPROCESSED
static final int DDE_FACKRESERVED
static final int DDE_FADVRESERVED
static final int DDE_FDATRESERVED
static final int DDE_FPOKRESERVED
static final int MSGF_DDEMGR
static final int CP_WINANSI
default codepage for windows & old DDE convs.
static final int CP_WINUNICODE
default codepage for usage from java
static final int CP_WINNEUTRAL
static final int XTYPF_NOBLOCK
static final int XTYPF_NODATA
static final int XTYPF_ACKREQ
static final int XCLASS_MASK
static final int XCLASS_BOOL
static final int XCLASS_DATA
static final int XCLASS_FLAGS
static final int XCLASS_NOTIFICATION
static final int XTYP_ERROR
A Dynamic Data Exchange (DDE) callback function, DdeCallback, receives the XTYP_ERROR transaction when a critical error occurs.
Used Parameters
Remarks
An application cannot block this transaction type; the CBR_BLOCK return code is ignored. The Dynamic Data Exchange Management Library (DDEML) attempts to free memory by removing noncritical resources. An application that has blocked conversations should unblock them.
static final int XTYP_ADVDATA
Informs the client that the value of the data item has changed. The Dynamic Data Exchange (DDE) client callback function, DdeCallback, receives this transaction after establishing an advise loop with a server.
Used Parameters
XTYPF_NODATA
flag when it requested the advise loop.
Return value
A DDE callback function should return DDE_FACK
if it processes this transaction, DDE_FBUSY
if it is too busy to process this transaction, or DDE_FNOTPROCESSED
if it rejects this transaction.
Remarks
An application must not free the data handle obtained during this transaction. An application must, however, copy the data associated with the data handle if the application must process the data after the callback function returns. An application can use the DdeGetData(com.sun.jna.platform.win32.Ddeml.HDDEDATA, com.sun.jna.Pointer, int, int)
function to copy the data.
static final int XTYP_ADVREQ
The XTYP_ADVREQ transaction informs the server that an advise transaction is outstanding on the specified topic name and item name pair and that data corresponding to the topic name and item name pair has changed. The system sends this transaction to the Dynamic Data Exchange (DDE) callback function, DdeCallback, after the server calls the
DdePostAdvise(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ)
function.
Used Parameters
DdePostAdvise(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ)
function. The count is zero if the current XTYP_ADVREQ transaction is the last one. A server can use this count to determine whether to create an HDATA_APPOWNED data handle to the advise data.
The low-order word is set to CADV_LATEACK
if the DDEML issued the XTYP_ADVREQ transaction because of a late-arriving DDE_ACK message from a client being outrun by the server.
The high-order word is not used.
Return value
The server should first call the DdeCreateDataHandle(int, com.sun.jna.Pointer, int, int, com.sun.jna.platform.win32.Ddeml.HSZ, int, int)
function to create a data handle that identifies the changed data and then return the handle. The server should return NULL if it is unable to complete the transaction.
Remarks
A server cannot block this transaction type; the CBR_BLOCK return code is ignored.
static final int XTYP_ADVSTART
A client uses the XTYP_ADVSTART transaction to establish an advise loop with a server. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies XTYP_ADVSTART as the wType parameter of the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
Used Parameters
Return value
A server callback function should return TRUE to allow an advise loop on the specified topic name and item name pair, or FALSE to deny the advise loop. If the callback function returns TRUE, any subsequent calls to the DdePostAdvise(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ)
function by the server on the same topic name and item name pair causes the system to send XTYP_ADVREQ
transactions to the server.
Remarks
If a client requests an advise loop on a topic name, item name, and data format for an advise loop that is already established, the Dynamic Data Exchange Management Library (DDEML) does not create a duplicate advise loop but instead alters the advise loop flags (XTYPF_ACKREQ
and XTYPF_NODATA
) to match the latest request.
This transaction is filtered if the server application specified the CBF_FAIL_ADVISES
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
static final int XTYP_ADVSTOP
A client uses the XTYP_ADVSTOP transaction to end an advise loop with a server. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies XTYP_ADVSTOP in the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
Used Parameters
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_ADVISES
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
static final int XTYP_EXECUTE
A client uses the XTYP_EXECUTE transaction to send a command string to the server. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies XTYP_EXECUTE in the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
Used Parameters
Return value
A server callback function should return DDE_FACK
if it processes this transaction, DDE_FBUSY
if it is too busy to process this transaction, or DDE_FNOTPROCESSED
if it rejects this transaction.
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_EXECUTES
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
An application must free the data handle obtained during this transaction. An application must, however, copy the command string associated with the data handle if the application must process the string after the callback function returns. An application can use the DdeGetData(com.sun.jna.platform.win32.Ddeml.HDDEDATA, com.sun.jna.Pointer, int, int)
function to copy the data.
Because most client applications expect a server application to perform an XTYP_EXECUTE transaction synchronously, a server should attempt to perform all processing of the XTYP_EXECUTE transaction either from within the DDE callback function or by returning the CBR_BLOCK return code. If the hdata parameter is a command that instructs the server to terminate, the server should do so after processing the XTYP_EXECUTE transaction.
static final int XTYP_CONNECT
A client uses the XTYP_CONNECT transaction to establish a conversation. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this 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(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
function.
Used Parameters
Return value
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 function
).
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_CONNECTIONS
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
A server cannot block this transaction type; the CBR_BLOCK return code is ignored.
static final int XTYP_CONNECT_CONFIRM
A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives the XTYP_CONNECT_CONFIRM transaction to confirm that a conversation has been established with a client and to provide the server with the conversation handle. The system sends this transaction as a result of a previous
XTYP_CONNECT
or
XTYP_WILDCONNECT
transaction.
Used Parameters
Remarks
This transaction is filtered if the server application specified the CBF_SKIP_CONNECT_CONFIRMS
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
A server cannot block this transaction type; the CBR_BLOCK return code is ignored.
static final int XTYP_XACT_COMPLETE
A Dynamic Data Exchange (DDE) client callback function, DdeCallback, receives the XTYP_XACT_COMPLETE transaction when an asynchronous transaction, initiated by a call to the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function, has completed.
Used Parameters
Remarks
An application must not free the data handle obtained during this transaction. An application must, however, copy the data associated with the data handle if the application must process the data after the callback function returns. An application can use the DdeGetData(com.sun.jna.platform.win32.Ddeml.HDDEDATA, com.sun.jna.Pointer, int, int)
function to copy the data.
static final int XTYP_POKE
A client uses the XTYP_POKE transaction to send unsolicited data to the server. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies XTYP_POKE in the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
Used Parameters
Return value
A server callback function should return the DDE_FACK
flag if it processes this transaction, the DDE_FBUSY
flag if it is too busy to process this transaction, or the DDE_FNOTPROCESSED
flag if it rejects this transaction.
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_POKES
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
static final int XTYP_REGISTER
static final int XTYP_REQUEST
A client uses the XTYP_REQUEST transaction to request data from a server. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies XTYP_REQUEST in the
DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
Used Parameters
Return value
The server should call the DdeCreateDataHandle(int, com.sun.jna.Pointer, int, int, com.sun.jna.platform.win32.Ddeml.HSZ, int, int)
function to create a data handle that identifies the data and then return the handle. The server should return NULL if it is unable to complete the transaction. If the server returns NULL, the client will receive a DDE_FNOTPROCESSED
flag.
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_REQUESTS
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
If responding to this transaction requires lengthy processing, the server can return the CBR_BLOCK return code to suspend future transactions on the current conversation and then process the transaction asynchronously. When the server has finished and the data is ready to pass to the client, the server can call the DdeEnableCallback(int, com.sun.jna.platform.win32.Ddeml.HCONV, int)
function to resume the conversation.
static final int XTYP_DISCONNECT
static final int XTYP_UNREGISTER
static final int XTYP_WILDCONNECT
Enables a client to establish a conversation on each of the server's service name and topic name pairs that match the specified service name and topic name. A Dynamic Data Exchange (DDE) server callback function, DdeCallback, receives this transaction when a client specifies a NULL service name, a NULL topic name, or both in a call to the
DdeConnect(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
or
DdeConnectList(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HCONVLIST, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
function.
Used Parameters
Return value
The server should return a data handle that identifies an array of HSZPAIR structures. The array should contain one structure for each service-name and topic-name pair that matches the service-name and topic-name pair requested by the client. The array must be terminated by a NULL string handle. The system sends the XTYP_CONNECT_CONFIRM
transaction to the server to confirm each conversation and to pass the conversation handles to the server. The server will not receive these confirmations if it specified the CBF_SKIP_CONNECT_CONFIRMS
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
The server should return NULL to refuse the XTYP_WILDCONNECT transaction.
Remarks
This transaction is filtered if the server application specified the CBF_FAIL_CONNECTIONS
flag in the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
A server cannot block this transaction type; the CBR_BLOCK return code is ignored.
static final int XTYP_MONITOR
A Dynamic Data Exchange (DDE) debugger's DDE callback function, DdeCallback, receives the XTYP_MONITOR transaction whenever a DDE event occurs in the system. To receive this transaction, an application must specify the
APPCLASS_MONITOR
value when it calls the
DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
Used Parameters
DdeAccessData(com.sun.jna.platform.win32.Ddeml.HDDEDATA, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function to obtain a pointer to the object.
MF_CALLBACKS
The system sent a transaction to a DDE callback function. The DDE object contains a MONCBSTRUCT structure that provides information about the transaction. MF_CONV
A DDE conversation was established or terminated. The DDE object contains a MONCONVSTRUCT structure that provides information about the conversation. MF_ERRORS
A DDE error occurred. The DDE object contains a MONERRSTRUCT structure that provides information about the error. MF_HSZ_INFO
A DDE application created, freed, or incremented the usage count of a string handle, or a string handle was freed as a result of a call to the DdeUninitialize(int)
function. The DDE object contains a MONHSZSTRUCT structure that provides information about the string handle. MF_LINKS
A DDE application started or stopped an advise loop. The DDE object contains a MONLINKSTRUCT structure that provides information about the advise loop. MF_POSTMSGS
The system or an application posted a DDE message. The DDE object contains a MONMSGSTRUCT structure that provides information about the message. MF_SENDMSGS
The system or an application sent a DDE message. The DDE object contains a MONMSGSTRUCT structure that provides information about the message.
Return value
If the callback function processes this transaction, it should return 0.
static final int XTYP_MASK
static final int XTYP_SHIFT
static final int TIMEOUT_ASYNC
Timeout constants for asynchronous requests
static final int QID_SYNC
Pseudo Transaction ID constant for the synchronous transaction
static final int DMLERR_NO_ERROR
static final int DMLERR_FIRST
static final int DMLERR_ADVACKTIMEOUT
A request for a synchronous advise transaction has timed out.
static final int DMLERR_BUSY
The response to the transaction caused the
DDE_FBUSY
flag to be set.
static final int DMLERR_DATAACKTIMEOUT
A request for a synchronous data transaction has timed out.
static final int DMLERR_DLL_NOT_INITIALIZED
static final int DMLERR_DLL_USAGE
An application initialized as
APPCLASS_MONITOR
has attempted to perform a DDE transaction, or an application initialized as
APPCMD_CLIENTONLY
has attempted to perform server transactions.
static final int DMLERR_EXECACKTIMEOUT
A request for a synchronous execute transaction has timed out.
static final int DMLERR_INVALIDPARAMETER
A parameter failed to be validated by the DDEML. Some of the possible causes follow:
static final int DMLERR_LOW_MEMORY
A DDEML application has created a prolonged race condition (in which the server application outruns the client), causing large amounts of memory to be consumed.
static final int DMLERR_MEMORY_ERROR
A memory allocation has failed.
static final int DMLERR_NOTPROCESSED
A transaction has failed.
static final int DMLERR_NO_CONV_ESTABLISHED
A client's attempt to establish a conversation has failed.
static final int DMLERR_POKEACKTIMEOUT
A request for a synchronous poke transaction has timed out.
static final int DMLERR_POSTMSG_FAILED
An internal call to the PostMessage function has failed.
static final int DMLERR_REENTRANCY
static final int DMLERR_SERVER_DIED
A server-side transaction was attempted on a conversation terminated by the client, or the server terminated before completing a transaction.
static final int DMLERR_SYS_ERROR
An internal error has occurred in the DDEML.
static final int DMLERR_UNADVACKTIMEOUT
A request to end an advise transaction has timed out.
static final int DMLERR_UNFOUND_QUEUE_ID
An invalid transaction identifier was passed to a DDEML function. Once the application has returned from an
XTYP_XACT_COMPLETE
callback, the transaction identifier for that callback function is no longer valid.
static final int DMLERR_LAST
static final int HDATA_APPOWNED
static final int CBF_FAIL_SELFCONNECTIONS
Prevents the callback function from receiving
XTYP_CONNECT
transactions from the application's own instance. This flag prevents an application from establishing a DDE conversation with its own instance. An application should use this flag if it needs to communicate with other instances of itself but not with itself.
static final int CBF_FAIL_CONNECTIONS
static final int CBF_FAIL_ADVISES
static final int CBF_FAIL_EXECUTES
static final int CBF_FAIL_POKES
static final int CBF_FAIL_REQUESTS
static final int CBF_FAIL_ALLSVRXACTIONS
Prevents the callback function from receiving server transactions. The system returns
DDE_FNOTPROCESSED
to each client that sends a transaction to this application. This flag is equivalent to combining all CBF_FAIL_ flags.
static final int CBF_SKIP_CONNECT_CONFIRMS
static final int CBF_SKIP_REGISTRATIONS
Prevents the callback function from receiving
XTYP_REGISTER
notifications.
static final int CBF_SKIP_UNREGISTRATIONS
Prevents the callback function from receiving
XTYP_UNREGISTER
notifications.
static final int CBF_SKIP_DISCONNECTS
Prevents the callback function from receiving
XTYP_DISCONNECT
notifications.
static final int CBF_SKIP_ALLNOTIFICATIONS
Prevents the callback function from receiving any notifications. This flag is equivalent to combining all CBF_SKIP_ flags.
static final int APPCMD_CLIENTONLY
Prevents the application from becoming a server in a DDE conversation. The application can only be a client. This flag reduces consumption of resources by the DDEML. It includes the functionality of the
CBF_FAIL_ALLSVRXACTIONS
static final int APPCMD_FILTERINITS
Prevents the DDEML from sending
XTYP_CONNECT
and
XTYP_WILDCONNECT
transactions to the application until the application has created its string handles and registered its service names or has turned off filtering by a subsequent call to the
DdeNameService(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, int)
or
DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function. This flag is always in effect when an application calls
DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
for the first time, regardless of whether the application specifies the flag. On subsequent calls to
DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
, not specifying this flag turns off the application's service-name filters, but specifying it turns on the application's service name filters.
static final int APPCMD_MASK
static final int APPCLASS_STANDARD
Registers the application as a standard (nonmonitoring) DDEML application.
static final int APPCLASS_MONITOR
Makes it possible for the application to monitor DDE activity in the system. This flag is for use by DDE monitoring applications. The application specifies the types of DDE activity to monitor by combining one or more monitor flags with the APPCLASS_MONITOR flag.
static final int APPCLASS_MASK
static final int MF_HSZ_INFO
Notifies the callback function whenever a DDE application creates, frees, or increments the usage count of a string handle or whenever a string handle is freed as a result of a call to the
DdeUninitialize(int)
function.
static final int MF_SENDMSGS
Notifies the callback function whenever the system or an application sends a DDE message.
static final int MF_POSTMSGS
Notifies the callback function whenever the system or an application posts a DDE message.
static final int MF_CALLBACKS
Notifies the callback function whenever a transaction is sent to any DDE callback function in the system.
static final int MF_ERRORS
Notifies the callback function whenever a DDE error occurs.
static final int MF_LINKS
Notifies the callback function whenever an advise loop is started or ended.
static final int MF_CONV
Notifies the callback function whenever a conversation is established or terminated.
static final int MF_MASK
static final int EC_ENABLEALL
static final int EC_ENABLEONE
static final int EC_DISABLE
static final int EC_QUERYWAITING
static final int DNS_REGISTER
static final int DNS_UNREGISTER
static final int DNS_FILTERON
static final int DNS_FILTEROFF
Registers an application with the Dynamic Data Exchange Management Library (DDEML). An application must call this function before calling any other Dynamic Data Exchange Management Library (DDEML) function.
pidInst
- The application instance identifier. At initialization, this parameter should point to 0. If the function succeeds, this parameter points to the instance identifier for the application. This value should be passed as the idInst parameter in all other DDEML functions that require it. If an application uses multiple instances of the DDEML dynamic-link library (DLL), the application should provide a different callback function for each instance.
If pidInst points to a nonzero value, reinitialization of the DDEML is implied. In this case, pidInst must point to a valid application-instance identifier.
fnCallback
- A pointer to the application-defined DDE callback function. This function processes DDE transactions sent by the system. For more information, see the DdeCallback callback function.
afCmd
- A set of APPCMD_, CBF_, and MF_ flags. The APPCMD_ flags provide special instructions to DdeInitialize. The CBF_ flags specify filters that prevent specific types of transactions from reaching the callback function. The MF_ flags specify the types of DDE activity that a DDE monitoring application monitors. Using these flags enhances the performance of a DDE application by eliminating unnecessary calls to the callback function.
This parameter can be one or more of the following values.
Value MeaningAPPCLASS_MONITOR
Makes it possible for the application to monitor DDE activity in the system. This flag is for use by DDE monitoring applications. The application specifies the types of DDE activity to monitor by combining one or more monitor flags with the APPCLASS_MONITOR
flag. For details, see the following Remarks section.
APPCLASS_STANDARD
Registers the application as a standard (nonmonitoring) DDEML application.
APPCMD_CLIENTONLY
Prevents the application from becoming a server in a DDE conversation. The application can only be a client. This flag reduces consumption of resources by the DDEML. It includes the functionality of the CBF_FAIL_ALLSVRXACTIONS
flag.
APPCMD_FILTERINITS
Prevents the DDEML from sending XTYP_CONNECT
and XTYP_WILDCONNECT
transactions to the application until the application has created its string handles and registered its service names or has turned off filtering by a subsequent call to the DdeNameService(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, int)
or DdeInitialize function. This flag is always in effect when an application calls DdeInitialize for the first time, regardless of whether the application specifies the flag. On subsequent calls to DdeInitialize, not specifying this flag turns off the application's service-name filters, but specifying it turns on the application's service name filters.
CBF_FAIL_ALLSVRXACTIONS
Prevents the callback function from receiving server transactions. The system returns DDE_FNOTPROCESSED
to each client that sends a transaction to this application. This flag is equivalent to combining all CBF_FAIL_ flags.
CBF_FAIL_ADVISES
Prevents the callback function from receiving XTYP_ADVSTART
and XTYP_ADVSTOP
transactions. The system returns DDE_FNOTPROCESSED
to each client that sends an XTYP_ADVSTART
or XTYP_ADVSTOP
transaction to the server.
CBF_FAIL_CONNECTIONS
Prevents the callback function from receiving XTYP_CONNECT
and XTYP_WILDCONNECT
transactions.
CBF_FAIL_EXECUTES
Prevents the callback function from receiving XTYP_EXECUTE
transactions. The system returns DDE_FNOTPROCESSED
to a client that sends an XTYP_EXECUTE
transaction to the server.
CBF_FAIL_POKES
Prevents the callback function from receiving XTYP_POKE
transactions. The system returns DDE_FNOTPROCESSED
to a client that sends an XTYP_POKE
transaction to the server.
CBF_FAIL_REQUESTS
Prevents the callback function from receiving XTYP_REQUEST
transactions. The system returns DDE_FNOTPROCESSED
to a client that sends an XTYP_REQUEST
transaction to the server.
CBF_FAIL_SELFCONNECTIONS
Prevents the callback function from receiving XTYP_CONNECT
transactions from the application's own instance. This flag prevents an application from establishing a DDE conversation with its own instance. An application should use this flag if it needs to communicate with other instances of itself but not with itself.
CBF_SKIP_ALLNOTIFICATIONS
Prevents the callback function from receiving any notifications. This flag is equivalent to combining all CBF_SKIP_ flags.
CBF_SKIP_CONNECT_CONFIRMS
Prevents the callback function from receiving XTYP_CONNECT_CONFIRM
notifications.
CBF_SKIP_DISCONNECTS
Prevents the callback function from receiving XTYP_DISCONNECT
notifications.
CBF_SKIP_REGISTRATIONS
Prevents the callback function from receiving XTYP_REGISTER
notifications.
CBF_SKIP_UNREGISTRATIONS
Prevents the callback function from receiving XTYP_UNREGISTER
notifications.
MF_CALLBACKS
Notifies the callback function whenever a transaction is sent to any DDE callback function in the system.
MF_CONV
Notifies the callback function whenever a conversation is established or terminated.
MF_ERRORS
Notifies the callback function whenever a DDE error occurs.
MF_HSZ_INFO
Notifies the callback function whenever a DDE application creates, frees, or increments the usage count of a string handle or whenever a string handle is freed as a result of a call to the DdeUninitialize(int)
function.
MF_LINKS
Notifies the callback function whenever an advise loop is started or ended.
MF_POSTMSGS
Notifies the callback function whenever the system or an application posts a DDE message.
MF_SENDMSGS
Notifies the callback function whenever the system or an application sends a DDE message.
ulRes
- Reserved; must be set to zero.
DMLERR_NO_ERROR
.
If the function fails, the return value is one of the following values:
boolean DdeUninitialize(int idInst)
Frees all Dynamic Data Exchange Management Library (DDEML) resources associated with the calling application.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
Establishes a conversation with all server applications that support the specified service name and topic name pair. An application can also use this function to obtain a list of conversation handles by passing the function an existing conversation handle. The Dynamic Data Exchange Management Library removes the handles of any terminated conversations from the conversation list. The resulting conversation list contains the handles of all currently established conversations that support the specified service name and topic name.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hszService
- A handle to the string that specifies the service name of the server application with which a conversation is to be established. If this parameter is 0L, the system attempts to establish conversations with all available servers that support the specified topic name.
hszTopic
- A handle to the string that specifies the name of the topic on which a conversation is to be established. This handle must have been created by a previous call to the DdeCreateStringHandle(int, java.lang.String, int)
function. If this parameter is 0L, the system will attempt to establish conversations on all topics supported by the selected server (or servers).
hConvList
- A handle to the conversation list to be enumerated. This parameter should be 0L if a new conversation list is to be established.
pCC
- A pointer to the CONVCONTEXT structure that contains conversation-context information. If this parameter is NULL, the server receives the default CONVCONTEXT structure during the XTYP_CONNECT
or XTYP_WILDCONNECT
transaction.
If the function fails, the return value is 0L. The handle to the old conversation list is no longer valid.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Retrieves the next conversation handle in the specified conversation list.
hConvList
- A handle to the conversation list. This handle must have been created by a previous call to the DdeConnectList(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HCONVLIST, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
function.
hConvPrev
- A handle to the conversation handle previously returned by this function. If this parameter is 0L, the function returns the first conversation handle in the list.
Destroys the specified conversation list and terminates all conversations associated with the list.
hConvList
- A handle to the conversation list. This handle must have been created by a previous call to the DdeConnectList(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HCONVLIST, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
function.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Establishes a conversation with a server application that supports the specified service name and topic name pair. If more than one such server exists, the system selects only one.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hszService
- A handle to the string that specifies the service name of the server application with which a conversation is to be established. This handle must have been created by a previous call to the DdeCreateStringHandle(int, java.lang.String, int)
function. If this parameter is 0L, a conversation is established with any available server.
hszTopic
- A handle to the string that specifies the name of the topic on which a conversation is to be established. This handle must have been created by a previous call to DdeCreateStringHandle(int, java.lang.String, int)
. If this parameter is 0L, a conversation on any topic supported by the selected server is established.
pCC
- A pointer to the CONVCONTEXT structure that contains conversation context information. If this parameter is NULL, the server receives the default CONVCONTEXT structure during the XTYP_CONNECT
or XTYP_WILDCONNECT
transaction.
If the function fails, the return value is 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
hConv
- A handle to the active conversation to be terminated.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
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. When the conversation is reestablished, the Dynamic Data Exchange Management Library (DDEML) attempts to reestablish any preexisting advise loops.
hConv
- A handle to the conversation to be reestablished. A client must have obtained the conversation handle by a previous call to the DdeConnect(int, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.HSZ, com.sun.jna.platform.win32.Ddeml.CONVCONTEXT)
function or from an XTYP_DISCONNECT
transaction.
If the function fails, the return value is 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Retrieves information about a Dynamic Data Exchange (DDE) transaction and about the conversation in which the transaction takes place.
hConv
- A handle to the conversation.
idTransaction
- The transaction. For asynchronous transactions, this parameter should be a transaction identifier returned by the DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function. For synchronous transactions, this parameter should be QID_SYNC
.
pConvInfo
- A pointer to the CONVINFO structure that receives information about the transaction and conversation. The cb member of the CONVINFO structure must specify the length of the buffer allocated for the structure.
If the function fails, the return value is FALSE.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
hConv
- A handle to the conversation.
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.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Abandons the specified asynchronous transaction and releases all resources associated with the transaction.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hConv
- A handle to the conversation in which the transaction was initiated. If this parameter is 0L, all transactions are abandoned (that is, the idTransaction parameter is ignored).
idTransaction
- The identifier of the transaction to be abandoned. If this parameter is 0L, all active transactions in the specified conversation are abandoned.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Causes the system to send an
XTYP_ADVREQ
transaction to the calling (server) application's Dynamic Data Exchange (DDE) callback function for each client with an active advise loop on the specified topic and item. A server application should call this function whenever the data associated with the topic name or item name pair changes.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hszTopic
- A handle to a string that specifies the topic name. To send notifications for all topics with active advise loops, an application can set this parameter to 0L.
hszItem
- A handle to a string that specifies the item name. To send notifications for all items with active advise loops, an application can set this parameter to 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Enables or disables transactions for a specific conversation or for all conversations currently established by the calling application.
idInst
- The application-instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hConv
- A handle to the conversation to enable or disable. If this parameter is NULL, the function affects all conversations.
wCmd
- The function code. This parameter can be one of the following values.
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(int)
function can be used to get the error code, which can be one of the following values:
Impersonates a Dynamic Data Exchange (DDE) client application in a DDE client conversation.
hConv
- A handle to the DDE client conversation to be impersonated.
To get extended error information call GetLastError.
Registers or unregisters the service names a Dynamic Data Exchange (DDE) server supports. This function causes the system to send
XTYP_REGISTER
or
XTYP_UNREGISTER
transactions to other running Dynamic Data Exchange Management Library (DDEML) client applications.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hsz1
- A handle to the string that specifies the service name the server is registering or unregistering. An application that is unregistering all of its service names should set this parameter to 0L.
hsz2
- Reserved; should be set to 0L.
afCmd
- The service name options. This parameter can be one of the following values.
If the function fails, the return value is 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Begins a data transaction between a client and a server. Only a Dynamic Data Exchange (DDE) client application can call this function, and the application can use it only after establishing a conversation with the server.
pData
- 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(int, com.sun.jna.Pointer, int, int, com.sun.jna.platform.win32.Ddeml.HSZ, int, int)
function, employing the same data format specified in the wFmt parameter.
cbData
- 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.
hConv
- A handle to the conversation in which the transaction is to take place.
hszItem
- 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(int, java.lang.String, int)
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.
wType
- 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:
XTYPF_NODATA
.
XTYPF_ACKREQ
.
XTYP_ADVSTOP
Ends an advise loop. XTYP_EXECUTE
Begins an execute transaction. XTYP_POKE
Begins a poke transaction. XTYP_REQUEST
Begins a request transaction.
dwTimeout
- 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.
pdwResult
- 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(int, com.sun.jna.platform.win32.Ddeml.HCONV, int)
function and the XTYP_XACT_COMPLETE
transaction.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
DMLERR_ADVACKTIMEOUT
DMLERR_BUSY
DMLERR_DATAACKTIMEOUT
DMLERR_DLL_NOT_INITIALIZED
DMLERR_EXECACKTIMEOUT
DMLERR_INVALIDPARAMETER
DMLERR_MEMORY_ERROR
DMLERR_NO_CONV_ESTABLISHED
DMLERR_NO_ERROR
DMLERR_NOTPROCESSED
DMLERR_POKEACKTIMEOUT
DMLERR_POSTMSG_FAILED
DMLERR_REENTRANCY
DMLERR_SERVER_DIED
DMLERR_UNADVACKTIMEOUT
Creates a Dynamic Data Exchange (DDE) object and fills the object with data from the specified buffer. A DDE application uses this function during transactions that involve passing data to the partner application.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
pSrc
- The data to be copied to the DDE object. If this parameter is NULL, no data is copied to the object.
cb
- The amount of memory, in bytes, to copy from the buffer pointed to by pSrc. (include the terminating NULL, if the data is a string). If this parameter is zero, the pSrc parameter is ignored.
cbOff
- An offset, in bytes, from the beginning of the buffer pointed to by the pSrc parameter. The data beginning at this offset is copied from the buffer to the DDE object.
hszItem
- A handle to the string that specifies the data item corresponding to the DDE object. This handle must have been created by a previous call to the DdeCreateStringHandle(int, java.lang.String, int)
function. If the data handle is to be used in an XTYP_EXECUTE
transaction, this parameter must be 0L.
wFmt
- The standard clipboard format of the data.
afCmd
- The creation flags. This parameter can be HDATA_APPOWNED, which specifies that the server application calling the DdeCreateDataHandle function owns the data handle this function creates. This flag enables the application to share the data handle with other DDEML applications rather than creating a separate handle to pass to each application. If this flag is specified, the application must eventually free the shared memory object associated with the handle by using the DdeFreeDataHandle(com.sun.jna.platform.win32.Ddeml.HDDEDATA)
function. If this flag is not specified, the handle becomes invalid in the application that created the handle after the data handle is returned by the application's DDE callback function or is used as a parameter in another DDEML function.
If the function fails, the return value is 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Adds data to the specified Dynamic Data Exchange (DDE) object. An application can add data starting at any offset from the beginning of the object. If new data overlaps data already in the object, the new data overwrites the old data in the bytes where the overlap occurs. The contents of locations in the object that have not been written to are undefined.
hData
- A handle to the DDE object that receives additional data.
pSrc
- The data to be added to the DDE object.
cb
- The length, in bytes, of the data to be added to the DDE object, including the terminating NULL, if the data is a string.
cbOff
- An offset, in bytes, from the beginning of the DDE object. The additional data is copied to the object beginning at this offset.
If the function fails, the return value is zero.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Copies data from the specified Dynamic Data Exchange (DDE) object to the specified local buffer.
hData
- A handle to the DDE object that contains the data to copy.
pDst
- A pointer to the buffer that receives the data. If this parameter is NULL, the DdeGetData function returns the amount of data, in bytes, that would be copied to the buffer.
cbMax
- The maximum amount of data, in bytes, to copy to the buffer pointed to by the pDst parameter. Typically, this parameter specifies the length of the buffer pointed to by pDst.
cbOff
- An offset within the DDE object. Data is copied from the object beginning at this offset.
If the pDst parameter is NULL, the return value is the size, in bytes, of the memory object associated with the data handle.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
hData
- A handle to the DDE object to be accessed.
pcbDataSize
- A pointer to a variable that receives the size, in bytes, of the DDE object identified by the hData parameter. If this parameter is NULL, no size information is returned.
If the function fails, the return value is NULL.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Unaccesses a Dynamic Data Exchange (DDE) object. An application must call this function after it has finished accessing the object.
hData
- A handle to the DDE object.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Frees a Dynamic Data Exchange (DDE) object and deletes the data handle associated with the object.
hData
- A handle to the DDE object to be freed. This handle must have been created by a previous call to the DdeCreateDataHandle(int, com.sun.jna.Pointer, int, int, com.sun.jna.platform.win32.Ddeml.HSZ, int, int)
function or returned by the DdeClientTransaction(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.Ddeml.HCONV, com.sun.jna.platform.win32.Ddeml.HSZ, int, int, int, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
int DdeGetLastError(int idInst)
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
Ddeml
.DMLERR_*
Creates a handle that identifies the specified string. A Dynamic Data Exchange (DDE) client or server application can pass the string handle as a parameter to other Dynamic Data Exchange Management Library (DDEML) functions.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
psz
- The null-terminated string for which a handle is to be created. This string can be up to 255 characters. The reason for this limit is that DDEML string management functions are implemented using atoms.
iCodePage
- The code page to be used to render the string. This value should be either CP_WINANSI
(the default code page) or CP_WINUNICODE
, depending on whether the ANSI or Unicode version of DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
was called by the client application.
If the function fails, the return value is 0L.
The DdeGetLastError(int)
function can be used to get the error code, which can be one of the following values:
Copies text associated with a string handle into a buffer.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hsz
- A handle to the string to copy. This handle must have been created by a previous call to the DdeCreateStringHandle(int, java.lang.String, int)
function.
psz
- A pointer to a buffer that receives the string. To obtain the length of the string, this parameter should be set to NULL.
cchMax
- The length, in characters, of the buffer pointed to by the psz parameter. For the ANSI version of the function, this is the number of bytes; for the Unicode version, this is the number of characters. If the string is longer than ( cchMax� 1), it will be truncated. If the psz parameter is set to NULL, this parameter is ignored.
iCodePage
- The code page used to render the string. This value should be either CP_WINANSI
or CP_WINUNICODE
.
If an error occurs, the return value is 0L
Frees a string handle in the calling application.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hsz
- A handle to the string handle to be freed. This handle must have been created by a previous call to the DdeCreateStringHandle(int, java.lang.String, int)
function.
Increments the usage count associated with the specified handle. This function enables an application to save a string handle passed to the application's Dynamic Data Exchange (DDE) callback function. Otherwise, a string handle passed to the callback function is deleted when the callback function returns. This function should also be used to keep a copy of a string handle referenced by the CONVINFO structure returned by the
DdeQueryConvInfo(com.sun.jna.platform.win32.Ddeml.HCONV, int, com.sun.jna.platform.win32.Ddeml.CONVINFO)
function.
idInst
- The application instance identifier obtained by a previous call to the DdeInitialize(com.sun.jna.platform.win32.WinDef.DWORDByReference, com.sun.jna.platform.win32.Ddeml.DdeCallback, int, int)
function.
hsz
- A handle to the string handle to be saved.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4