IDebugFunctionObject2:: CreateStringObjectWithLength

创建具有指定长度的字符串对象。

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

参数

  • pcstrString
    [in] 字符串对象的字符串值。

  • uiLength
    [in] 字符串的长度 (以字节为单位)。

  • ppObject
    [out] 返回表示新创建的字符串对象的 IDebugObject 对象。

返回值

如果成功,则返回; S_OK否则,返回错误代码。

请参见

参考

IDebugFunctionObject2