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

Write() private static method

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