aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up initialization of DIBSectionBufferPierre Ossman2020-01-034-35/+8
| | | | | | We had an unintentional conflict with PixelBuffer::setSize() here. But we can simplify this further as this initialization is only used by the subclass DeviceFrameBuffer, and only once.
* Use size_t for lengths in stream objectsPierre Ossman2019-11-152-6/+6
| | | | | | | | Provides safety against them accidentally becoming negative because of bugs in the calculations. Also does the same to CharArray and friends as they were strongly connection to the stream objects.
* Encapsulate PixelBuffer internal detailsPierre Ossman2019-11-151-25/+16
| | | | | | Don't allow subclasses to just override dimensions or buffer details directly and instead force them to go via methods. This allows us to do sanity checks on the new values and catch bugs and attacks.
* Use display polling by default in WinVNCPierre Ossman2019-09-061-1/+1
| | | | | Window hooks aren't working well on modern systems so switch the default to polling until we can fix things.
* Use UTF-8 in clipboard APIPierre Ossman2019-07-011-54/+19
| | | | | In prepartion for better clipboard extensions that can send Unicode data between the client and server.
* Improved clipboard APIPierre Ossman2019-07-014-36/+65
| | | | | Change the internal clipboard API to use a request based model in order to be prepared for more advanced clipboard transfers.
* Clean up internal clipboard handlingPierre Ossman2019-07-014-12/+12
| | | | | | We now filter incoming data, which means we can start assuming the clipboard data is always null terminated. This allows us to clean up a lot of the internal handling.
* Make sure clipboard uses \n line endingsPierre Ossman2019-07-011-14/+2
| | | | | | This is required by the protocol so we should make sure it is enforced. We are tolerant of clients that violate this though and convert incoming clipboard data.
* Add missing throws for exceptionPierre Ossman2019-03-261-1/+1
| | | | | It is not enough to create an exception object, you need to throw it as well.
* Get rid of SocketServer::checkTimeouts()Pierre Ossman2018-11-091-1/+2
| | | | | | It doesn't belong on each socket server object as timers are global. Force implementations to call the Timer system directly instead, avoiding any middle men.
* Properly terminate server on timeoutsPierre Ossman2018-11-092-0/+10
| | | | | | Do a proper cleanup when one of the termination timeouts trigger rather than just exiting on the spot. This makes sure we don't leave stray stuff around, e.g. unix socket files.
* Move ListConnInfo to WinVNC directoryPierre Ossman2018-11-092-1/+32
| | | | | It is functionality specific to WinVNC, so move the code there to make things more clear.
* Remove QueryConnectionHandlerPierre Ossman2018-10-102-1/+35
| | | | | Make things simpler by making this a part of the SDesktop interface that always needs to be implemented.
* Remove Java web serverPierre Ossman2018-10-092-21/+0
| | | | | Applets don't work anymore so remove everything that has to do with serving them.
* Interpret Meta as AltPierre Ossman2018-09-211-0/+2
| | | | | Shift+Alt often generates Meta on Unix systems. Assume this is the same thing as Alt on Windows.
* Catch exceptions by referencePierre Ossman2018-05-292-5/+5
| | | | | We use polymorphic exception objects, so catching by value invokes the copy constructor and stuff that we don't really want.
* Stop using CopyRect in WinVNCPierre Ossman2017-11-241-5/+5
| | | | | | It cannot keep itself in sync with the actual screen contents well enough for CopyRect to work accurately. Graphical glitches could be seen in some cases.
* Merge branch 'pause' of https://github.com/CendioOssman/tigervncPierre Ossman2017-11-171-0/+31
|\
| * Handle Ctrl+Alt+Delete in raw keyboard modePierre Ossman2017-11-131-0/+8
| | | | | | | | | | Ctrl+Alt+Delete requires special handling to trigger on Windows. Make sure this works in raw keyboard mode as well.
| * Handle Windows scan code exceptionsPierre Ossman2017-11-131-0/+23
| | | | | | | | | | Windows mostly follows the AT set 1 scan codes that we want, but there are a few exceptions.
* | Fix compile error on windows when not building with GnuTLSBrian P. Hinz2017-11-161-0/+2
|/
* Get rid of getFbSize()/getDesktopSize() in commonPierre Ossman2017-09-221-1/+4
| | | | It was only used by WinVNC, so push it there instead.
* rfb_win32: Use scan codes if availableRahul Kale2017-09-112-0/+36
| | | | | | | | | | | If scan codes are available using QEMU Extended Keyboard Messages from clients, use that to inject scancodes directly into the system using the SendInput API. No conversion is needed as Windows uses the same scancode encoding. Signed-off-by: Rahul Kale <Rahul.Kale@barco.com> Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
* Basic support for QEMU Extended Key EventsPierre Ossman2017-08-284-5/+5
| | | | | | This adds the basic infrastructure and handshake for the QEMU Extended Key Events extension. No viewer or server makes use of the extra functionality yet though.
* rfb_win32: Add support for LED state notificationsRahul Kale2017-08-282-1/+31
| | | | | | | | | | LED support added using Windows GetKeyState() API call. The state is polled for change in CapsLock/NumLock/ScrollLock status in the same code block where chages to Cursor shape is polled. Signed-off-by: Rahul Kale <Rahul.Kale@barco.com> Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
* Change cursor API to use RGBA dataPierre Ossman2017-02-222-86/+153
| | | | | This will allow us to use better formats that preserve the entire alpha channel.
* spelling fixesklemens2017-01-282-2/+2
|
* Replace Windows specific thread handlingPierre Ossman2016-07-079-346/+45
| | | | Use the platform independent primitives instead.
* Move socket write event handling in to the RFB corePierre Ossman2016-04-291-1/+1
| | | | | | What to do when a socket is writeable should be handled in the RFB core code as there may be other events we want to fire off when this happens.
* Remove legacy Windows codePierre Ossman2016-01-1223-1040/+264
| | | | | We have lots of code that deals with Windows versions that we no longer support anyway. Clean out all of this old cruft.
* Remove stub mirror driver codePierre Ossman2016-01-123-62/+2
| | | | | We don't have any meaningful code for the mirror driver, so remove the confusing stub and interface for it.
* Provide description for servicesPierre Ossman2016-01-122-4/+11
| | | | | | The argument named "desc" was not actually the description, but rather the short "display name". Add handling for the actual description to reduce confusion.
* Use correct type for format stringPierre Ossman2015-09-291-1/+3
|
* Fix some bad signed/unsigned mismatchesPierre Ossman2015-06-171-1/+1
|
* Remove debug log noise from Windows dialog classPierre Ossman2015-03-171-7/+0
|
* Local address change events are not socket specificPierre Ossman2015-03-172-2/+2
|
* Fix bad initialiser listsPierre Ossman2015-03-031-2/+2
|
* Compiler doesn't like us not checking return values herePierre Ossman2015-03-031-3/+3
|
* Compiler doesn't like referencing unset variablesPierre Ossman2015-03-031-0/+4
|
* LPARAM and WPARAM have different types on Win32 and Win64Pierre Ossman2015-03-032-2/+4
| | | | Solve it by casting to the larger of the two, i.e. 64-bit.
* Pointer truncation/expansion needs to be very explicitPierre Ossman2015-03-032-9/+10
|
* Add extra parentheses to avoid and/or priority ambiguityPierre Ossman2015-03-031-1/+2
|
* Fix mismatches between format string and argumentsPierre Ossman2015-03-0313-42/+42
|
* Fix bad signed/unsigned comparisonsPierre Ossman2015-03-032-3/+3
| | | | | Either by casting, or switching to a more appropriate type for the variable.
* Provide a better R/W base PixelBuffer classPierre Ossman2014-07-071-0/+1
| | | | | Clearly separates the read API from the write API and also from actual implementation.
* Get rid of getStride()Pierre Ossman2014-07-071-3/+0
| | | | | | It was confusing and not properly used everywhere. Callers should use the stride they get when they get the buffer pointer.
* Get rid of the direct access abuse of FullFramePixelBuffer's dataPierre Ossman2014-07-071-6/+19
|
* Remove full support for colour mapsPierre Ossman2014-07-077-154/+22
| | | | | | | | | Gets rid of a loooot of code and complexity. Colour map clients are still supported through an automatically generated map, but we lose the ability to develop a client or server that uses colour maps internally.
* Remove remnants of Windows only clientPierre Ossman2014-07-0712-1346/+0
|
* Fix some offenders that poke around in the PixelFormat internalsPierre Ossman2014-07-072-43/+58
|