ReactOS  0.4.12-dev-51-ge94618b
precomp.h
Go to the documentation of this file.
1 #ifndef _MSTSC_PCH_
2 #define _MSTSC_PCH_
3 
4 #include <stdarg.h>
5 
6 #define WIN32_NO_STATUS
7 #define _INC_WINDOWS
8 #define COM_NO_WINDOWS_H
9 
10 #include <windef.h>
11 #include <winbase.h>
12 #include <wingdi.h>
13 #include <wincon.h>
14 #include <shlobj.h>
15 #include <stdio.h>
16 #include <wincrypt.h>
17 
18 #include "rdesktop.h"
19 #include "resource.h"
20 
21 #ifndef __TODO_MSTSC_H
22 #define __TODO_MSTSC_H
23 
24 #define RDP_LOGON_NORMAL (RDP_INFO_MOUSE | RDP_INFO_DISABLECTRLALTDEL | RDP_INFO_UNICODE | RDP_INFO_MAXIMIZESHELL)
25 
26 #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)
27 
28 #define MAXKEY 256
29 #define MAXVALUE 256
30 #define NUM_SETTINGS 6
31 extern LPWSTR lpSettings[];
32 
33 typedef struct _SETTINGS
34 {
36  WCHAR Type; // holds 'i' or 's'
37  union {
38  INT i;
40  } Value;
42 
43 typedef struct _RDPSETTINGS
44 {
45  PSETTINGS pSettings;
48 
49 /* As slider control can't contain user data, we have to keep an
50  * array of RESOLUTION_INFO to have our own associated data.
51  */
52 typedef struct _RESOLUTION_INFO
53 {
57 
58 typedef struct _SETTINGS_ENTRY
59 {
66 
67 typedef struct _DISPLAY_DEVICE_ENTRY
68 {
75  PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */
77  PRESOLUTION_INFO Resolutions;
79  PSETTINGS_ENTRY CurrentSettings; /* Points into Settings list */
82 
83 typedef struct _INFO
84 {
85  PRDPSETTINGS pRdpSettings;
86  PDISPLAY_DEVICE_ENTRY DisplayDeviceList;
87  PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice;
102 } INFO, *PINFO;
103 
104 BOOL InitRdpSettings(PRDPSETTINGS pRdpSettings);
105 BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings);
106 BOOL LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings, LPWSTR lpFile);
107 BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings);
108 INT GetIntegerFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
109 LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
110 BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value);
111 BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue);
112 VOID SaveAllSettings(PINFO pInfo);
113 
114 #endif /* __TODO_MSTSC_H */
115 
116 #endif /* _MSTSC_PCH_ */
HINSTANCE hInstance
Definition: charmap.c:20
BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value)
Definition: settings.c:86
struct _SETTINGS_ENTRY * PSETTINGS_ENTRY
PSETTINGS_ENTRY CurrentSettings
Definition: precomp.h:79
static HICON
Definition: imagelist.c:84
struct _SETTINGS_ENTRY * Blink
Definition: precomp.h:60
LPWSTR DeviceKey
Definition: precomp.h:72
#define HBITMAP
Definition: msvc.h:28
struct _RDPSETTINGS RDPSETTINGS
struct _INFO * PINFO
SETTINGS_ENTRY InitialSettings
Definition: precomp.h:80
BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue)
Definition: settings.c:115
PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice
Definition: precomp.h:87
HICON hMstscSm
Definition: precomp.h:94
BOOL InitRdpSettings(PRDPSETTINGS pRdpSettings)
Definition: settings.c:475
__wchar_t WCHAR
Definition: xmlstorage.h:180
HWND hTab
Definition: precomp.h:89
struct _DISPLAY_DEVICE_ENTRY * Flink
Definition: precomp.h:69
LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue)
Definition: settings.c:171
DWORD dmPelsWidth
Definition: precomp.h:63
HICON hLogon
Definition: precomp.h:96
Definition: precomp.h:67
LPWSTR DeviceName
Definition: precomp.h:71
DWORD dmBitsPerPel
Definition: precomp.h:62
INT GetIntegerFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue)
Definition: settings.c:144
PDISPLAY_DEVICE_ENTRY DisplayDeviceList
Definition: precomp.h:86
struct _INFO INFO
int32_t INT
Definition: typedefs.h:56
HWND hGeneralPage
Definition: precomp.h:90
struct _SETTINGS * PSETTINGS
HICON hColor
Definition: precomp.h:99
BITMAP bitmap
Definition: precomp.h:101
HICON hRemote
Definition: precomp.h:98
struct _RESOLUTION_INFO RESOLUTION_INFO
BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings)
Definition: settings.c:370
PSETTINGS_ENTRY Settings
Definition: precomp.h:75
union _SETTINGS::@13 Value
HICON hMstscLg
Definition: precomp.h:95
HICON hConn
Definition: precomp.h:97
struct _SETTINGS SETTINGS
PRDPSETTINGS pRdpSettings
Definition: precomp.h:85
LPWSTR lpSettings[]
Definition: settings.c:5
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _RESOLUTION_INFO * PRESOLUTION_INFO
HBITMAP hSpectrum
Definition: precomp.h:100
PSETTINGS pSettings
Definition: precomp.h:45
#define MAXKEY
Definition: precomp.h:28
struct _DISPLAY_DEVICE_ENTRY * PDISPLAY_DEVICE_ENTRY
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID SaveAllSettings(PINFO pInfo)
Definition: settings.c:16
INT i
Definition: precomp.h:38
DWORD DeviceStateFlags
Definition: precomp.h:74
GLdouble s
Definition: gl.h:2039
BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings)
DWORD dmPelsWidth
Definition: precomp.h:54
LPWSTR DeviceID
Definition: precomp.h:73
PRESOLUTION_INFO Resolutions
Definition: precomp.h:77
static LPCTSTR lpKey
Definition: virtmem.c:13
DWORD dmPelsHeight
Definition: precomp.h:55
WCHAR Type
Definition: precomp.h:36
HWND hSelf
Definition: precomp.h:88
Definition: precomp.h:83
BOOL LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings, LPWSTR lpFile)
Definition: settings.c:418
DWORD SettingsCount
Definition: precomp.h:76
Definition: bl.h:1331
HBITMAP hHeader
Definition: precomp.h:92
DWORD ResolutionsCount
Definition: precomp.h:78
DWORD dmPelsHeight
Definition: precomp.h:64
HWND hDisplayPage
Definition: precomp.h:91
INT NumSettings
Definition: precomp.h:46
#define MAXVALUE
Definition: precomp.h:29
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LPWSTR DeviceDescription
Definition: precomp.h:70
struct _RDPSETTINGS * PRDPSETTINGS
Definition: precomp.h:58
struct _DISPLAY_DEVICE_ENTRY DISPLAY_DEVICE_ENTRY
struct _SETTINGS_ENTRY SETTINGS_ENTRY
BITMAP headerbitmap
Definition: precomp.h:93
struct _SETTINGS_ENTRY * Flink
Definition: precomp.h:61