'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_EXECUTES0x8000Prevents the server from receiving XTYP_EXECUTE transactions. Any client that attempts this will be refused.
CBF_FAIL_POKES0x10000Prevents the server from receiving XTYP_POKE transactions. Any client that attempts this will be refused.
CBF_FAIL_REQUESTS0x20000Prevents 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

IntroducedKCML 5.00
CompatibilityKClient

See Also

KCMLDdeAddTopic, KCMLDdeClose, KCMLDdeDestroy, KCMLDdeExec, KCMLDdeInit, KCMLDdeLoad, KCMLDdeOpen, KCMLDdePoke, KCMLDdeRequest

Index of internal $DECLARE functions