ReactOS 0.4.15-dev-7887-g64a59a1
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
31extern LPWSTR lpSettings[];
32
33typedef struct _SETTINGS
34{
36 WCHAR Type; // holds 'i' or 's'
37 union {
42
43typedef struct _RDPSETTINGS
44{
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 */
52typedef struct _RESOLUTION_INFO
53{
57
58typedef struct _SETTINGS_ENTRY
59{
66
68{
75 PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */
79 PSETTINGS_ENTRY CurrentSettings; /* Points into Settings list */
82
83typedef struct _INFO
84{
103
104BOOL InitRdpSettings(PRDPSETTINGS pRdpSettings);
106BOOL LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings, LPWSTR lpFile);
107BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings);
113
114#endif /* __TODO_MSTSC_H */
115
116#endif /* _MSTSC_PCH_ */
HINSTANCE hInstance
Definition: charmap.c:19
struct _DISPLAY_DEVICE_ENTRY DISPLAY_DEVICE_ENTRY
INT GetIntegerFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue)
Definition: settings.c:144
struct _RDPSETTINGS * PRDPSETTINGS
#define MAXKEY
Definition: precomp.h:28
struct _RDPSETTINGS RDPSETTINGS
BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings)
struct _SETTINGS_ENTRY SETTINGS_ENTRY
BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue)
Definition: settings.c:115
#define MAXVALUE
Definition: precomp.h:29
struct _RESOLUTION_INFO * PRESOLUTION_INFO
struct _INFO INFO
VOID SaveAllSettings(PINFO pInfo)
Definition: settings.c:16
struct _SETTINGS * PSETTINGS
BOOL LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings, LPWSTR lpFile)
Definition: settings.c:419
BOOL InitRdpSettings(PRDPSETTINGS pRdpSettings)
Definition: settings.c:476
BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings)
Definition: settings.c:371
struct _INFO * PINFO
struct _DISPLAY_DEVICE_ENTRY * PDISPLAY_DEVICE_ENTRY
struct _SETTINGS_ENTRY * PSETTINGS_ENTRY
BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value)
Definition: settings.c:86
LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue)
Definition: settings.c:171
struct _RESOLUTION_INFO RESOLUTION_INFO
LPWSTR lpSettings[]
Definition: settings.c:5
static LPCTSTR lpKey
Definition: virtmem.c:102
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble s
Definition: gl.h:2039
static HBITMAP
Definition: button.c:44
static HICON
Definition: imagelist.c:84
Definition: bl.h:1331
Definition: precomp.h:68
PRESOLUTION_INFO Resolutions
Definition: precomp.h:77
struct _DISPLAY_DEVICE_ENTRY * Flink
Definition: precomp.h:69
DWORD SettingsCount
Definition: precomp.h:76
SETTINGS_ENTRY InitialSettings
Definition: precomp.h:80
PSETTINGS_ENTRY CurrentSettings
Definition: precomp.h:79
DWORD ResolutionsCount
Definition: precomp.h:78
DWORD DeviceStateFlags
Definition: precomp.h:74
LPWSTR DeviceID
Definition: precomp.h:73
LPWSTR DeviceDescription
Definition: precomp.h:70
PSETTINGS_ENTRY Settings
Definition: precomp.h:75
LPWSTR DeviceKey
Definition: precomp.h:72
LPWSTR DeviceName
Definition: precomp.h:71
Definition: precomp.h:84
PDISPLAY_DEVICE_ENTRY DisplayDeviceList
Definition: precomp.h:86
HICON hMstscLg
Definition: precomp.h:95
HICON hLogon
Definition: precomp.h:96
HBITMAP hHeader
Definition: precomp.h:92
HWND hTab
Definition: precomp.h:89
BITMAP headerbitmap
Definition: precomp.h:93
HWND hGeneralPage
Definition: precomp.h:90
PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice
Definition: precomp.h:87
HICON hColor
Definition: precomp.h:99
HICON hConn
Definition: precomp.h:97
PRDPSETTINGS pRdpSettings
Definition: precomp.h:85
HWND hDisplayPage
Definition: precomp.h:91
HBITMAP hSpectrum
Definition: precomp.h:100
HICON hMstscSm
Definition: precomp.h:94
BITMAP bitmap
Definition: precomp.h:101
HICON hRemote
Definition: precomp.h:98
HWND hSelf
Definition: precomp.h:88
PSETTINGS pSettings
Definition: precomp.h:45
INT NumSettings
Definition: precomp.h:46
DWORD dmPelsWidth
Definition: precomp.h:54
DWORD dmPelsHeight
Definition: precomp.h:55
Definition: precomp.h:59
DWORD dmPelsHeight
Definition: precomp.h:64
struct _SETTINGS_ENTRY * Flink
Definition: precomp.h:61
struct _SETTINGS_ENTRY * Blink
Definition: precomp.h:60
DWORD dmBitsPerPel
Definition: precomp.h:62
DWORD dmPelsWidth
Definition: precomp.h:63
WCHAR Type
Definition: precomp.h:36
union _SETTINGS::@13 Value
INT i
Definition: precomp.h:38
int32_t INT
Definition: typedefs.h:58
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184