Writes the size of, and content of a string
Syntax
HRESULT WINAPI IStream_WriteStrLong (
IStream* pStream,
LPCWSTR pwszString
)
Parameters
- pStream
- The IStream or ISequentialStream interface to write to
- pwszString
- The string to write
Return Value
S_OK on success, standard COM error code otherwise
Remarks
First, the length of the string (in characters) is written to the stream as a UINT before the string itself is written.
If writing the size succeeds but writing the string fails, the function fails but the size remains in the stream
This function is also known as _IStream_WriteStrLong@8.