コード例 #1
0
        public static UIntPtr Startup()
        {
            var input = new GdiplusStartupInput {
                GdiplusVersion = 1
            };
            GpStatus status = Imports.GdiplusStartup(
                out UIntPtr token,
                ref input,
                out GdiplusStartupOutput _);

            if (status != GpStatus.Ok)
            {
                throw GetExceptionForStatus(status);
            }

            return(token);
        }
コード例 #2
0
 public static extern GpStatus GdiplusStartup(
     out UIntPtr token,
     [In] ref GdiplusStartupInput input,
     out GdiplusStartupOutput output);