Example #1
0
 public static unsafe HResult DwmGetWindowAttribute(IntPtr hwnd, DwmWindowAttributeType dwAttribute,
                                                    out Rectangle rect)
 {
     fixed(Rectangle *ptr = &rect) return(DwmApiMethods.DwmGetWindowAttribute(hwnd, dwAttribute, new IntPtr(ptr), (uint)sizeof(Rectangle)));
 }
Example #2
0
 public static extern HResult DwmGetWindowAttribute(IntPtr hwnd, DwmWindowAttributeType dwAttribute,
                                                    IntPtr pvAttribute,
                                                    uint cbAttribute);
Example #3
0
 public static unsafe HResult DwmSetWindowAttribute(IntPtr hwnd, DwmWindowAttributeType dwAttribute,
                                                    [In] ref int attrValue)
 {
     fixed(int *ptr = &attrValue) return(DwmApiMethods.DwmSetWindowAttribute(hwnd, dwAttribute, new IntPtr(ptr), sizeof(int)));
 }