hdc = GDI32.CreateDC(driverName, devName, null, ref
devmode);
I am running in Session 1 as an application.
devName = "\\\\.\\DISPLAYV4"
There are 5 virtual displays and CreateDC fails on all of them not
just my mirror driver. I can CreateDC for DISPLAY1. Is there some
reason this code will run on 32bit Windows 7 and not 64bit? Is there
a reason you can't CreateDC on a virtual display in x64 Windows 7.
Is the driver signed? I think x64 Windows requires signed drivers by
default while x86 did not. (I'd expect the VNC driver to be signed,
but maybe it's failing to load for an unrelated reason.)
Sorry if that is also an obvious thing. :) I don't know much about
writing drivers so I'm just trying to think of things that are
different between x64 and x86 Windows.