EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET回呼函式 (acxelements.h)

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET回呼會將關鍵詞 Spotter 偵測器重設為未設定模式的未防護狀態。

語法

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET EvtAcxKeywordspotterAssignReset;

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

參數

KeywordSpotter

現有、初始化的 ACXKEYWORDSPOTTER 物件。 如需 ACX 對象的詳細資訊,請參閱 ACX 物件的摘要。 另請參閱 AcxKeywordSpotterCreate 函式。

EventId

表示 EventId 之 GUID 的指標。

傳回值

如果呼叫成功,則傳 STATUS_SUCCESS 回 。 否則,它會傳回適當的錯誤碼。 如需詳細資訊,請參閱 使用NTSTATUS值

備註

如需關鍵詞偵測的一般資訊,請參閱 語音啟用多個語音助理

範例

範例使用方式如下所示。

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);
}

ACX 需求

最低 ACX 版本: 1.0

如需 ACX 版本的詳細資訊,請參閱 ACX 版本概觀

規格需求

需求
標頭 acxelements.h
IRQL PASSIVE_LEVEL

另請參閱