IStream.cs 799 B

1234567891011121314151617181920
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Runtime.InteropServices.ComTypes;
  4. namespace LYFZ.OtherExpansion.SkinControl
  5. {
  6. [Guid("0000000c-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  7. [ComImport]
  8. public interface IStream : ISequentialStream
  9. {
  10. int Seek(ulong dlibMove, uint dwOrigin, out ulong plibNewPosition);
  11. int SetSize(ulong libNewSize);
  12. int CopyTo([In] IStream pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten);
  13. int Commit(uint grfCommitFlags);
  14. int Revert();
  15. int LockRegion(ulong libOffset, ulong cb, uint dwLockType);
  16. int UnlockRegion(ulong libOffset, ulong cb, uint dwLockType);
  17. int Stat(out System.Runtime.InteropServices.ComTypes.STATSTG pstatstg, uint grfStatFlag);
  18. int Clone(out IStream ppstm);
  19. }
  20. }