I came across this post here C# Which is the fastest way to take a screen shot? and am trying to implement the answer that utilizes SharpDX. It appears to run fine on Windows 10, however, it crashes on Windows 7. The error it gives is:
Unhandled Exception: SharpDX.SharpDXException: HRESULT: [0x800004002], Module: [General],
ApiCode: [E_NOINTERFACE/No such interface supported], Message No such interface supported
And the stack trace it points to...
var factory = new Factory1();
var adapter = factory.GetAdapter1(0);
var device = new SharpDX.Direct3D11.Device(adapter);
var output = adapter.GetOutput(0);
var output1 = output.QueryInterface<Output1>();
Happens at output1 line where it does the QueryInterface. I don't know a whole lot about graphics drivers, but is this an issue with the DirectX11 configuration? Or is this something inherent to Windows 7?