1 instantiation of StreamDescriptor
PresentationCore (1)
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (1)
774StreamDescriptor sd = new StreamDescriptor();
60 references to StreamDescriptor
PresentationCore (60)
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (59)
33internal delegate void Dispose(ref StreamDescriptor pSD); 34internal delegate int Read(ref StreamDescriptor pSD, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2), Out]byte[] buffer, uint cb, out uint cbRead); 40internal unsafe delegate int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion); 41internal delegate int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag); 42internal delegate int Write(ref StreamDescriptor pSD, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]byte[] buffer, uint cb, out uint cbWritten); 48internal delegate int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten); 49internal delegate int SetSize(ref StreamDescriptor pSD, long value); 50internal delegate int Revert(ref StreamDescriptor pSD); 51internal delegate int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags); 52internal delegate int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 53internal delegate int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType); 54internal delegate int Clone(ref StreamDescriptor pSD, out IntPtr stream); 55internal delegate int CanWrite(ref StreamDescriptor pSD, out bool canWrite); 56internal delegate int CanSeek(ref StreamDescriptor pSD, out bool canSeek); 89internal static void StaticDispose(ref StreamDescriptor pSD) 113StaticPtrs.pfnDispose = new StreamDescriptor.Dispose(StreamDescriptor.StaticDispose); 115StaticPtrs.pfnClone = new StreamDescriptor.Clone(StreamAsIStream.Clone); 116StaticPtrs.pfnCommit = new StreamDescriptor.Commit(StreamAsIStream.Commit); 117StaticPtrs.pfnCopyTo = new StreamDescriptor.CopyTo(StreamAsIStream.CopyTo); 118StaticPtrs.pfnLockRegion = new StreamDescriptor.LockRegion(StreamAsIStream.LockRegion); 119StaticPtrs.pfnRead = new StreamDescriptor.Read(StreamAsIStream.Read); 120StaticPtrs.pfnRevert = new StreamDescriptor.Revert(StreamAsIStream.Revert); 123StaticPtrs.pfnSeek = new StreamDescriptor.Seek(StreamAsIStream.Seek); 125StaticPtrs.pfnSetSize = new StreamDescriptor.SetSize(StreamAsIStream.SetSize); 126StaticPtrs.pfnStat = new StreamDescriptor.Stat(StreamAsIStream.Stat); 127StaticPtrs.pfnUnlockRegion = new StreamDescriptor.UnlockRegion(StreamAsIStream.UnlockRegion); 128StaticPtrs.pfnWrite = new StreamDescriptor.Write(StreamAsIStream.Write); 129StaticPtrs.pfnCanWrite = new StreamDescriptor.CanWrite(StreamAsIStream.CanWrite); 130StaticPtrs.pfnCanSeek = new StreamDescriptor.CanSeek(StreamAsIStream.CanSeek); 133internal static StreamDescriptor.Dispose pfnDispose; 134internal static StreamDescriptor.Read pfnRead; 140internal static StreamDescriptor.Seek pfnSeek; 142internal static StreamDescriptor.Stat pfnStat; 143internal static StreamDescriptor.Write pfnWrite; 149internal static StreamDescriptor.CopyTo pfnCopyTo; 151internal static StreamDescriptor.SetSize pfnSetSize; 152internal static StreamDescriptor.Commit pfnCommit; 153internal static StreamDescriptor.Revert pfnRevert; 154internal static StreamDescriptor.LockRegion pfnLockRegion; 155internal static StreamDescriptor.UnlockRegion pfnUnlockRegion; 156internal static StreamDescriptor.Clone pfnClone; 157internal static StreamDescriptor.CanWrite pfnCanWrite; 158internal static StreamDescriptor.CanSeek pfnCanSeek; 624internal static StreamAsIStream FromSD(ref StreamDescriptor sd) 631internal static int Clone(ref StreamDescriptor pSD, out IntPtr stream) 636internal static int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags) 645internal static int CopyTo(ref StreamDescriptor pSD, IntPtr pstm, long cb, out long cbRead, out long cbWritten) 650internal static int LockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 655internal static int Read(ref StreamDescriptor pSD, byte[] buffer, uint cb, out uint cbRead) 660internal static int Revert(ref StreamDescriptor pSD) 669internal unsafe static int Seek(ref StreamDescriptor pSD, long offset, uint origin, long* plibNewPostion) 674internal static int SetSize(ref StreamDescriptor pSD, long value) 679internal static int Stat(ref StreamDescriptor pSD, out System.Runtime.InteropServices.ComTypes.STATSTG statstg, uint grfStatFlag) 684internal static int UnlockRegion(ref StreamDescriptor pSD, long libOffset, long cb, uint dwLockType) 689internal static int Write(ref StreamDescriptor pSD, byte[] buffer, uint cb, out uint cbWritten) 694internal static int CanWrite(ref StreamDescriptor pSD, out bool canWrite) 699internal static int CanSeek(ref StreamDescriptor pSD, out bool canSeek) 774StreamDescriptor sd = new StreamDescriptor();
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
98internal extern static int /* HRESULT */ MILCreateStreamFromStreamDescriptor(ref System.Windows.Media.StreamDescriptor pSD, out IntPtr ppStream);