[Ntdev] How to create fake monitor?

Hi Friends,
I wanted to create one virtual monitor using my display driver. So after
installation of my driver user should have two displays one default one and
one fake one. I have read some where that, for XPDM drivers at time of
VideoPortInitialize in HwGetVideoChildDescriptor we can inform videoPort
that how many monitors present. Can some one give some more insite on this
or any reference material? I tried but some how driver is stopped working. I
have done intial debugging but not able to findout the reason behind
failing.

Basically I want my driver to do following things

  1. It should always say two displays are present.
  2. By default it has to be extended but user can change it into duplicate.

Please give some inputs.

/sarbojit

Sarbojit Sarkar wrote:

I wanted to create one virtual monitor using my display driver. So
after installation of my driver user should have two displays one
default one and one fake one. I have read some where that, for XPDM
drivers at time of VideoPortInitialize in HwGetVideoChildDescriptor we
can inform videoPort that how many monitors present. Can some one give
some more insite on this or any reference material? I tried but some
how driver is stopped working. I have done intial debugging but not
able to findout the reason behind failing.

Basically I want my driver to do following things

  1. It should always say two displays are present.
  2. By default it has to be extended but user can change it into duplicate.

Did you read the documentation? If you return VIDEO_ENUM_MORE_DEVICES
from HwGetVideoChildDescriptor, then GDI will call
HwGetVideoChildDescriptor again to find out about the other devices.
Just return devices until you are tired of doing so.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.