Hello Andrey: There's a call to SetHooks() in the main VNC source code. This function is exported from VNCHooks.dll.
Just some background on the need for the VNCHooks.dll library: The VNC application works by hooking into the system message queues (using SetWindowsHookEx) to monitor messages that affect the updating of all or parts of the screen. The hook functions effectively allow an application to sit in the update chain and therefore it acts very similar to a traditional Interrupt Service Routine (ISR). As with all ISR's a context switch is required to ensure that the current CPU state is saved. This is accomplished by having the target of the ISR routine sit in an external library (DLL). If you were hoping to combine the VNCHooks.dll and winvnc.exe functions into a single executable, you will find that this will not work. The application will compile without any problems, but you'll likely get a GPF when you try to run it (most definitely on any NT based system NT/2000/XP). Good luck... Stephan. ----- Original Message ----- From: "Andrey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 11, 2003 1:39 PM Subject: VNCHooks.dll usage? > Hi everybody! > > I just wonder if somebody can help me with the source code to TightVNC Server for Windows. > > There are two files generated after source compilation: VNCHooks.dll and winvnc.exe > > The question is: i wasn't able to find a place in source for "winvnc.exe" where VNCHooks.dll is used. Could someone point a source file where this DLL is called from of statically linked to? > > Any ideas would be highly appreciated!!! > > Thank you, > Andrey > _______________________________________________ > VNC-List mailing list > [EMAIL PROTECTED] > To remove yourself from the list visit: > http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
