public static NONCLIENTMETRICS SystemParameterInfo_GetNONCLIENTMETRICS() { NONCLIENTMETRICS nonclientmetrics = Utility.IsOSVistaOrNewer ? NONCLIENTMETRICS.VistaMetricsStruct : NONCLIENTMETRICS.XPMetricsStruct; if (!NativeMethods._SystemParametersInfo_NONCLIENTMETRICS(SPI.GETNONCLIENTMETRICS, nonclientmetrics.cbSize, ref nonclientmetrics, SPIF.None)) { HRESULT.ThrowLastError(); } return(nonclientmetrics); }
public static NONCLIENTMETRICS SystemParameterInfo_GetNONCLIENTMETRICS() { NONCLIENTMETRICS nONCLIENTMETRIC = (Utility.IsOSVistaOrNewer ? NONCLIENTMETRICS.VistaMetricsStruct : NONCLIENTMETRICS.XPMetricsStruct); if (!Standard.NativeMethods.SystemParametersInfoW_1(SPI.GETNONCLIENTMETRICS, nONCLIENTMETRIC.cbSize, ref nONCLIENTMETRIC, SPIF.None)) { HRESULT.ThrowLastError(); } return(nONCLIENTMETRIC); }
private static extern bool _SystemParametersInfo_NONCLIENTMETRICS(SPI uiAction, int uiParam, [In][Out] ref NONCLIENTMETRICS pvParam, SPIF fWinIni);