// acxmisc.h
NTSTATUS AcxObjectBagAddBlob(
ACXOBJECTBAG ObjectBag,
PCUNICODE_STRING ValueName,
WDFMEMORY Value
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxObjectBagAddBlob function adds blob data to an existing, initialized AcxObjectBag.
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.
ValueThe Value to be added to 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 AcxObjectBagAddBlob.
NTSTATUS status = STATUS_SUCCESS;
DECLARE_CONST_ACXOBJECTBAG_DRIVER_PROPERTY_NAME(VendorX, PropertiesBlock);
WDFMEMORY blobMem;
RETURN_NTSTATUS_IF_FAILED(WdfMemoryCreatePreallocated(NULL, Buffer, SizeCb, &blobMem));
RETURN_NTSTATUS_IF_FAILED(AcxObjectBagAddBlob(ObjBag, &PropertiesBlock, blobMem));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.