示例#1
0
文件: Helpers.cs 项目: zyj0021/WinApi
 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)));
 }
示例#2
0
文件: Helpers.cs 项目: zyj0021/WinApi
 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)));
 }