The NetAlertStop API removes a registered client from the alert table.
Restrictions
A call to this API can be issued only from an OS/2 application to the local computer.
#include <netcons.h> #include <alert.h> NetAlertStop(pAlertType, pszRecipient); /* 16 bit */ Net32AlertStop(pAlertType, pszRecipient); /* 32 bit */Parameters
See Common Parameter Definitions for descriptions of parameters not defined here.
pAlertType
The following table lists the return codes most significant to this API.
(See API Return Codes for a complete
list of return codes.) ┌─────────────────────────────┬───────┬────────────────────────────────────────┐│SYMBOLICCONSTANT
│VALUE│MEANING │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ NERR_Success │ 0 │ No errors were encountered. │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ ERROR_INVALID_PARAMETER │ 87 │ At least one parameter value is not
│
│ │ │ valid. │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ NERR_NetNotStarted │ 2102 │ The redirector NETWKSTA.200 has not
│
│ │ │ been started. │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ NERR_ShareMem │ 2104 │ An internal error occurred-the network
│
│ │ │ cannot access a shared memory segment. │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ NERR_WkstaNotStarted │ 2138 │ The Requester service has not been
│
│ │ │ started. │
├─────────────────────────────┼───────┼────────────────────────────────────────┤
│ NERR_NoSuchAlert │ 2432 │ An incorrect or nonexistent alert name
│
│ │ │ was raised. │
└─────────────────────────────┴───────┴────────────────────────────────────────┘
Other codes could be returned from the following functions:
For information about registering a client to watch for a particular event, see Alert - NetAlertStart.