shcreatestreamonfile (shlwapi)
Last changed: bogdan_mabo-198.207.218.1

.
Summary
Opens or creates a file and retrieves a stream to read or write to that file.

C# Signature:

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = false, EntryPoint = "SHCreateStreamOnFileEx")]

static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);

Another C# Signature:

[DllImport("shlwapi.dll", CharSet=CharSet.Unicode, PreserveSig=false)]

static extern IStream SHCreateStreamOnFileEx(string pszFile, uint grfMode, uint dwAttributes, bool fCreate, IStream pstmTemplate);

VB Signature:

Declare Function SHCreateStreamOnFileEx Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation