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。 否則,會傳回錯誤碼。