why is this not automatic when using directx?
this NvOptimusEnablement is only working when directx is used right? maybe also d2d?

The trick created the typelib for directx9 and direct2d, is it not possible to add NvOptimusEnablement in those typelibs?