Example #1
0
 public static extern void SHCreateStreamOnFile(string file,
                                                 Stgm dwMode,
                                                 [MarshalAs(UnmanagedType.Interface)]out IStream openedStream);
Example #2
0
 // Only in version 6 and later
 public static extern void SHCreateStreamOnFileEx([MarshalAs(UnmanagedType.LPWStr)]string file,
                                                 Stgm dwMode,
                                                 Int32 dwAttributes, // Used if a file is created.  Identical to dwFlagsAndAttributes param of CreateFile.
                                                 bool create,
                                                 IntPtr pTemplate,   // Reserved, always pass null.
                                                 [MarshalAs(UnmanagedType.Interface)]out IStream openedStream);
Example #3
0
 private static extern Hresult SHCreateStreamOnFileEx(string fileName, Stgm grfMode, uint attributes, bool create,
     IStream reserved, out IStream stream);
Example #4
0
 internal static extern void StgOpenStorageOnILockBytes(ILockBytes plkbyt, IStorage pstgPriority, Stgm grfMode,
     IntPtr snbExclude, uint reserved,
     out IStorage ppstgOpen);
Example #5
0
 internal static extern int StgOpenStorage([MarshalAs(UnmanagedType.LPWStr)] string wcsName,
     IStorage pstgPriority, Stgm grfMode, IntPtr snbExclude, int reserved,
     out IStorage ppstgOpen);
Example #6
0
 internal static extern int StgCreateDocfileOnILockBytes(ILockBytes plkbyt, Stgm grfMode, uint reserved,
     out IStorage ppstgOpen);