ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

precomp.h
Go to the documentation of this file.
00001 #include <windows.h>
00002 #include <commctrl.h>
00003 #include <shlobj.h>
00004 #include <stdio.h>
00005 #include "uimain.h"
00006 #include "rdesktop.h"
00007 #include "bsops.h"
00008 #include "orders.h"
00009 #include "resource.h"
00010 
00011 //#include <stdio.h>
00012 
00013 #ifndef __TODO_MSTSC_H
00014 #define __TODO_MSTSC_H
00015 
00016 #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)
00017 
00018 #define MAXKEY 256
00019 #define MAXVALUE 256
00020 #define NUM_SETTINGS 6
00021 extern LPWSTR lpSettings[];
00022 
00023 typedef struct _SETTINGS
00024 {
00025     WCHAR Key[MAXKEY];
00026     WCHAR Type; // holds 'i' or 's'
00027     union {
00028         INT i;
00029         WCHAR s[MAXVALUE];
00030     } Value;
00031 } SETTINGS, *PSETTINGS;
00032 
00033 typedef struct _RDPSETTINGS
00034 {
00035     PSETTINGS pSettings;
00036     INT NumSettings;
00037 } RDPSETTINGS, *PRDPSETTINGS;
00038 
00039 /* As slider control can't contain user data, we have to keep an
00040  * array of RESOLUTION_INFO to have our own associated data.
00041  */
00042 typedef struct _RESOLUTION_INFO
00043 {
00044     DWORD dmPelsWidth;
00045     DWORD dmPelsHeight;
00046 } RESOLUTION_INFO, *PRESOLUTION_INFO;
00047 
00048 typedef struct _SETTINGS_ENTRY
00049 {
00050     struct _SETTINGS_ENTRY *Blink;
00051     struct _SETTINGS_ENTRY *Flink;
00052     DWORD dmBitsPerPel;
00053     DWORD dmPelsWidth;
00054     DWORD dmPelsHeight;
00055 } SETTINGS_ENTRY, *PSETTINGS_ENTRY;
00056 
00057 typedef struct _DISPLAY_DEVICE_ENTRY
00058 {
00059     struct _DISPLAY_DEVICE_ENTRY *Flink;
00060     LPWSTR DeviceDescription;
00061     LPWSTR DeviceName;
00062     LPWSTR DeviceKey;
00063     LPWSTR DeviceID;
00064     DWORD DeviceStateFlags;
00065     PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */
00066     DWORD SettingsCount;
00067     PRESOLUTION_INFO Resolutions;
00068     DWORD ResolutionsCount;
00069     PSETTINGS_ENTRY CurrentSettings; /* Points into Settings list */
00070     SETTINGS_ENTRY InitialSettings;
00071 } DISPLAY_DEVICE_ENTRY, *PDISPLAY_DEVICE_ENTRY;
00072 
00073 typedef struct _INFO
00074 {
00075     PRDPSETTINGS pRdpSettings;
00076     PDISPLAY_DEVICE_ENTRY DisplayDeviceList;
00077     PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice;
00078     HWND hSelf;
00079     HWND hTab;
00080     HWND hGeneralPage;
00081     HWND hDisplayPage;
00082     HBITMAP hHeader;
00083     BITMAP headerbitmap;
00084     HICON hMstscSm;
00085     HICON hMstscLg;
00086     HICON hLogon;
00087     HICON hConn;
00088     HICON hRemote;
00089     HICON hColor;
00090     HBITMAP hSpectrum;
00091     BITMAP bitmap;
00092 } INFO, *PINFO;
00093 
00094 BOOL InitRdpSettings(PRDPSETTINGS pRdpSettings);
00095 BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings);
00096 BOOL LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings, LPWSTR lpFile);
00097 BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings);
00098 INT GetIntegerFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
00099 LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue);
00100 BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value);
00101 BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue);
00102 VOID SaveAllSettings(PINFO pInfo);
00103 
00104 
00105 #endif /* __TODO_MSTSC_H */

Generated on Sat May 26 2012 04:15:23 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.