Exemplo n.º 1
0
        public unsafe void CreateFontIndirect()
        {
            NativeMethods.LOGFONTW logFont = default;
            IntPtr handle = IntUnsafeNativeMethods.CreateFontIndirectW(ref logFont);

            Assert.NotEqual(IntPtr.Zero, handle);
            Assert.True(Gdi32.DeleteObject(handle) != BOOL.FALSE);
        }