12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
- namespace Biff8Excel.COM
- {
- [ComImport, Guid("0000000b-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IStorage
- {
- void CreateStream(string pwcsName, int grfMode, int reserved1, int reserved2, out IStreamRef ppstm);
- void OpenStream(string pwcsName, IntPtr reserved1, int grfMode, int reserved2, out IStreamRef ppstm);
- void CreateStorage(string pwcsName, int grfMode, int reserved1, int reserved2, out IStorage ppstg);
- void OpenStorage(string pwcsName, IStorage pstgPriority, int grfMode, IntPtr snbExclude, int reserved, out IStorage ppstg);
- void CopyTo(int ciidExclude, IntPtr rgiidExclude, IntPtr snbExclude, IStorage pstgDest);
- void MoveElementTo(string pwcsName, IStorage pstgDest, string pwcsNewName, int grfFlags);
- void Commit(int grfCommitFlags);
- void Revert();
- void EnumElements(int reserved1, IntPtr reserved2, int reserved3, out IEnumStatStg ppenum);
- void DestroyElement(string pwcsName);
- void RenameElement(string pwcsOldName, string pwcsNewName);
- void SetElementTimes(string pwcsName, FILETIME pctime, FILETIME patime, FILETIME pmtime);
- void SetClass(Guid clsid);
- void SetStateBits(int grfStateBits, int grfMask);
- void Stat(out STATSTG pstatstg, int grfStatFlag);
- }
- }
|