// acxelements.h
typedef struct _ACX_KEYWORDSPOTTER_CONFIG {
ULONG Size;
ULONG Id;
const GUID *Name;
ULONG Flags;
const GUID *Pattern;
PACX_KEYWORDSPOTTER_CALLBACKS Callbacks;
} ACX_KEYWORDSPOTTER_CONFIG, *PACX_KEYWORDSPOTTER_CONFIG;
View the official Windows Driver Kit DDI referenceNo description available.
The ACX_KEYWORDSPOTTER_CONFIG structure is used to define the acx keyword spotter configuration.
SizeThe length, in bytes, of this structure.
IdA number that represents the element ID.
NameA pointer to a GUID that represents the name of the element. Can be used for debugging and will default to GUID_NULL if not provided.
FlagsAcx keyword spotter configuration flags defined by the ACX_KEYWORDSPOTTER_CONFIG_FLAGS enum. No flag bits are currently defined. Set this member to zero - AcxKeywordSpotterConfigNoFlags.
PatternThe keyword spotter pattern format, expressed as a GUID.
CallbacksThe ACX_KEYWORDSPOTTER_CALLBACKS structure that identifies the driver callbacks for the keyword spotter operations.
Example usage is shown below.
ACX_KEYWORDSPOTTER_CONFIG keywordSpotterCfg;
PCODEC_KEYWORDSPOTTER_CONTEXT keywordSpotterCtx;
ACX_PNPEVENT_CONFIG keywordEventCfg;
ACXPNPEVENT keywordEvent;
ACX_KEYWORDSPOTTER_CALLBACKS_INIT(&keywordSpotterCallbacks);
keywordSpotterCallbacks.EvtAcxKeywordSpotterRetrieveArm = CodecC_EvtAcxKeywordSpotterRetrieveArm;
keywordSpotterCallbacks.EvtAcxKeywordSpotterAssignArm = CodecC_EvtAcxKeywordSpotterAssignArm;
keywordSpotterCallbacks.EvtAcxKeywordSpotterAssignPatterns = CodecC_EvtAcxKeywordSpotterAssignPatterns;
keywordSpotterCallbacks.EvtAcxKeywordSpotterAssignReset = CodecC_EvtAcxKeywordSpotterAssignReset;
ACX_KEYWORDSPOTTER_CONFIG_INIT(&keywordSpotterCfg);
keywordSpotterCfg.Pattern = &CONTOSO_KEYWORDCONFIGURATION_IDENTIFIER2;
keywordSpotterCfg.Callbacks = &keywordSpotterCallbacks;
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.