- internal static extern Status GdipMeasureString(IntPtr graphics, string str, int length, IntPtr font,
- ref RectangleF layoutRect, IntPtr stringFormat, out RectangleF boundingBox, out int codepointsFitted,
- out int linesFilled);
+ internal unsafe static extern Status GdipMeasureString(IntPtr graphics, string str, int length,
+ IntPtr font, ref RectangleF layoutRect, IntPtr stringFormat, out RectangleF boundingBox,
+ int *codepointsFitted, int *linesFilled);