Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Mirror driver on Windows 7

Post Reply
remotepc
8
8
Posts: 14
Joined: 2006-07-10 06:52

Mirror driver on Windows 7

Post by remotepc »

Hi ,

While using the mirror driver on Windows 7 i have got a few observations.

If the driver is active and I open any windows settings control like " regedit" the whole viewer screen turns into black . If I change the UAC from default to the 3rd category (showing UAC without secure desktop) it works fine.

Also, if I send 'Ctrl + Alt + del" while the driver is active , again the screen turns to black. This time even changing UAC behavior does now help. If I uninstall driver , it starts working fine.

Please let me know if this is a known issue OR I m dong sth wrong . As in the Mirror driver 2 docs it says compatible with Win 7.

Thanks,
Praveen
remotepc
8
8
Posts: 14
Joined: 2006-07-10 06:52

Re: Mirror driver on Windows 7

Post by remotepc »

Hi Rudi,

Is there any update on this.

Thanks
Praveen
remotepc
8
8
Posts: 14
Joined: 2006-07-10 06:52

Re: Mirror driver on Windows 7

Post by remotepc »

Hi,

Can anyone please update for this .

Regards,
Praveen
prankstare
Posts: 1
Joined: 2010-03-15 04:43

Re: Mirror driver on Windows 7

Post by prankstare »

remotepc wrote:Hi ,

While using the mirror driver on Windows 7 i have got a few observations.

If the driver is active and I open any windows settings control like " regedit" the whole viewer screen turns into black . If I change the UAC from default to the 3rd category (showing UAC without secure desktop) it works fine.

Also, if I send 'Ctrl + Alt + del" while the driver is active , again the screen turns to black. This time even changing UAC behavior does now help. If I uninstall driver , it starts working fine.

Please let me know if this is a known issue OR I m dong sth wrong . As in the Mirror driver 2 docs it says compatible with Win 7.

Thanks,
Praveen

Hey, first of all, would you like to help me saying how did you get the mirror driver to work under Windows 7 x86-64? I just can't make it work...
remotepc
8
8
Posts: 14
Joined: 2006-07-10 06:52

Re: Mirror driver on Windows 7

Post by remotepc »

mirror driver on Windows7 64 bit have some issues .Somhow on some machines it does not install correctly .under display adapter one can see entry for mv2 but setupdrv.exe simply fails .

Rudi ,

Any suggestion ?

Regards
Manu
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

remotepc wrote:mirror driver on Windows7 64 bit have some issues .Somhow on some machines it does not install correctly .under display adapter one can see entry for mv2 but setupdrv.exe simply fails .

Rudi ,

Any suggestion ?

Regards
Manu
I confirm that. Moreover, it used to work fine on my system, but after I reinstalled UVNC (for other reasons), it fails permanently. [s]Clicking "uninstall.bat" or "install.bat" does nothing, and[/s] when I "Check the Mirror Driver" in UVNC settings (during a session), it no longer shows any "OK" dialog (only shows the message "The driver is not active" when the session isn't running). Manual reinstallation of the driver also didn't help.
Last edited by dinvlad on 2010-08-01 17:19, edited 2 times in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

uninstall.bat" or "install.bat

Vista/win7
1) open cmd "run as admin"
2) goto folder and manual execute in the elevated cmd the install/uninstall.bat

Bat files doesn't auto elevate and driver install's require elevation.
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

This is supposed, of course I've done that :) The driver is installed, however it doesn't work properly (at all)
Last edited by dinvlad on 2010-08-01 17:14, edited 2 times in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

Is winvnc running as service or winvnc.exe started "run as".

A normal app can't activate a driver ( win7 security)
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

It is running as service (ran "C:\Program Files\UltraVNC\winvnc.exe -startservice" as Administrator)
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

in a elevated cmd
net start uvnc_service
-> does it tell already running

Try (1)
net stop uvnc_service
manual start winvnc with "run as admin"
connect viewer
and try again

(Try (2)
remove the driver via the device manager
( right click computer -> properties -> devices ->...)
reboot
Check if driver is gone
open cmd as admin
goto driver folder ( vista64 =win7)
install.bat
reboot ( sometimes you need reboot after the driver)

I'm running on win7 x64 with the driver, so works in my case.
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

Yes, it was already running. 2) works OK (driver reappears in Device manager), but then 1) leads to disabling Aero for the whole system even after the session is gone and the PC is rebooted!. My system is win32. It seems there's a heavy bug in the 32-bit version of the driver :(
I started the topic only with the hope that some developer confirms the bug or gives a prospective on its solution in a future release...

But could you please look at another issue, [post=71508][/post] ? I'm completely lost in that as well, tried this and that..
Last edited by dinvlad on 2010-08-01 18:31, edited 4 times in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

When the driver is active, aero is disabled.

If 1) leads to disabling Aero, the driver was still in the registry marked as active. After you install the driver, it's activated and aero is disabled even when vnc is running.

You should verify is winvnc ( running as elevated app or service) auto
activate/desactivated the driver on viewer connect/disconnect. If vnc isn't able to modify the registry, the driver keeps in his old state.

You can also try it with the server options while connected with the viewer
( use or not driver)

This is no driver bug, but something prevent winvnc to proper close/start the driver. You can enable the logging of winvnc, possible some error message indicate the reason why changedisplaysettings() function fail.
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

In fact, uvnc session spontaneously CRASHes if the driver is used (leaving the server with disabled aero). And I don't understand why aero is disabled after all.

I'll look into logs and post the results a bit later. Thanks for help.
Last edited by dinvlad on 2010-08-01 20:13, edited 6 times in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

The design of Vista and win7 is that the OS disable aero when any kind of mirror driver is activated. The OS detect a active mirror driver -> disable aero.

If winvnc crash if the driver is used then the driver stay active ->
active driver -> no aero.

The problem actual seems to be that winvnc crash if the driver is used.
Does it crash with an error message ?
Does it crash when you connect ?
When does it crash ?

passwd issue.
You need to manual edit the ultravnc.ini file to allow a "null" passwd.
AuthRequired=0 <-- no authentication
or
AuthRequired=1 <--(authentication required)
If set to 1, you always need a passwd

After AuthRequired=0 you need to set a blank passwd

If using dsm plugins you can only use plugins with there own generated key, else the encryption plugin request the vnc passwd.
Last edited by Rudi De Vos on 2010-08-01 20:23, edited 2 times in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

What's the version of winvnc ? are you realy using 106 ?
dinvlad
Posts: 7
Joined: 2010-08-01 12:42

Re: Mirror driver on Windows 7

Post by dinvlad »

1. That's frustrating... If I can't use aero I'd better stick with "full polling"..

Anyway, that's the log when a session starts (let's forget about crashing, I just wonder why the driver isn't activated properly):

Code: Select all

.\vncclient.cpp : Leaving InitAuthenticate
.\vncdesktop.cpp : initialising desktop handler
.\vncDesktopSW.cpp : SWinit 
.\vncdesktopthread.cpp : Hook changed 1
.\vncdesktopthread.cpp : Hook changed 2
.\vncdesktop.cpp : KillScreenSaver...
Sun Aug 01 23:18:09 2010
.\vncservice.cpp : threadname, inputname differ
 --Access denied.
.\vncdesktop.cpp : InitDesktop...
.\vncservice.cpp : SelectDesktop 
.\vncservice.cpp : OpenInputdesktop2 NULL
.\vncservice.cpp : OpenInputdesktop2 OK
.\vncservice.cpp : SelectHDESK to Default (2d8) from 20
.\vncdesktop.cpp : InitVideo driver Called
.\vncdesktop.cpp : Driver option enabled 
.\vncdesktop.cpp : Driver option is enabled
.\vncdesktop.cpp : Start Mirror driver
.\vncdesktop.cpp : Driver Used
.\vncdesktop.cpp : Shared memory mapped
.\vncdesktop.cpp : Break log
.\vncdesktop.cpp : bitmap dimensions are 1280 x 1024
.\vncdesktop.cpp : created memory bitmap
.\vncdesktop.cpp : got bitmap format
.\vncdesktop.cpp : Removing real Dib buffer and replace by driver communication buffer
.\vncdesktopsink.cpp : StartInitWindowthread 
.\vncdesktopsink.cpp : StartInitWindowthread default desk
.\vncdesktopsink.cpp : InitWindow called
Sun Aug 01 23:18:10 2010
.\vncdesktopsink.cpp : InitWindow:OpenInputdesktop OK
.\vncdesktopsink.cpp : InitWindow:SelectHDESK to Default (2f8) from 20
.\vncdesktopsink.cpp : wmcreate  
.\vncdesktopsink.cpp : OOOOOOOOOOOO load hookdll's
.\vncdesktopsink.cpp : OOOOOOOOOOOO start dispatch
 --Unable to open file, file already exists.
