Condividi tramite


EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET funzione di callback (acxelements.h)

Il callback EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET reimposta il rilevatore di spotter della parola chiave su uno stato nonrmed senza set di criteri.

Sintassi

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET EvtAcxKeywordspotterAssignReset;

NTSTATUS EvtAcxKeywordspotterAssignReset(
  ACXKEYWORDSPOTTER KeywordSpotter,
  GUID *EventId
)
{...}

Parametri

KeywordSpotter

Oggetto ACXKEYWORDSPOTTER esistente inizializzato. Per altre informazioni sugli oggetti ACX, vedere Riepilogo degli oggetti ACX. Vedere anche la funzione AcxKeywordSpotterCreate .

EventId

Puntatore a un GUID che rappresenta l'EventId.

Valore restituito

Restituisce STATUS_SUCCESS se la chiamata ha avuto esito positivo. In caso contrario, restituisce un codice di errore appropriato. Per altre informazioni, vedere Uso dei valori NTSTATUS.

Commenti

Per informazioni generali sul rilevamento delle parole chiave, vedere Attivazione vocale e Assistente vocale multiplo.

Esempio

Di seguito è riportato un esempio di utilizzo.

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET     CodecC_EvtAcxKeywordSpotterAssignReset;

NTSTATUS
NTAPI
CodecC_EvtAcxKeywordSpotterAssignReset(
    _In_    ACXKEYWORDSPOTTER   KeywordSpotter,
    _In_    GUID *              EventId
    )
{
    PAGED_CODE();
    PCODEC_KEYWORDSPOTTER_CONTEXT keywordSpotterCtx;
    CKeywordDetector *            keywordDetector = NULL;

    keywordSpotterCtx = GetCodecKeywordSpotterContext(KeywordSpotter);

    keywordDetector = (CKeywordDetector*)keywordSpotterCtx->KeywordDetector;

    return keywordDetector->ResetDetector(*EventId);
}

Requisiti di ACX

Versione minima di ACX: 1.0

Per altre informazioni sulle versioni ACX, vedere La panoramica della versione di ACX.

Requisiti

Requisito Valore
Intestazione acxelements.h
IRQL PASSIVE_LEVEL

Vedi anche