Exporting symbol on a binary (windows)

Is there any way to dllexport a constant from an executable in windows?

in particular i'm trying to do this: https://stackoverflow.com/questions/16823372/forcing-machine-to-use-dedicated-graphics-card/39047129#39047129

in order to get an application to always run on the discrete graphics card by default but can't find a way to export anything but functions and as far as i've seen, it would only work for dlls not for executables

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.