// Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)

#pragma once

#pragma comment(lib, "Dxva2.lib") 

#include <Windows.h>
#include <HighLevelMonitorConfigurationAPI.h>

class Monitor;

class BrightnessController {
public:
    BrightnessController(HMONITOR monitor);
    BrightnessController(Monitor &monitor);

    float Brightness();
    void Brightness(float level);

private:
    bool SupportsBrightnessAPI(PHYSICAL_MONITOR &pm);
};
// Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)

#pragma once

#pragma comment(lib, "Dxva2.lib") 

#include <Windows.h>
#include <HighLevelMonitorConfigurationAPI.h>

class Monitor;

class BrightnessController {
public:
    BrightnessController(HMONITOR monitor);
    BrightnessController(Monitor &monitor);

    float Brightness();
    void Brightness(float level);

private:
    bool _useBrightnessAPI;

    bool SupportsBrightnessAPI(PHYSICAL_MONITOR &pm);
};
Add bool for brightness API usage
Add bool for brightness API usage
