private _ZoomWindowIdeal ( |
||
windowRef | ||
inPartCode | short | |
toIdealSize | ||
return | OSStatus |
internal static void ZoomWindowIdeal(IntPtr windowRef, WindowPartCode inPartCode, ref CarbonPoint toIdealSize) { IntPtr num = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CarbonPoint))); Marshal.StructureToPtr((object)toIdealSize, num, false); OSStatus errorCode = API._ZoomWindowIdeal(windowRef, (short)inPartCode, num); toIdealSize = (CarbonPoint)Marshal.PtrToStructure(num, typeof(CarbonPoint)); Marshal.FreeHGlobal(num); if (errorCode != OSStatus.NoError) { throw new MacOSException(errorCode); } }