Good news. I'm getting closer to my goal. Found a working solution for C#, which could be the solution for VB.Net. And with that said, I can potentially convert it to VB6:
csharp Code:
[System.Runtime.InteropServices.DllImport("nvapi64.dll", EntryPoint = "fake")]
static extern int LoadNvApi64();
[System.Runtime.InteropServices.DllImport("nvapi.dll", EntryPoint = "fake")]
static extern int LoadNvApi32();
private void InitializeDedicatedGraphics()
{
try
{
if (Environment.Is64BitProcess)
LoadNvApi64();
else
LoadNvApi32();
}
catch { } // will always fail since 'fake' entry point doesn't exists
}
Important - call InitializeDedicatedGraphics() before any window is created
I found this working solution in https://stackoverflow.com/questions/...ated-rendering