System.Drawing.ComIStreamMarshaler.ManagedToNativeWrapper.Clone C# (CSharp) 메소드

Clone() 개인적인 정적인 메소드

private static Clone ( IntPtr @this, IntPtr &ppstm ) : int
@this System.IntPtr
ppstm System.IntPtr
리턴 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
			}
		}