Skip to content

Latest commit

 

History

History
101 lines (72 loc) · 2.44 KB

ne-acxmisc-acx_objectbag_config_flags.md

File metadata and controls

101 lines (72 loc) · 2.44 KB
UID tech.root title ms.date targetos description prerelease req.construct-type req.ddi-compliance req.header req.include-header req.kmdf-ver req.max-support req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver topic_type api_type api_location api_name f1_keywords dev_langs
NE:acxmisc._ACX_OBJECTBAG_CONFIG_FLAGS
audio
ACX_OBJECTBAG_CONFIG_FLAGS
06/17/2022
Windows
The ACX_OBJECTBAG_CONFIG_FLAGS enumeration defines the configuration for an AcxObjectBag.
false
enumeration
acxmisc.h
apiref
HeaderDef
acxmisc.h
_ACX_OBJECTBAG_CONFIG_FLAGS
ACX_OBJECTBAG_CONFIG_FLAGS
_ACX_OBJECTBAG_CONFIG_FLAGS
acxmisc/_ACX_OBJECTBAG_CONFIG_FLAGS
ACX_OBJECTBAG_CONFIG_FLAGS
acxmisc/ACX_OBJECTBAG_CONFIG_FLAGS
c++

-description

The ACX_OBJECTBAG_CONFIG_FLAGS enumeration defines the configuration for an AcxObjectBag.

-enum-fields

-field AcxObjectBagConfigNoFlags

Indicates that no config flags are set.

-field AcxObjectBagConfigEnableReads

Indicates that reads are enabled.

-field AcxObjectBagConfigEnableWrites

Indicates that writes are enabled.

-field AcxObjectBagConfigFailIfExist

Indicates that if an ACXOBJECTBAG with the same identity is already present, creation should fail instead of opening the existing one.

-field AcxObjectBagConfigOpenWithHandle

Indicates to open the ACXOBJECTBAG whose handle is specified in the configuration structure.

-field AcxObjectBagConfigValidFlags

For internal validation, do not use.

-remarks

Example

This example shows the use of ACX_OBJECTBAG_CONFIG_FLAGS.

        GUID                    uniqueId = { 0 };
        UNICODE_STRING          uniqueIdStr = { 0 };
        UNICODE_STRING          pnpDeviceId = { 0 };
        ACX_OBJECTBAG_CONFIG    objBagCfg;

        DECLARE_CONST_ACXOBJECTBAG_SYSTEM_PROPERTY_NAME(UniqueID);

        ACX_OBJECTBAG_CONFIG_INIT(&objBagCfg);
        objBagCfg.Handle = CircuitConfig->CompositeProperties;
        objBagCfg.Flags |= AcxObjectBagConfigOpenWithHandle;

        WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
        ACXOBJECTBAG objBag = NULL;

        RETURN_NTSTATUS_IF_FAILED(AcxObjectBagOpen(&attributes, &objBagCfg, &objBag));

ACX requirements

Minimum ACX version: 1.0

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

-see-also