private static bool ReadMonitorInfo(out POLAR_SSET_MONITORINFO monitorInfo) { POLAR_SSET_GENERAL psg = new POLAR_SSET_GENERAL(); monitorInfo = new POLAR_SSET_MONITORINFO(); // Fill general information psg.iConnection = 1; psg.hOwnerWnd = IntPtr.Zero; // Read monitor info from HR monitor return(API_ReadMonitorInfo(ref psg, ref monitorInfo) != 0); }
private static bool ReadMonitorInfo(out POLAR_SSET_MONITORINFO monitorInfo) { POLAR_SSET_GENERAL psg = new POLAR_SSET_GENERAL(); monitorInfo = new POLAR_SSET_MONITORINFO(); // Fill general information psg.iConnection = 1; psg.hOwnerWnd = IntPtr.Zero; // Read monitor info from HR monitor return (API_ReadMonitorInfo(ref psg, ref monitorInfo) != 0); }
private static extern Int32 API_ReadMonitorInfo(ref POLAR_SSET_GENERAL psg, ref POLAR_SSET_MONITORINFO psmi);