Share via


IMLPropertySet::GetSTRING (Compact 7)

3/12/2014

This method returns a string property.

Syntax

HRESULT GetSTRING(
  ULONG propertyID,
  WCHAR *pwchValue,
  ULONG *pcchValue
);

Parameters

  • propertyID
    [in] ID of the property.
  • pwchValue
    [out] Pointer to the value of the property. The value returned to this parameter is a BSTR. Pointer to a WCHAR buffer to hold the returned value of the BSTR property. This can be specified as NULL to only retrieve the length of the BSTR value in the pcchValue.
  • pcchValue
    [out] Pointer to the number of characters in the string.

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The pwchValue and pcchValue parameters are invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLPropertySet