Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Video Hook Driver Development Question (DirectDraw support)

Post Reply
Ari
Posts: 6
Joined: 2005-05-27 16:00

Video Hook Driver Development Question (DirectDraw support)

Post by Ari »

Hi, I poted this topic before:
[topic=2996][/topic]

And I (not me actually... My colleague programmer) have developed our version of the mirror driver for our VNC type software. (mostly Microsoft DDK sample code though)

But I think we are having same problem as him :-( :
http://www.codecomments.com/archive421- ... 06643.html
(we realized the driver disable the DirectDraw HW acceleration etc.)

We are thinking how we support the DD....
We are assuming that the perm3 sample may help this...

For example, implement functions such as DdGetDriverInfo(), DrvGetDirectDrawInfo() DrvEnabeDirectDraw() ....

We are not sure this is the right way or not.

Does anyone know this work or not?

or

If anyone give us advise for this, we are very appreciate!!! :smile:
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Rudi De Vos »

This is a lot of work, you also need to implement the heap managment.
Mirror drivers for Vista support directx.
Ari
Posts: 6
Joined: 2005-05-27 16:00

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Ari »

Hi Rudi,

Thank you for your reply and sorry about my "not UltraVNC -related question" in this forum... :oops:

I understand it will be lot of work but I really want to get our driver to work with DX.
It seems that the winvnc driver is fine with DX-related products such as WinDVD, and I think the people who developed the winvnc driver may have known about this.
If you know more about this issue or if you know of some links you could point me to, I would really appreciate it.

I will check Vista's driver also (do you think this would work OK on XP?)

Thank you very much!

Ari
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Rudi De Vos »

The vncdrv does not contain DdGetDriverInfo(), DrvGetDirectDrawInfo() DrvEnabeDirectDraw
There is nothing special in the vncdrv code the handle directX...

The user code (winvnc) try to handle temp resolutions and switch to non driver mode...if your windvd change the resolution, it a good chance that
winvnc also switch to non driver mode.... :)

Vista will not work on XP. Vista mirror driver can force a gdi copy of the presentation layer, does not exist on XP.
Ari
Posts: 6
Joined: 2005-05-27 16:00

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Ari »

Hi Rudi,

Thank you for your response.

I tried the UltraVNC's hook driver with VNC and realized that the DirectDraw Acceleration of DX turns to "not available" only when the driver is "Hooked"! :o

This is good news... If our driver can do this our issue, I think, can be resolved... 

Currently, our driver is not very good... If we install our driver, the
DirectDraw Acceleration turns to "not available" no matter what. If its only enabled on the Device Manager, then we cannot use the DirectDraw Acceleration. To enable the DirectDraw Acceleration, I have to disable the driver...

Hmmmm... :idea:

Do we need any implementation to make our driver only disable the DD Acceleration when it is hooked like you guys have?

If you can give any hints, we would really, really appreciate it!

Thanks,

Ari
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Rudi De Vos »

This has nothing to do with the way the driver is made.
Your software need to manage the driver

Check the vnc code (vnc)videodriver.cpp, for activate/desactivate driver.
(attach.todesktop registry key)
A inactive driver has no influence on the system
Ari
Posts: 6
Joined: 2005-05-27 16:00

Re: Video Hook Driver Development Question (DirectDraw suppo

Post by Ari »

Thank you Rudi,

I will try this!

... I realized that the MS's DDK sample as it self doesn't make disable the DD acceleration when it installed. But our one makes disable DD acceleration right after the driver is installed! ..... hmmmmm :-(
Post Reply