.\vncdesktopsink.cpp : StartInitWindowthread started
.\vncbuffer.cpp : request local buffer[5242880]
.\vncbuffer.cpp : fast blits detected - using DIBsection buffer
.\vncbuffer.cpp : local buffer=5242880
.\vncDesktopSW.cpp : GetQuarterSize 
.\vncDesktopSW.cpp : GetQuarterSize 
.\vncdesktop.cpp : SethookMechanism called
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : raw encoder requested
.\vncdesktop.cpp : Sethook_restart_wanted hook=0 driver=1 
.\vncencoder.cpp : settranslatefunction called
.\vncdesktop.cpp : Hookdll status changed 
.\vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : no translation required
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : request client buffer[5242892]
.\vncserver.cpp : Authenticated() done
.\vncclient.cpp : authenticated connection
.\vncbuffer.cpp : request local buffer[5242880]
.\vncbuffer.cpp : fast blits detected - using DIBsection buffer
.\vncbuffer.cpp : local buffer=5242880
.\vncclient.cpp : sent pixel format to client
.\vncclient.cpp : init update thread
.\vncclient.cpp : starting update thread
.\vncservice.cpp : threadname, inputname differ
.\vncclient.cpp : vncClientThread 
.\vncservice.cpp : SelectDesktop 
.\vncservice.cpp : OpenInputdesktop2 NULL
.\vncservice.cpp : OpenInputdesktop2 OK
.\vncservice.cpp : SelectHDESK to Default (310) from 20
.\vncclient.cpp : disable update thread
.\vncclient.cpp : enable/disable synced
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : SetClientFormat called
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : no translation required
.\vncclient.cpp : enable update thread
.\vncclient.cpp : enable/disable synced
.\vncclient.cpp : disable update thread
.\vncclient.cpp : enable/disable synced
.\vncclient.cpp : ZRLE found 
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : ZRLE encoder requested
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : no translation required
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : request client buffer[7864348]
.\vncclient.cpp : Tight found
.\vncclient.cpp : compression level requested: 6
.\vncclient.cpp : X-style cursor shape updates enabled
.\vncclient.cpp : Full-color cursor shape updates enabled
.\vncclient.cpp : PointerPos protocol extension enabled
.\vncclient.cpp : image quality level requested: 6
.\vncclient.cpp : XOR protocol extension enabled
.\vncclient.cpp : LastRect protocol extension enabled
.\vncclient.cpp : Cache protocol extension enabled
.\vncclient.cpp : ServerState protocol extension enabled
.\vncclient.cpp : KeepAlive protocol extension enabled
.\vncclient.cpp : FTProtocolVersion protocol extension enabled
.\vncclient.cpp : enable update thread
.\vncclient.cpp : enable/disable synced
.\vncencoder.cpp : remote palette data requested
.\vncclient.cpp : disable update thread
.\vncclient.cpp : enable/disable synced
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : SetClientFormat called
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : no translation required
.\vncclient.cpp : enable update thread
.\vncclient.cpp : enable/disable synced
.\vncclient.cpp : disable update thread
.\vncclient.cpp : enable/disable synced
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : Hextile encoder requested
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : only 8, 16 or 32 bits supported remotely - 0 requested
.\vncencoder.cpp : settranslatefunction called
.\vncencoder.cpp : no translation required
c:\data\ultravnc\ultravnc project root\ultravnc\winvnc\winvnc\vncEncodeMgr.h : request client buffer[5248157]
.\vncclient.cpp : ZRLE found 
.\vncclient.cpp : Tight found
.\vncclient.cpp : compression level requested: 6
.\vncclient.cpp : X-style cursor shape updates enabled
.\vncclient.cpp : Full-color cursor shape updates enabled
.\vncclient.cpp : PointerPos protocol extension enabled
.\vncclient.cpp : image quality level requested: 6
.\vncclient.cpp : XOR protocol extension enabled
.\vncclient.cpp : LastRect protocol extension enabled
.\vncclient.cpp : ServerState protocol extension enabled
.\vncclient.cpp : KeepAlive protocol extension enabled
.\vncclient.cpp : FTProtocolVersion protocol extension enabled
.\vncclient.cpp : enable update thread
.\vncclient.cpp : enable/disable synced
.\vncencoder.cpp : remote palette data requested
Sun Aug 01 23:18:11 2010
.\vncdesktopthread.cpp : Hook changed 
.\vncdesktop.cpp : PostMessage(m_hwnd, WM_HOOKCHANGE 
.\vncdesktopsink.cpp : OOOOOOOOOOOO 32775 525348
Sun Aug 01 23:18:12 2010
.\vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: User 
2. I don't want to disable passwd authentication as this is rather insecure! The problem is: if I use keys for encryption plugins, they still ask for a password! If I remove the .pkey on the client side (but leave .pubkey on the server), the server STILL asks for a password, so if I'd disable it, anybody with the same plugin could authenticate! (The behaviour of server is the same in case of MSRC4 plugin - I can delete RC4.key file on the client but still authenticate without a password! :( )

P.S. The version of UltraVNC is 1.0.8.2, x86 (on a win32 system).
Last edited by dinvlad on 2010-08-01 20:52, edited 1 time in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Mirror driver on Windows 7

Post by Rudi De Vos »

1. Aero isn't a friend of remote display. His effects generate a lot of data.
Only use it on LAN with the hextile encoder...

The log show that the driver is proper started and used.
.\vncdesktop.cpp : InitVideo driver Called
.\vncdesktop.cpp : Driver option enabled
.\vncdesktop.cpp : Driver option is enabled
.\vncdesktop.cpp : Start Mirror driver
.\vncdesktop.cpp : Driver Used
.\vncdesktop.cpp : Shared memory mapped
.\vncdesktop.cpp : Break log
.\vncdesktop.cpp : bitmap dimensions are 1280 x 1024
.\vncdesktop.cpp : created memory bitmap
.\vncdesktop.cpp : got bitmap format
.\vncdesktop.cpp : Removing real Dib buffer and replace by driver communication buffer
Seems the viewer auto mode is fast switching encoders.
To make it more stable you better preset a fixed encoder ( viewer options)

2. Looks to me that the generated key isn't detected by the server, then he default the "use vnc passwd" mode.
Try to put exe/dsm/key in the same folder.
Post Reply