Binarysharp.MemoryManagement.Windows.WindowCore.GetSystemMetrics C# (CSharp) Method

GetSystemMetrics() public static method

Retrieves the specified system metric or system configuration setting.
public static GetSystemMetrics ( SystemMetrics metric ) : int
metric SystemMetrics The system metric or configuration setting to be retrieved.
return int
        public static int GetSystemMetrics(SystemMetrics metric)
        {
            var ret = NativeMethods.GetSystemMetrics(metric);

            if (ret != 0)
                return ret;

            throw new Win32Exception("The call of GetSystemMetrics failed. Unfortunately, GetLastError code doesn't provide more information.");
        }