コード例 #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)));
 }