Removes an RTC condition and corresponding action from the dispatcher's RTC database.
DWORD dispRemoveRTC (CTAHD ctahd, RTC_CONDITION *pcondition, RTC_ACTION *paction )
|
Argument |
Description |
|
ctahd |
Handle to a Natural Access context. |
|
pcondition |
Pointer to an RTC_CONDITION structure describing an RTC condition to be removed: typedef struct _RTC_CONDITION |
|
paction |
Pointer to an RTC_ACTION structure describing an action. Together with RTC_CONDITION, RTC_ACTION is used to explicitly specify the condition/action pair to be removed: typedef struct _RTC_ACTION |
|
Return value |
Description |
|
SUCCESS |
|
|
CTAERR_BAD_ARGUMENT |
Indicates any of the following:
|
|
CTAERR_INVALID_CTAHD |
Specified ctahd is invalid. |
|
CTAERR_NOT_FOUND |
Specified condition/action pair was not found in the Natural Access dispatcher's RTC database. |
|
CTAERR_NOT_INITIALIZED |
Natural Access is not initialized. |
|
CTAERR_SVR_COMM |
Natural Access Server is not running. |
dispRemoveRTC removes the RTC_CONDITION from the dispatcher's RTC database on the specified context. The dispatcher also invokes the provider service's binding function xxxRemoveRTC.
RTC_CONDITION and RTC_ACTION specify a command/action pair (or pairs) to remove from the database. The following table describes the fields in RTC_CONDITION:
|
Field |
Description |
|---|---|
|
Attribute |
Set to one of the following to determine which condition/action pairs to remove:
|
|
EventID |
Set as follows, depending upon the Attribute setting:
|
|
EventValue |
If Attribute is set to RTC_EVT_WITH_ONE_VALUE, specifies the value to look for. Otherwise, EventValue is ignored. |
|
Alias |
Specifies a condition/action pair to remove, where the condition is an alias. To specify a pair this way, also set Attribute to RTC_NONE |
The following table describes the fields in RTC_ACTION:
|
Field |
Description |
|---|---|
|
Consumer |
Specifies the service ID of the consumer service. |
|
ActionCmd |
If Attribute is set to RTC_NONE and you are not specifying an alias (in the Alias field in RTC_CONDITION) set to the action command of the condition/action pair to be removed. If Attribute is set any other way, this field is ignored. |