1 instantiation of StreamDescriptor
PresentationCore (1)
System\Windows\Media\StreamAsIStream.cs (1)
636StreamDescriptor sd = new StreamDescriptor
60 references to StreamDescriptor
PresentationCore (60)
System\Windows\Media\StreamAsIStream.cs (59)
17internal delegate void Dispose(ref StreamDescriptor pSD); 18internal delegate int Read(ref StreamDescriptor pSD, IntPtr buffer, uint cb, out uint cbRead); 20internal unsafe delegate int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion); 21internal delegate int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag); 22internal delegate int Write(ref StreamDescriptor pSD, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]byte[] buffer, uint cb, out uint cbWritten); 24internal delegate int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten); 25internal delegate int SetSize(ref StreamDescriptor pSD, long value); 26internal delegate int Revert(ref StreamDescriptor pSD); 27internal delegate int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags); 28internal delegate int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 29internal delegate int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 30internal delegate int Clone(ref StreamDescriptor pSD, out IntPtr stream); 31internal delegate int CanWrite(ref StreamDescriptor pSD, out bool canWrite); 32internal delegate int CanSeek(ref StreamDescriptor pSD, out bool canSeek); 52internal static void StaticDispose(ref StreamDescriptor pSD) 71StaticPtrs.pfnDispose = new StreamDescriptor.Dispose(StreamDescriptor.StaticDispose); 73StaticPtrs.pfnClone = new StreamDescriptor.Clone(StreamAsIStream.Clone); 74StaticPtrs.pfnCommit = new StreamDescriptor.Commit(StreamAsIStream.Commit); 75StaticPtrs.pfnCopyTo = new StreamDescriptor.CopyTo(StreamAsIStream.CopyTo); 76StaticPtrs.pfnLockRegion = new StreamDescriptor.LockRegion(StreamAsIStream.LockRegion); 77StaticPtrs.pfnRead = new StreamDescriptor.Read(StreamAsIStream.Read); 78StaticPtrs.pfnRevert = new StreamDescriptor.Revert(StreamAsIStream.Revert); 81StaticPtrs.pfnSeek = new StreamDescriptor.Seek(StreamAsIStream.Seek); 83StaticPtrs.pfnSetSize = new StreamDescriptor.SetSize(StreamAsIStream.SetSize); 84StaticPtrs.pfnStat = new StreamDescriptor.Stat(StreamAsIStream.Stat); 85StaticPtrs.pfnUnlockRegion = new StreamDescriptor.UnlockRegion(StreamAsIStream.UnlockRegion); 86StaticPtrs.pfnWrite = new StreamDescriptor.Write(StreamAsIStream.Write); 87StaticPtrs.pfnCanWrite = new StreamDescriptor.CanWrite(StreamAsIStream.CanWrite); 88StaticPtrs.pfnCanSeek = new StreamDescriptor.CanSeek(StreamAsIStream.CanSeek); 91internal static StreamDescriptor.Dispose pfnDispose; 92internal static StreamDescriptor.Read pfnRead; 94internal static StreamDescriptor.Seek pfnSeek; 96internal static StreamDescriptor.Stat pfnStat; 97internal static StreamDescriptor.Write pfnWrite; 99internal static StreamDescriptor.CopyTo pfnCopyTo; 101internal static StreamDescriptor.SetSize pfnSetSize; 102internal static StreamDescriptor.Commit pfnCommit; 103internal static StreamDescriptor.Revert pfnRevert; 104internal static StreamDescriptor.LockRegion pfnLockRegion; 105internal static StreamDescriptor.UnlockRegion pfnUnlockRegion; 106internal static StreamDescriptor.Clone pfnClone; 107internal static StreamDescriptor.CanWrite pfnCanWrite; 108internal static StreamDescriptor.CanSeek pfnCanSeek; 508internal static StreamAsIStream FromSD(ref StreamDescriptor sd) 515internal static int Clone(ref StreamDescriptor pSD, out IntPtr stream) 520internal static int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags) 525internal static int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten) 530internal static int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 535internal static unsafe int Read(ref StreamDescriptor pSD, IntPtr buffer, uint cb, out uint cbRead) 541internal static int Revert(ref StreamDescriptor pSD) 546internal unsafe static int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion) 551internal static int SetSize(ref StreamDescriptor pSD, long value) 556internal static int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag) 561internal static int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 566internal static int Write(ref StreamDescriptor pSD, byte[] buffer, uint cb, out uint cbWritten) 571internal static int CanWrite(ref StreamDescriptor pSD, out bool canWrite) 576internal static int CanSeek(ref StreamDescriptor pSD, out bool canSeek) 636StreamDescriptor sd = new StreamDescriptor
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
55internal extern static int /* HRESULT */ MILCreateStreamFromStreamDescriptor(ref System.Windows.Media.StreamDescriptor pSD, out IntPtr ppStream);