// acxmisc.h
typedef struct _ACX_OBJECTBAG_CONFIG {
ULONG Size;
ULONG Flags;
WDFKEY ParentKey;
PCUNICODE_STRING Name;
HANDLE Handle;
} ACX_OBJECTBAG_CONFIG, *PACX_OBJECTBAG_CONFIG;
View the official Windows Driver Kit DDI referenceNo description available.
The ACX_OBJECTBAG_CONFIG structure defines the configuration for an AcxObjectBag.
SizeThe length, in bytes, of this structure.
FlagsBitwise OR of ACX_OBJECTBAG_CONFIG_FLAGS that is used to configure the object bag.
ParentKeyThe ParentKey of the ObjectBag.
NameThe name of the ObjectBag that is used to access it.
HandleThe ObjectBag handle that is used to access the object bag.
This example shows the use of ACX_OBJECTBAG_CONFIG.
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));
auto objBag_free = scope_exit([&objBag]() {
WdfObjectDelete(objBag);
});
RETURN_NTSTATUS_IF_FAILED(AcxObjectBagRetrieveGuid(objBag, &UniqueID, &uniqueId));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.