XTYP_UNREGISTER

3.1

#include <ddeml.h>

XTYP_UNREGISTER
hszBaseServName = hsz1; /* handle of base service-name string     */
hszInstServName = hsz2; /* handle of instance service-name string */

A DDE callback function receives this transaction type whenever a DDEML server application uses the DdeNameService function to unregister a service name or whenever a non-DDEML application that supports the System topic is terminated.

Parameters

hszBaseServName

Value of hsz1. Identifies the base service name being unregistered.

hszInstServName

Value of hsz2. Identifies the instance-specific service name being unregistered.

Return Value

This transaction does not return a value.

Comments

If the application specified the CBF_SKIP_REGISTRATIONS flag in the DdeInitialize function, this transaction is filtered.

An application cannot block this transaction type; the CBR_BLOCK return value is ignored.

An application should use the hszBaseServName parameter to remove the service name from the list of servers available to the user. An application should use the hszInstServName parameter to identify which application instance has terminated.

See Also

DdeInitialize, DdeNameService