Пример #1
0
 private static unsafe bool GetNonClientMetrics(out NativeMethods.NONCLIENTMETRICS metrics)
 {
     metrics = new NativeMethods.NONCLIENTMETRICS {
         cbSize = (uint)sizeof(NativeMethods.NONCLIENTMETRICS)
     };
     fixed(void *m = &metrics)
     {
         return(UnsafeNativeMethods.SystemParametersInfo(NativeMethods.SPI_GETNONCLIENTMETRICS, metrics.cbSize, m, 0));
     }
 }
 public static extern bool SystemParametersInfo(int uiAction, int uiParam, [In, Out] NativeMethods.NONCLIENTMETRICS pvParam, int fWinIni);