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
}
}