AcxObjectBagAddMultiString function (acxmisc.h)

The AcxObjectBagAddMultiString function adds a MultiString to an existing, initialized AcxObjectBag.

Syntax

NTSTATUS AcxObjectBagAddMultiString(
  ACXOBJECTBAG     ObjectBag,
  PCUNICODE_STRING ValueName,
  WDFCOLLECTION    Values
);

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.

Values

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 AcxObjectBagAddMultiString.

    // Add multi-string value in bag.
    //
    status = AcxObjectBagAddMultiString(objBag, inParams->ValueName, (LPCWSTR)inParams->Data);

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

See also