'KCMLDDEServerInit(fCmd)
Registers the KCML program with Windows as a DDE server.
Deprecated
This function is deprecated and may be removed in a future release.
Arguments
INT() | fCmd | [in] | Flags. |
Returns
If successful, the function returns an instance number otherwise it will return zero.
Syntax
The following definition is built into KCML. You do not have to include it in your own code.
$DECLARE 'KCMLDDEServerInit(INT())
Remarks
This registers the KCML program with Windows as a DDE server. The flags argument is a bitmask of flags that condition the conversations we will accept. The useful flags are:
Constant | Value | Description |
---|---|---|
CBF_FAIL_EXECUTES | 0x8000 | Prevents the server from receiving XTYP_EXECUTE transactions. Any client that attempts this will be refused. |
CBF_FAIL_POKES | 0x10000 | Prevents the server from receiving XTYP_POKE transactions. Any client that attempts this will be refused. |
CBF_FAIL_REQUESTS | 0x20000 | Prevents the server from receiving XTYP_REQUEST transactions. Any client that attempts this will be refused. |
By ORing these together, transaction types that the program does not wish to handle can be passed back to Windows.
Example
See the DDE server example.
Further Information
Introduced | KCML 5.00 |
Compatibility | KClient |
See Also
KCMLDdeAddTopic, KCMLDdeClose, KCMLDdeDestroy, KCMLDdeExec, KCMLDdeInit, KCMLDdeLoad, KCMLDdeOpen, KCMLDdePoke, KCMLDdeRequest