Writes data to a stream using IStream::Write.
_StreamWrite(ByRef $oStream, $pMemory, $iSize, ByRef $iWrittenSize[, $bCommit])
| $oStream | IStream COM object. |
| $pMemory | Pointer to the data buffer to write. |
| $iSize | Size of the data to write (in bytes). |
| $iWrittenSize | [out] Number of bytes written. |
| $bCommit | [optional] Commit changes to the stream (default: True). |
| Success: | 1 |
| Failure: | 0, sets @error to: 1 - Invalid stream object. 2 - COM error (HRESULT in @extended). |