IJsDebugDataTarget::ReadNullTerminatedString Method

Reads the specified number of characters from the target.

Syntax

HRESULT ReadNullTerminatedString(  
   UINT64 address,  
   UINT16 characterSize,  
   UINT32 maxCharacters,  
   BSTR *pString  
);  

Parameters

address
[in] The address to read from.

characterSize
[in] size of each character in the string

maxCharacters
[in] The maximum number of characters to read. maxCharacters should be reasonable. Any request for more than 128MB of memory will fail. If the string is larger than maxCharacters, the result string will be truncated after maxCharacters.

pString
[out] The BSTR read from the target.

Return Value

Remarks

Returns S_FALSE if truncated.

Requirements

Header: jscript9diag.h

See also

IJsDebugDataTarget Interface