- Fix the Alt-Gr key on FreeRDP for windows:

On File: wf_event.c
Function: LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)


	if (rdp_scancode == RDP_SCANCODE_NUMLOCK_EXTENDED)
	{
		/* Windows sends NumLock as extended - rdp doesn't */
					DEBUG_KBD("hack: NumLock (x45) should not be extended");
					rdp_scancode = RDP_SCANCODE_NUMLOCK;

	}
+	else if (rdp_scancode == RDP_SCANCODE_RMENU)
+	{
+		/* Windows sends Left Control when Alt-Gr. Hack to avoid it (by releasing LCONTROL when ALT-GR pressed) */
+		freerdp_input_send_keyboard_event_ex(input, FALSE, RDP_SCANCODE_LCONTROL);
+	}
	else if (rdp_scancode == RDP_SCANCODE_NUMLOCK)

	{
		/* Windows sends Pause as if it was a RDP NumLock (handled above).

		 * It must however be sent as a one-shot Ctrl+NumLock */

		if (wParam == WM_KEYDOWN)

- Set Librework icons on Freerdp sources, with script changeicons.bat

- Get and compile FreeRDP:

Prerequisites

    MS Visual C++ Express 2010 http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express
    MS SDK http://www.microsoft.com/en-us/download/details.aspx?id=8279
    OpenSSL Library http://slproweb.com/products/Win32OpenSSL.html
    cmake 2.8 http://www.cmake.org/cmake/resources/software.html
    git http://code.google.com/p/tortoisegit/
    Windows Vista or newer. It does neither build nor run on XP.
    pkgconfig: install on c:\pkgconfig

There are reports that you need 32 bit OpenSSL even on a 64 bit System, otherwise the build fails. Note that Visual Studio Express only build 32 bit binaries and cannot work with 64 bit dlls at all.

If you like working in a shell, get cygwin. You can also use cygwins git, but NOT the cmake that comes with cygwin
Obtaining the source

git clone git://github.com/FreeRDP/FreeRDP.git

Preparing the build

From the command line, go to the directory where you pulled the sources and type

cmake -DPKG_CONFIG_EXECUTABLE=c:\pkgconfig\bin\pkg-config.exe -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS=ON .

Of course, you can also run cmake-gui that comes with the windows cmake install and point it to your sources. See Build options for a list of options you can specify.
Building

In Visual Studio, open the FreeRDP project map and build it. It should build clean.
