public static HIGHCONTRAST SystemParameterInfo_GetHIGHCONTRAST() { HIGHCONTRAST highcontrast = new HIGHCONTRAST { cbSize = Marshal.SizeOf(typeof(HIGHCONTRAST)) }; if (!NativeMethods._SystemParametersInfo_HIGHCONTRAST(SPI.GETHIGHCONTRAST, highcontrast.cbSize, ref highcontrast, SPIF.None)) { HRESULT.ThrowLastError(); } return(highcontrast); }
public static HIGHCONTRAST SystemParameterInfo_GetHIGHCONTRAST() { HIGHCONTRAST hIGHCONTRAST = new HIGHCONTRAST() { cbSize = Marshal.SizeOf(typeof(HIGHCONTRAST)) }; HIGHCONTRAST hIGHCONTRAST1 = hIGHCONTRAST; if (!Standard.NativeMethods.SystemParametersInfoW_2(SPI.GETHIGHCONTRAST, hIGHCONTRAST1.cbSize, ref hIGHCONTRAST1, SPIF.None)) { HRESULT.ThrowLastError(); } return(hIGHCONTRAST1); }
private void _InitializeHighContrast() { Standard.HIGHCONTRAST highcontrast = Standard.NativeMethods.SystemParameterInfo_GetHIGHCONTRAST(); this.HighContrast = (highcontrast.dwFlags & Standard.HCF.HIGHCONTRASTON) != 0; }
public static HIGHCONTRAST SystemParameterInfo_GetHIGHCONTRAST() { var hc = new HIGHCONTRAST { cbSize = Marshal.SizeOf(typeof(HIGHCONTRAST)) }; if (!_SystemParametersInfo_HIGHCONTRAST(SPI.GETHIGHCONTRAST, hc.cbSize, ref hc, SPIF.None)) { HRESULT.ThrowLastError(); } return hc; }
private static extern bool _SystemParametersInfo_HIGHCONTRAST(SPI uiAction, int uiParam, [In][Out] ref HIGHCONTRAST pvParam, SPIF fWinIni);