Partager via


IStream::Write

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method writes a specified number of bytes into the stream object starting at the current seek pointer.

Syntax

HRESULT Write( 
  void const* pv, 
  ULONG cb,
  ULONG* pcbWritten 
);

Parameters

  • pv
    Pointer to the memory buffer.
  • cb
    Number of bytes of data to write from the stream object.
  • pcbWritten
    Pointer to a ULONG variable that receives the actual number of bytes written from the stream object.

Return Value

If the method succeeds, the return value is S_OK.

Remarks

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header objidl.h, objidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later