Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 2.04 KB

nf-acxmisc-acxobjectbagaddblob.md

File metadata and controls

88 lines (67 loc) · 2.04 KB
UID tech.root title ms.date targetos description prerelease req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:acxmisc.AcxObjectBagAddBlob
audio
AcxObjectBagAddBlob
12/16/2022
Windows
The AcxObjectBagAddBlob function adds blob data to an existing, initialized AcxObjectBag.
false
function
acxmisc.h
PASSIVE_LEVEL
apiref
LibDef
acxmisc.h
AcxObjectBagAddBlob
AcxObjectBagAddBlob
acxmisc/AcxObjectBagAddBlob
c++

-description

The AcxObjectBagAddBlob function adds blob data to an existing, initialized AcxObjectBag.

-parameters

-param ObjectBag

An initialized ObjectBag ACX object. For more information, see ACX - Summary of ACX Objects.

-param ValueName

The name of the value that will be used to access the value.

-param Value

The Value to be added to the ObjectBag.

-returns

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.

-see-also