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

Read() private static method

private static Read ( IntPtr @this, byte pv, int cb, IntPtr pcbRead ) : int
@this System.IntPtr
pv byte
cb int
pcbRead System.IntPtr
return int
			private static int Read(IntPtr @this, byte[] pv, int cb, IntPtr pcbRead)
			{
#if MAP_EX_TO_HR
				try
				{
#endif
					GetObject(@this).managedInterface.Read(pv, cb, pcbRead);
					return S_OK;
#if MAP_EX_TO_HR
				}
				catch (Exception e)
				{
					return GetHRForException(e);
				}
#endif
			}