Not sure you can really do that out of VB.Net, in that case it's probably easier to export the two fields yourself, but I don't know how this is really done in VB.Net
extern "C" __declspec(dllexport) unsigned long NvOptimusEnablement = 1;
extern "C" __declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 1;