Author: gedmurphy
Date: Thu Nov 8 16:24:13 2007
New Revision: 30271
URL:
http://svn.reactos.org/svn/reactos?rev=30271&view=rev
Log:
move to a precompiled header
Added:
trunk/reactos/base/applications/mstsc/precomp.h
- copied unchanged from r30269, trunk/reactos/base/applications/mstsc/todo.h
Removed:
trunk/reactos/base/applications/mstsc/todo.h
Modified:
trunk/reactos/base/applications/mstsc/bitmap.c
trunk/reactos/base/applications/mstsc/bsops.c
trunk/reactos/base/applications/mstsc/cache.c
trunk/reactos/base/applications/mstsc/channels.c
trunk/reactos/base/applications/mstsc/connectdialog.c
trunk/reactos/base/applications/mstsc/iso.c
trunk/reactos/base/applications/mstsc/licence.c
trunk/reactos/base/applications/mstsc/mcs.c
trunk/reactos/base/applications/mstsc/mppc.c
trunk/reactos/base/applications/mstsc/mstsc.rbuild
trunk/reactos/base/applications/mstsc/orders.c
trunk/reactos/base/applications/mstsc/pstcache.c
trunk/reactos/base/applications/mstsc/rdp.c
trunk/reactos/base/applications/mstsc/rdp5.c
trunk/reactos/base/applications/mstsc/rdpfile.c
trunk/reactos/base/applications/mstsc/secure.c
trunk/reactos/base/applications/mstsc/ssl_calls.c
trunk/reactos/base/applications/mstsc/tcp.c
trunk/reactos/base/applications/mstsc/uimain.c
trunk/reactos/base/applications/mstsc/win32.c
Modified: trunk/reactos/base/applications/mstsc/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/bi…
==============================================================================
--- trunk/reactos/base/applications/mstsc/bitmap.c (original)
+++ trunk/reactos/base/applications/mstsc/bitmap.c Thu Nov 8 16:24:13 2007
@@ -28,7 +28,7 @@
/* indent is confused by this file */
/* *INDENT-OFF* */
-#include "todo.h"
+#include <precomp.h>
#define CVAL(p) (*(p++))
#ifdef NEED_ALIGN
Modified: trunk/reactos/base/applications/mstsc/bsops.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/bs…
==============================================================================
--- trunk/reactos/base/applications/mstsc/bsops.c (original)
+++ trunk/reactos/base/applications/mstsc/bsops.c Thu Nov 8 16:24:13 2007
@@ -21,7 +21,7 @@
//#include <stdlib.h>
//#include <string.h>
//#include "bsops.h"
-#include "todo.h"
+#include <precomp.h>
/* globals */
static char * g_bs = 0;
Modified: trunk/reactos/base/applications/mstsc/cache.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ca…
==============================================================================
--- trunk/reactos/base/applications/mstsc/cache.c (original)
+++ trunk/reactos/base/applications/mstsc/cache.c Thu Nov 8 16:24:13 2007
@@ -19,7 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
/* BITMAP CACHE */
extern int g_pstcache_fd[];
Modified: trunk/reactos/base/applications/mstsc/channels.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ch…
==============================================================================
--- trunk/reactos/base/applications/mstsc/channels.c (original)
+++ trunk/reactos/base/applications/mstsc/channels.c Thu Nov 8 16:24:13 2007
@@ -19,7 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
#define MAX_CHANNELS 6
#define CHANNEL_CHUNK_LENGTH 1600
Modified: trunk/reactos/base/applications/mstsc/connectdialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/co…
==============================================================================
--- trunk/reactos/base/applications/mstsc/connectdialog.c (original)
+++ trunk/reactos/base/applications/mstsc/connectdialog.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
#define MAX_KEY_NAME 255
@@ -186,11 +186,11 @@
LPWSTR lpText;
SetWindowPos(pInfo->hGeneralPage,
- NULL,
- 15,
- 110,
- 0,
- 0,
+ NULL,
+ 13,
+ 110,
+ 0,
+ 0,
SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
pInfo->hLogon = LoadImageW(hInst,
@@ -717,7 +717,7 @@
SetWindowPos(pInfo->hDisplayPage,
NULL,
- 15,
+ 13,
110,
0,
0,
Modified: trunk/reactos/base/applications/mstsc/iso.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/is…
==============================================================================
--- trunk/reactos/base/applications/mstsc/iso.c (original)
+++ trunk/reactos/base/applications/mstsc/iso.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
/* Send a self-contained ISO PDU */
static void
Modified: trunk/reactos/base/applications/mstsc/licence.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/li…
==============================================================================
--- trunk/reactos/base/applications/mstsc/licence.c (original)
+++ trunk/reactos/base/applications/mstsc/licence.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
//#include <openssl/rc4.h>
void *
Modified: trunk/reactos/base/applications/mstsc/mcs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/mc…
==============================================================================
--- trunk/reactos/base/applications/mstsc/mcs.c (original)
+++ trunk/reactos/base/applications/mstsc/mcs.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
uint16 g_mcs_userid;
extern VCHANNEL g_channels[];
Modified: trunk/reactos/base/applications/mstsc/mppc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/mp…
==============================================================================
--- trunk/reactos/base/applications/mstsc/mppc.c (original)
+++ trunk/reactos/base/applications/mstsc/mppc.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
/* mppc decompression */
/*
http://www.faqs.org/rfcs/rfc2118.html */
Modified: trunk/reactos/base/applications/mstsc/mstsc.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ms…
==============================================================================
--- trunk/reactos/base/applications/mstsc/mstsc.rbuild (original)
+++ trunk/reactos/base/applications/mstsc/mstsc.rbuild Thu Nov 8 16:24:13 2007
@@ -34,4 +34,5 @@
<file>win32.c</file>
</compilationunit>
<file>rdc.rc</file>
+ <pch>precomp.h</pch>
</module>
Modified: trunk/reactos/base/applications/mstsc/orders.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/or…
==============================================================================
--- trunk/reactos/base/applications/mstsc/orders.c (original)
+++ trunk/reactos/base/applications/mstsc/orders.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
extern uint8 *g_next_packet;
Modified: trunk/reactos/base/applications/mstsc/pstcache.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ps…
==============================================================================
--- trunk/reactos/base/applications/mstsc/pstcache.c (original)
+++ trunk/reactos/base/applications/mstsc/pstcache.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
#define MAX_CELL_SIZE 0x1000 /* pixels */
Modified: trunk/reactos/base/applications/mstsc/rdp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/rd…
==============================================================================
--- trunk/reactos/base/applications/mstsc/rdp.c (original)
+++ trunk/reactos/base/applications/mstsc/rdp.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
extern uint16 g_mcs_userid;
Modified: trunk/reactos/base/applications/mstsc/rdp5.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/rd…
==============================================================================
--- trunk/reactos/base/applications/mstsc/rdp5.c (original)
+++ trunk/reactos/base/applications/mstsc/rdp5.c Thu Nov 8 16:24:13 2007
@@ -19,7 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
extern uint8 *g_next_packet;
Modified: trunk/reactos/base/applications/mstsc/rdpfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/rd…
==============================================================================
--- trunk/reactos/base/applications/mstsc/rdpfile.c (original)
+++ trunk/reactos/base/applications/mstsc/rdpfile.c Thu Nov 8 16:24:13 2007
@@ -1,5 +1,5 @@
-#include "todo.h"
+#include <precomp.h>
#define NUM_SETTINGS 6
LPWSTR lpSettings[NUM_SETTINGS] =
Modified: trunk/reactos/base/applications/mstsc/secure.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/se…
==============================================================================
--- trunk/reactos/base/applications/mstsc/secure.c (original)
+++ trunk/reactos/base/applications/mstsc/secure.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
//#include <openssl/rc4.h>
//#include <openssl/md5.h>
Modified: trunk/reactos/base/applications/mstsc/ssl_calls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ss…
==============================================================================
--- trunk/reactos/base/applications/mstsc/ssl_calls.c (original)
+++ trunk/reactos/base/applications/mstsc/ssl_calls.c Thu Nov 8 16:24:13 2007
@@ -20,7 +20,7 @@
*/
-#include "todo.h"
+#include <precomp.h>
#define APP_CC
Modified: trunk/reactos/base/applications/mstsc/tcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/tc…
==============================================================================
--- trunk/reactos/base/applications/mstsc/tcp.c (original)
+++ trunk/reactos/base/applications/mstsc/tcp.c Thu Nov 8 16:24:13 2007
@@ -19,7 +19,7 @@
*/
-#include "todo.h"
+#include <precomp.h>
#ifdef _WIN32
#define socklen_t int
Removed: trunk/reactos/base/applications/mstsc/todo.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/to…
==============================================================================
--- trunk/reactos/base/applications/mstsc/todo.h (original)
+++ trunk/reactos/base/applications/mstsc/todo.h (removed)
@@ -1,45 +1,0 @@
-#include <windows.h>
-#include <commctrl.h>
-#include <shlobj.h>
-#include <stdio.h>
-#include "uimain.h"
-#include "rdesktop.h"
-#include "bsops.h"
-#include "orders.h"
-#include "resource.h"
-
-//#include <stdio.h>
-
-#ifndef __TODO_MSTSC_H
-#define __TODO_MSTSC_H
-
-
-#define MAXKEY 256
-#define MAXVALUE 256
-
-typedef struct _SETTINGS
-{
- WCHAR Key[MAXKEY];
- WCHAR Type; // holds 'i' or 's'
- union {
- INT i;
- WCHAR s[MAXVALUE];
- } Value;
-} SETTINGS, *PSETTINGS;
-
-typedef struct _RDPSETTINGS
-{
- PSETTINGS pSettings;
- INT NumSettings;
-} RDPSETTINGS, *PRDPSETTINGS;
-
-BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings);
-PRDPSETTINGS LoadRdpSettingsFromFile(LPWSTR lpFile);
-BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings);
-INT GetIntegerFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
-LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
-BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value);
-BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue);
-
-
-#endif /* __TODO_MSTSC_H */
Modified: trunk/reactos/base/applications/mstsc/uimain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ui…
==============================================================================
--- trunk/reactos/base/applications/mstsc/uimain.c (original)
+++ trunk/reactos/base/applications/mstsc/uimain.c Thu Nov 8 16:24:13 2007
@@ -18,7 +18,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "todo.h"
+#include <precomp.h>
char g_username[256] = "";
char g_hostname[256] = "";
Modified: trunk/reactos/base/applications/mstsc/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/wi…
==============================================================================
--- trunk/reactos/base/applications/mstsc/win32.c (original)
+++ trunk/reactos/base/applications/mstsc/win32.c Thu Nov 8 16:24:13 2007
@@ -19,7 +19,7 @@
*/
#include <winsock2.h> /* winsock2.h first */
-#include "todo.h"
+#include <precomp.h>
extern char g_username[];