AcxObjectBagAddUnicodeString - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// acxmisc.h

NTSTATUS AcxObjectBagAddUnicodeString(
  ACXOBJECTBAG     ObjectBag,
  PCUNICODE_STRING ValueName,
  PCUNICODE_STRING Value
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-acxmisc-acxobjectbagaddunicodestring)

Description

The AcxObjectBagAddUnicodeString function adds a unicode string to and existing, initialized AcxObjectBag.

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 UNICODE_STRING 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 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));

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

See also