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

Clone() private static method

private static Clone ( IntPtr @this, IntPtr &ppstm ) : int
@this System.IntPtr
ppstm System.IntPtr
return int
			private static int Clone(IntPtr @this, out IntPtr ppstm)
			{
				ppstm = IntPtr.Zero;
#if MAP_EX_TO_HR
				try
				{
#endif
					IStream newInterface;

					GetObject(@this).managedInterface.Clone(out newInterface);
					ppstm = ManagedToNativeWrapper.GetInterface(newInterface);
					return S_OK;
#if MAP_EX_TO_HR
				}
				catch (Exception e)
				{
					return GetHRForException(e);
				}
#endif
			}
		}