EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET funzione di callback (acxelements.h)
Il callback EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET reimposta il rilevatore di spotter delle parole chiave su uno stato non associato senza alcun 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 di valori NTSTATUS.
Osservazioni
Per informazioni generali sul rilevamento delle parole chiave, vedere attivazione vocale e multiple Voice Assistant.
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 ACX
versione minima di ACX: 1.0
Per altre informazioni sulle versioni di ACX, vedere panoramica della versione ACX.
Fabbisogno
Requisito | Valore |
---|---|
intestazione | acxelements.h |
IRQL | PASSIVE_LEVEL |