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

Viewer Screen keeps black while using w8hook.dll

Post Reply
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Viewer Screen keeps black while using w8hook.dll

Post by Prisma »

Hello Rudi,

regarding http://forum.ultravnc.info/viewtopic.ph ... 750#p93530:

Using a reverse connection (Mode II) and rc4 encryption with following setup:
  • vncviewer.exe -> 1.1.5 RC on Vista/32
    winvnc.exe -> 1.1.5 RC (VS9) on Win8/32
    w8hook.dll -> 1.1.5 RV (VS11) on Win8/32
ultravnc.ini:

Code: Select all

[poll]
EnableHook=1
The viewer screen keeps black. This seems to be a bug. If I don't unpack w8hook.dll and use instead schook.dll and vnchook.dll (I just unpack both, have no idea which one is used) everything is working fine and fast.

In that second case I use following INI for Win8, just for your information:

Code: Select all

[poll]
TurboMode=0
PollFullScreen=1
EnableHook=1
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

Thanks for the feedback.
It looks like something is broken, it was working so i didn't tested it again for 1.1.5.
Possible i made some debug changes and forgot to reset...

Is the server running as application or service ?
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Re: Viewer Screen keeps black while using w8hook.dll

Post by Prisma »

Application, but with service it's the same. Makes no difference.
stan_dard
Posts: 6
Joined: 2012-09-17 19:07

Re: Viewer Screen keeps black while using w8hook.dll

Post by stan_dard »

To quote myself:
stan_dard wrote:I can't get it to work anymore at all since 1.1.4.0. :evil:

Running the viewer on Win 7 Ultimate 32bit and the server on Win 8 Enterprise 32bit. Server is running as service, System HookDLL is installed and checked on the property page. Win8hook and Win8keys are also installed, but I don't know where I can see whether they are in use or not.

So here's what happens:
I can connect to the server and see everything that's on a security-screen. That's the login-screen, the screen I get when pressing CTRL+ALT+DEL and whenever UAC pops up. In all other cases I can only see a black screen in my viewer.

Clicking on 'Refresh screen' in the menubar has no effect.

Keyboard and mouse integration works, as I can see on the monitor temporary connected to the server-machine.

Sending CTRL+ALT+DEL using the menubar works, pressing CTRL+ALT+F4 does not.
So it's broken at least since 1.1.4.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

LOL

w8hook never worked on x64 ( wan't activated)
no hook worked even SC hook for win32 and x64 ( some if else had a wrong ;)

This is funny because people reported that it was a lof faster while the desktop duplication was never used.

Updating to 1.1.6 to fix it
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Re: Viewer Screen keeps black while using w8hook.dll

Post by Prisma »

Funny, never worked? These testers must have been subjected to autosuggestion LOL

Ok, but the problem I reported appears with 32-bit binaries also. Looking forward to a fix...

Thanx for your work Rudi!
littlebird
Posts: 4
Joined: 2012-11-10 12:13

Re: Viewer Screen keeps black while using w8hook.dll

Post by littlebird »

Hi,

I just updated to 1.1.6.0 and I've got the same behaviour with the black screen.
When I try to connect I will be asked for the password and the window for the remote server will open but it will be black and no clicks or keyboard strokes will be transmitted.
The topbar of the window tells me that the connection has been dropped and that attempts to reconnect will be processed.
I did a clean install and took care of the other dlls only w8hookx64 was there.
Funny thing is that if no one is logged on to the remote machine I will get to the login screen but as soon I have entered the password and hit enter the screen will freeze and
I will get the same as above.

Could you please have a look and tell me if I can more testing?

Thanks!
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Re: Viewer Screen keeps black while using w8hook.dll

Post by Prisma »

Hello Rudi,

works like a charm. Thank you. And now I can really confirm, it's damn fast!

EDIT: No, I cannot really confirm, because if I had a look at the "About..." window, I can't see w8hook.dll is used.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

X64 for win8 seems to have a blackscreen when w8hook64.dll is installed en system hook is checked.
X86 version works fine

Need to debug the X64 again...!çé§
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

Prisma, systray balloon tell what kind of hook is used ( not the about box)
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Re: Viewer Screen keeps black while using w8hook.dll

Post by Prisma »

Rudi De Vos wrote:Prisma, systray balloon tell what kind of hook is used ( not the about box)
Ooooops, sorry Rudi. w8hook is used. Greets Gregor
littlebird
Posts: 4
Joined: 2012-11-10 12:13

Re: Viewer Screen keeps black while using w8hook.dll

Post by littlebird »

X64 for win8 seems to have a blackscreen when w8hook64.dll is installed en system hook is checked.
X86 version works fine

Need to debug the X64 again...!çé§
Sorry if these questions might be stupid but I am quite new to this:
1. What will happen if I have w8hook64.dll installed and system hook is not checked? Will it work with another driver or in any other mode?
2. Is it possible to run x86 version on a x64 system with the 32bit w8hook?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

1; not checked = not used
2; if winvnc is 32 bit, the dll also ned to be 32bit. You can not mix 32/64 exe/dll.
( you can run32bit apps on 32 and 64 bit OS's)
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

Updated all x64 servers and the w8hook.
(A pointer in x64 isn't a DWORD)

I hopes this is the last bug :)
twu2
Posts: 3
Joined: 2012-11-11 13:12

Re: Viewer Screen keeps black while using w8hook.dll

Post by twu2 »

I got another screen black issue, I'm not sure it's related to this or not.
win8 x64 version 1.1.7 (and 1.1.6).
1. connect to server
2. wait until it go to blank (screen saver?)
3. I can get the screen back by keyboard input and mouse input... the only way to get it back is send Ctrl-Alt-Del, then it will show the win8's ask screen for lock, then I can control it again.

Does it a bug or just a setting issue? It's happen for both mirror driver and w8hook.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Viewer Screen keeps black while using w8hook.dll

Post by Rudi De Vos »

twu2,

Is winvnc running as service or as application ?
twu2
Posts: 3
Joined: 2012-11-11 13:12

Re: Viewer Screen keeps black while using w8hook.dll

Post by twu2 »

service
Post Reply