Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IStream_Write function

Writes data of unknown format from a buffer to a specified stream.

Syntax


HRESULT IStream_Write(
  _In_  IStream *pstm,
  _In_  const void *pv,
  _In_  ULONG cb
);

Parameters

pstm [in]

Type: IStream*

An IStream pointer that specifies the target stream.

pv [in]

Type: const void*

Pointer to a buffer that holds the data to send to the target stream. This buffer must be at least cb bytes in size.

cb [in]

Type: ULONG

The number of bytes of data to write to the target stream.

Return value

Type: HRESULT

Returns S_OK if the function successfully wrote the specified number of bytes to the stream, or an error value otherwise. In particular, if less than cb bytes was written to the target stream, even if some data was successfully written, the function returns E_FAIL.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shlwapi.h

DLL

Shlwapi.dll (version 5.0 or later)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.