Hello Didier Cabalé,
The error you are encountering when trying to instantiate the DirectShow Video Mixing Renderer 9 (VMR9) inside a Hyper‑V guest is not related to Windows for Business or Windows 365 Enterprise. This is a local virtualization and graphics subsystem limitation.
VMR9 depends on DirectX 9 hardware acceleration and a functioning Direct3D device. In a physical Windows 7 installation, the DirectShow runtime can create the VMR9 filter because the GPU driver exposes the required Direct3D capabilities. In a Hyper‑V guest, however, the virtual GPU stack is limited. Hyper‑V’s synthetic video adapter does not expose full Direct3D/DirectX 9 acceleration, and therefore the COM instantiation of VMR9 fails with error 0x80040273 (VFW_E_DDRAW_CAPS_NOT_SUITABLE). This is consistent with what you observed: the same script works on bare metal but fails in Hyper‑V and VirtualBox, because both hypervisors emulate only basic graphics functions without full DirectShow renderer support.
There is no registry or configuration tweak that will enable VMR9 in Hyper‑V guests. The only supported options are:
- Use RemoteFX vGPU or Discrete Device Assignment (DDA) with a physical GPU passed through to the VM. This allows the guest OS to access Direct3D capabilities and successfully instantiate VMR9.
- Alternatively, replace VMR9 with the Enhanced Video Renderer (EVR), which is supported in newer Windows versions and does not require the same legacy DirectDraw/Direct3D hooks. EVR is the recommended renderer for development on Windows 7 and later.
In short, the failure is expected because Hyper‑V’s virtual GPU does not expose the hardware acceleration required by VMR9. To proceed with development, you either need GPU passthrough (RemoteFX/DDA) or switch to EVR.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.