// acxmisc.h
NTSTATUS AcxObjectBagAddString(
ACXOBJECTBAG ObjectBag,
PCUNICODE_STRING ValueName,
WDFSTRING Value
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxObjectBagAddString function adds a WDFSTRING object to an existing, initialized AcxObjectBag. For more information about WDFSTRING, see wdfstring.h header.
ObjectBagAn initialized ObjectBag ACX object. For more information, see ACX - Summary of ACX Objects.
ValueNameA ValueName that will be associated with the added string and can be used to retrieve the stored string.
ValueThe value of the WDFSTRING object to be stored in the ObjectBag.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.