private static extern void GetRenderingExtImpl(IntPtr nativeDisplay, out int w, out int h); [MethodImpl(MethodImplOptions.InternalCall)]