1 instantiation of StreamDescriptor
PresentationCore (1)
System\Windows\Media\StreamAsIStream.cs (1)
635StreamDescriptor sd = new StreamDescriptor
60 references to StreamDescriptor
PresentationCore (60)
System\Windows\Media\StreamAsIStream.cs (59)
16internal delegate void Dispose(ref StreamDescriptor pSD); 17internal delegate int Read(ref StreamDescriptor pSD, IntPtr buffer, uint cb, out uint cbRead); 19internal unsafe delegate int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion); 20internal delegate int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag); 21internal delegate int Write(ref StreamDescriptor pSD, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]byte[] buffer, uint cb, out uint cbWritten); 23internal delegate int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten); 24internal delegate int SetSize(ref StreamDescriptor pSD, long value); 25internal delegate int Revert(ref StreamDescriptor pSD); 26internal delegate int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags); 27internal delegate int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 28internal delegate int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 29internal delegate int Clone(ref StreamDescriptor pSD, out IntPtr stream); 30internal delegate int CanWrite(ref StreamDescriptor pSD, out bool canWrite); 31internal delegate int CanSeek(ref StreamDescriptor pSD, out bool canSeek); 51internal static void StaticDispose(ref StreamDescriptor pSD) 70StaticPtrs.pfnDispose = new StreamDescriptor.Dispose(StreamDescriptor.StaticDispose); 72StaticPtrs.pfnClone = new StreamDescriptor.Clone(StreamAsIStream.Clone); 73StaticPtrs.pfnCommit = new StreamDescriptor.Commit(StreamAsIStream.Commit); 74StaticPtrs.pfnCopyTo = new StreamDescriptor.CopyTo(StreamAsIStream.CopyTo); 75StaticPtrs.pfnLockRegion = new StreamDescriptor.LockRegion(StreamAsIStream.LockRegion); 76StaticPtrs.pfnRead = new StreamDescriptor.Read(StreamAsIStream.Read); 77StaticPtrs.pfnRevert = new StreamDescriptor.Revert(StreamAsIStream.Revert); 80StaticPtrs.pfnSeek = new StreamDescriptor.Seek(StreamAsIStream.Seek); 82StaticPtrs.pfnSetSize = new StreamDescriptor.SetSize(StreamAsIStream.SetSize); 83StaticPtrs.pfnStat = new StreamDescriptor.Stat(StreamAsIStream.Stat); 84StaticPtrs.pfnUnlockRegion = new StreamDescriptor.UnlockRegion(StreamAsIStream.UnlockRegion); 85StaticPtrs.pfnWrite = new StreamDescriptor.Write(StreamAsIStream.Write); 86StaticPtrs.pfnCanWrite = new StreamDescriptor.CanWrite(StreamAsIStream.CanWrite); 87StaticPtrs.pfnCanSeek = new StreamDescriptor.CanSeek(StreamAsIStream.CanSeek); 90internal static StreamDescriptor.Dispose pfnDispose; 91internal static StreamDescriptor.Read pfnRead; 93internal static StreamDescriptor.Seek pfnSeek; 95internal static StreamDescriptor.Stat pfnStat; 96internal static StreamDescriptor.Write pfnWrite; 98internal static StreamDescriptor.CopyTo pfnCopyTo; 100internal static StreamDescriptor.SetSize pfnSetSize; 101internal static StreamDescriptor.Commit pfnCommit; 102internal static StreamDescriptor.Revert pfnRevert; 103internal static StreamDescriptor.LockRegion pfnLockRegion; 104internal static StreamDescriptor.UnlockRegion pfnUnlockRegion; 105internal static StreamDescriptor.Clone pfnClone; 106internal static StreamDescriptor.CanWrite pfnCanWrite; 107internal static StreamDescriptor.CanSeek pfnCanSeek; 507internal static StreamAsIStream FromSD(ref StreamDescriptor sd) 514internal static int Clone(ref StreamDescriptor pSD, out IntPtr stream) 519internal static int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags) 524internal static int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten) 529internal static int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 534internal static unsafe int Read(ref StreamDescriptor pSD, IntPtr buffer, uint cb, out uint cbRead) 540internal static int Revert(ref StreamDescriptor pSD) 545internal static unsafe int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion) 550internal static int SetSize(ref StreamDescriptor pSD, long value) 555internal static int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag) 560internal static int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 565internal static int Write(ref StreamDescriptor pSD, byte[] buffer, uint cb, out uint cbWritten) 570internal static int CanWrite(ref StreamDescriptor pSD, out bool canWrite) 575internal static int CanSeek(ref StreamDescriptor pSD, out bool canSeek) 635StreamDescriptor sd = new StreamDescriptor
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
54internal static extern int /* HRESULT */ MILCreateStreamFromStreamDescriptor(ref System.Windows.Media.StreamDescriptor pSD, out IntPtr ppStream);