예제 #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
파일: Methods.cs 프로젝트: Cryru/Emotion
 public static extern HResult DwmGetWindowAttribute(IntPtr hwnd, DwmWindowAttributeType dwAttribute,
                                                    IntPtr pvAttribute,
                                                    uint cbAttribute);
예제 #3
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)));
 }