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

Stat() private static method

private static Stat ( IntPtr @this, STATSTG &pstatstg, int grfStatFlag ) : int
@this System.IntPtr
pstatstg System.Runtime.InteropServices.ComTypes.STATSTG
grfStatFlag int
return int
			private static int Stat(IntPtr @this, out STATSTG pstatstg, int grfStatFlag)
			{
#if MAP_EX_TO_HR
				try
				{
#endif
					GetObject(@this).managedInterface.Stat(out pstatstg, grfStatFlag);
					return S_OK;
#if MAP_EX_TO_HR
				}
				catch (Exception e)
				{
					pstatstg = new STATSTG();
					return GetHRForException(e);
				}
#endif
			}