Share via


IDebugFunctionObject2::CreateStringObjectWithLength

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates a string object that has the specified length.

Syntax

HRESULT CreateStringObjectWithLength (
   LPCOLESTR      pcstrString,
   UINT           uiLength,
   IDebugObject** ppObject
);
int CreateStringObjectWithLength (
   string           pcstrString,
   uint             uiLength,
   out IDebugObject ppObject
);

Parameters

pcstrString
[in] The string value for the string object.

uiLength
[in] The length of the string in bytes.

ppObject
[out] Returns an IDebugObject object that represents the newly created string object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See also