// acxmisc.h
typedef enum _ACX_OBJECTBAG_CONFIG_FLAGS {
AcxObjectBagConfigNoFlags,
AcxObjectBagConfigEnableReads,
AcxObjectBagConfigEnableWrites,
AcxObjectBagConfigFailIfExist,
AcxObjectBagConfigOpenWithHandle,
AcxObjectBagConfigValidFlags
} ACX_OBJECTBAG_CONFIG_FLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
The ACX_OBJECTBAG_CONFIG_FLAGS enumeration defines the configuration for an AcxObjectBag.
AcxObjectBagConfigNoFlagsIndicates that no config flags are set.
AcxObjectBagConfigEnableReadsIndicates that reads are enabled.
AcxObjectBagConfigEnableWritesIndicates that writes are enabled.
AcxObjectBagConfigFailIfExistIndicates that if an ACXOBJECTBAG with the same identity is already present, creation should fail instead of opening the existing one.
AcxObjectBagConfigOpenWithHandleIndicates to open the ACXOBJECTBAG whose handle is specified in the configuration structure.
AcxObjectBagConfigValidFlagsFor internal validation, do not use.
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));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.