// acxmisc.h
NTSTATUS AcxObjectBagAddUnicodeString(
ACXOBJECTBAG ObjectBag,
PCUNICODE_STRING ValueName,
PCUNICODE_STRING Value
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxObjectBagAddUnicodeString function adds a unicode string to and 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 UNICODE_STRING 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 AcxObjectBagAddUnicodeString.
_In_ ACXOBJECTBAG ObjBag,
_In_ UNICODE_STRING FriendlyNameStr,
_In_ UNICODE_STRING NameStr
)
{
PAGED_CODE();
NTSTATUS status = STATUS_SUCCESS;
DECLARE_CONST_ACXOBJECTBAG_SYSTEM_PROPERTY_NAME(FriendlyName);
RETURN_NTSTATUS_IF_FAILED(AcxObjectBagAddUnicodeString(ObjBag, &FriendlyName, &FriendlyNameStr));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.