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

LockRegion() private static method

private static LockRegion ( IntPtr @this, long libOffset, long cb, int dwLockType ) : int
@this System.IntPtr
libOffset long
cb long
dwLockType int
return int
			private static int LockRegion(IntPtr @this, long libOffset, long cb, int dwLockType)
			{
#if MAP_EX_TO_HR
				try
				{
#endif
					GetObject(@this).managedInterface.LockRegion(libOffset, cb, dwLockType);
					return S_OK;
#if MAP_EX_TO_HR
				}
				catch (Exception e)
				{
					return GetHRForException(e);
				}
#endif
			}