System.Drawing.ComIStreamMarshaler.ManagedToNativeWrapper.CopyTo C# (CSharp) Method

CopyTo() private static method

private static CopyTo ( IntPtr @this, IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten ) : int
@this System.IntPtr
pstm IStream
cb long
pcbRead System.IntPtr
pcbWritten System.IntPtr
return int
			private static int CopyTo(IntPtr @this, IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten)
			{
#if MAP_EX_TO_HR
				try
				{
#endif
					GetObject(@this).managedInterface.CopyTo(pstm, cb, pcbRead, pcbWritten);
					return S_OK;
#if MAP_EX_TO_HR
				}
				catch (Exception e)
				{
					return GetHRForException(e);
				}
#endif
			}