AcxObjectBagAddBlob function (acxmisc.h)
The AcxObjectBagAddBlob function adds blob data to an existing, initialized AcxObjectBag.
Syntax
NTSTATUS AcxObjectBagAddBlob(
ACXOBJECTBAG ObjectBag,
PCUNICODE_STRING ValueName,
WDFMEMORY Value
);
Parameters
ObjectBag
An initialized ObjectBag ACX object. For more information, see ACX - Summary of ACX Objects.
ValueName
The name of the value that will be used to access the value.
Value
The Value to be added to the ObjectBag.
Return value
Returns STATUS_SUCCESS
if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
Remarks
Example
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));
ACX requirements
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.
Requirements
Requirement | Value |
---|---|
Header | acxmisc.h |
IRQL | PASSIVE_LEVEL |