// acxmisc.h
NTSTATUS AcxObjectBagRetrieveBlob(
ACXOBJECTBAG ObjectBag,
PCUNICODE_STRING ValueName,
PWDF_OBJECT_ATTRIBUTES ValueAttributes,
WDFMEMORY *Value
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxObjectBagRetrieveBlob function retrieves a blob value from an existing, initialized AcxObjectBag that contains values.
ObjectBagAn initialized ObjectBag ACX object. For more information, see ACX - Summary of ACX Objects.
ValueNameThe name of the value that will be used to access the value.
ValueAttributesOptional WDF_OBJECT_ATTRIBUTES that can be used to define additional ValueAttributes.
ValueThe Value to be retrieved from the ObjectBag.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
This example shows the use of AcxObjectBagRetrieveBlob.
WDFMEMORY vendorPropertiesBlock = NULL;
PVOID vendorPropertiesBuffer = NULL;
size_t vendorPropertiesSize = 0;
NTSTATUS status = STATUS_NOT_FOUND;
PAGED_CODE();
//
// Retrieve the vendor blob from the CircuitProperties object bag.
//
RETURN_NTSTATUS_IF_FAILED(AcxObjectBagRetrieveBlob(CircuitProperties, &VendorPropertiesBlock, NULL, &vendorPropertiesBlock));
vendorPropertiesBuffer = WdfMemoryGetBuffer(vendorPropertiesBlock, &vendorPropertiesSize);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.