Programmatically selecting integrated graphics in nVidia Optimus

There are many questions and answers about how to select nVidia discrete adapter on runtime on Windows platform. The easiest way is to export a NvOptimusEnablement variable like this:

extern “C” _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

I have the opposite requirement. I need to set the Integrated graphics in runtime for my application, no matter what is the Preferred graphic processor in NVIDIA control panel. This variable is not suitable for this.

How can I make this?

After 3.5 years since the original topic message, is there any method found or developed to hint that an application want integrated graphics rather than discrete NVIDIA?

+1 for this request

+1 for this request

+1 for this request