ACX_PNPEVENT_CONFIG structure (acxevents.h)

The ACX_PNPEVENT_CONFIG structure is used to configure an ACXPNPEVENT.

Syntax

typedef struct _ACX_PNPEVENT_CONFIG {
  ULONG Size;
  ULONG Flags;
  GUID  Event;
} ACX_PNPEVENT_CONFIG, *PACX_PNPEVENT_CONFIG;

Members

Size

The length, in bytes, of this structure.

Flags

Bitwise OR of ACX_PNPEVENT_CONFIG_FLAGS.

Event

A GUID that is used to identify the event.

Remarks

The Event GUID is automatically retrieved from the ACXAUDIOMODULE and ACXKEYWORDSPOTTER when the event is associated with these two types of objects.

Example

This example shows the use of the ACX_PNPEVENT_CONFIG structure.

    ACX_PNPEVENT_CONFIG audioModuleEventCfg;
...

    ACX_PNPEVENT_CONFIG_INIT(&audioModuleEventCfg);

    WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, CODEC_PNPEVENT_CONTEXT);
    attributes.ParentObject = audioModuleElement;
    status = AcxPnpEventCreate(Device, audioModuleElement, &attributes, &audioModuleEventCfg, &audioModuleEvent);

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

Requirements

Requirement Value
Header acxevents.h

See also