Re: IStream.Read()
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Wed, 9 May 2007 18:57:56 +0200
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:uPeoBdlkHHA.4676@xxxxxxxxxxxxxxxxxxxxxxx
Read allows the last pointer passed in to be null. From the documentation for IStream from the Platform SDK:
pcbRead
[out] A pointer to a ULONG variable that receives the actual number of bytes read from the stream object.
You can set this pointer to NULL. In this case, this method does not return the number of bytes read.
From the latest greatest Windows SDK docs:
pcbRead
[out] A pointer to a ULONG variable that receives the actual number of bytes read from the stream object.
and from MSDN:
http://msdn2.microsoft.com/en-us/library/aa380011.aspx
http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.comtypes.istream.read.aspx
Note this:
For more information, see the existing documentation for ISequentialStream::Read in the MSDN library.
You see, nothing about NULL to be allowed.
This :
http://msdn2.microsoft.com/en-us/library/ms890697.aspx
effectively talks about NULL to be allowed....
<snip
pcbRead
[out] Pointer to a ULONG variable that receives the actual number of bytes read from the stream object.
You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes read.
/snip>
but this is about the ole32 implementation for Windows CE.
Willy.
.
- Follow-Ups:
- Re: IStream.Read()
- From: Nicholas Paldino [.NET/C# MVP]
- Re: IStream.Read()
- References:
- IStream.Read()
- From: Peter Larsen []
- Re: IStream.Read()
- From: Willy Denoyette [MVP]
- Re: IStream.Read()
- From: Nicholas Paldino [.NET/C# MVP]
- IStream.Read()
- Prev by Date: Re: need advice on how to best do this
- Next by Date: Re: Find control name though object sender?
- Previous by thread: Re: IStream.Read()
- Next by thread: Re: IStream.Read()
- Index(es):
Relevant Pages
|