ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
November 2007
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
20 participants
888 discussions
Start a n
N
ew thread
[cfinck] 30279: Make cpucount more similar to the RosBE-Unix version - Show the Usage text, when any unknown parameter has been specified - Makes the whole code a bit smaller :-D
by cfinck@svn.reactos.org
Author: cfinck Date: Thu Nov 8 23:20:59 2007 New Revision: 30279 URL:
http://svn.reactos.org/svn/reactos?rev=30279&view=rev
Log: Make cpucount more similar to the RosBE-Unix version - Show the Usage text, when any unknown parameter has been specified - Makes the whole code a bit smaller :-D Modified: trunk/tools/RosBE-Windows/Tools/cpucount.c Modified: trunk/tools/RosBE-Windows/Tools/cpucount.c URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/cpucount…
============================================================================== --- trunk/tools/RosBE-Windows/Tools/cpucount.c (original) +++ trunk/tools/RosBE-Windows/Tools/cpucount.c Thu Nov 8 23:20:59 2007 @@ -20,34 +20,30 @@ fprintf(stderr, "%s: Error too many parameters specified.\n", argv[0]); return -1; } + GetSystemInfo(&SystemInformation); - if (argc == 1) + + if(argc != 1) { - printf("%ld\n", SystemInformation.dwNumberOfProcessors); - } - else if ((!strncmp(argv[1], "/?", 2)) || - (!strncmp(argv[1], "-h", 2)) || - (!strncmp(argv[1], "--help", 6))) - { - printf("Usage: %s [OPTIONS]\n", argv[0]); - printf("Running cpucount without options returns the number of\n"); - printf("processors in the system.\n"); - printf("-x1 - Number of processors in the system, plus 1.\n"); - printf("-x2 - Number of processors in the system, doubled.\n"); - } - else if (!strncmp(argv[1], "-x1", 3)) - { - printf("%ld\n", (SystemInformation.dwNumberOfProcessors + 1)); - } - else if (!strncmp(argv[1], "-x2", 3)) - { - printf("%ld\n", (SystemInformation.dwNumberOfProcessors + SystemInformation.dwNumberOfProcessors)); - } - else - { - fprintf(stderr, "%s: Error unknown parameter '%s' specified.\n", argv[0], argv[1]); - return -1; + if(!strncmp(argv[1], "-x1", 3)) + { + SystemInformation.dwNumberOfProcessors++; + } + else if(!strncmp(argv[1], "-x2", 3)) + { + SystemInformation.dwNumberOfProcessors += SystemInformation.dwNumberOfProcessors; + } + else + { + printf("Usage: %s [OPTIONS]\n", argv[0]); + printf("Running cpucount without options returns the number of\n"); + printf("processors in the system.\n"); + printf("-x1 - Number of processors in the system, plus 1.\n"); + printf("-x2 - Number of processors in the system, doubled.\n"); + return 0; + } } + printf("%u\n", SystemInformation.dwNumberOfProcessors); return 0; }
17 years, 1 month
1
0
0
0
[greatlrd] 30278: Fix the reactx build for ksuser.dll
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 8 23:09:58 2007 New Revision: 30278 URL:
http://svn.reactos.org/svn/reactos?rev=30278&view=rev
Log: Fix the reactx build for ksuser.dll Modified: branches/reactx/reactos/include/dxsdk/ks.h Modified: branches/reactx/reactos/include/dxsdk/ks.h URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/include/dxsdk/ks…
============================================================================== --- branches/reactx/reactos/include/dxsdk/ks.h (original) +++ branches/reactx/reactos/include/dxsdk/ks.h Thu Nov 8 23:09:58 2007 @@ -5,12 +5,16 @@ #if !defined(_KS_) #define _KS_ +#ifndef _NTDDK_ +#define NTSTATUS +#endif + #if defined(__TCS__) -#define _KS_NO_ANONYMOUS_STRUCTURES_ 1 + #define _KS_NO_ANONYMOUS_STRUCTURES_ 1 #endif #ifndef SIZEOF_ARRAY - #define SIZEOF_ARRAY(ar) (sizeof(ar)/sizeof((ar)[0])) + #define SIZEOF_ARRAY(ar) (sizeof(ar)/sizeof((ar[0]))) #endif #if !defined(_NTRTL_) @@ -1168,6 +1172,25 @@ } KSDATAFORMAT, *PKSDATAFORMAT, KSDATARANGE, *PKSDATARANGE; +typedef struct +{ + union + { + ULONG OptionsFlags; + ULONG RequirementsFlags; + }; +#if defined(_NTDDK_) + POOL_TYPE PoolType; +#else + ULONG PoolType; +#endif + ULONG Frames; + ULONG FrameSize; + ULONG FileAlignment; + ULONG Reserved; +} KSALLOCATOR_FRAMING, *PKSALLOCATOR_FRAMING; + + #define DEFINE_KSPROPERTY_ITEM_GENERAL_COMPONENTID(Handler)\ DEFINE_KSPROPERTY_ITEM(KSPROPERTY_GENERAL_COMPONENTID, (Handler), sizeof(KSPROPERTY), sizeof(KSCOMPONENTID), NULL, NULL, 0, NULL, NULL, 0) @@ -1343,5 +1366,26 @@ DEFINE_KSPROPERTY_ITEM(KSPROPERTY_CONNECTION_STARTAT, NULL, sizeof(KSPROPERTY), sizeof(KSRELATIVEEVENT), (Handler), NULL, 0, NULL, NULL, 0) +#if defined(__cplusplus) +extern "C" { +#endif + +#ifdef _KSDDK_ + #define KSDDKAPI DECLSPEC_EXPORT +#else + #define KSDDKAPI DECLSPEC_IMPORT +#endif + +KSDDKAPI +NTSTATUS +NTAPI +KsCreateAllocator(IN HANDLE ConnectionHandle, + IN PKSALLOCATOR_FRAMING AllocatorFraming, + OUT PHANDLE AllocatorHandle); + + +#if defined(__cplusplus) +} +#endif #endif // _KS_
17 years, 1 month
1
0
0
0
[greatlrd] 30277: Start on ksuser.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 8 23:08:42 2007 New Revision: 30277 URL:
http://svn.reactos.org/svn/reactos?rev=30277&view=rev
Log: Start on ksuser. Added: branches/reactx/reactos/dll/directx/ksuser/ branches/reactx/reactos/dll/directx/ksuser/ksuser.c (with props) branches/reactx/reactos/dll/directx/ksuser/ksuser.def (with props) branches/reactx/reactos/dll/directx/ksuser/ksuser.h (with props) branches/reactx/reactos/dll/directx/ksuser/ksuser.rbuild (with props) branches/reactx/reactos/dll/directx/ksuser/ksuser.rc (with props) Added: branches/reactx/reactos/dll/directx/ksuser/ksuser.c URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
============================================================================== --- branches/reactx/reactos/dll/directx/ksuser/ksuser.c (added) +++ branches/reactx/reactos/dll/directx/ksuser/ksuser.c Thu Nov 8 23:08:42 2007 @@ -1,0 +1,75 @@ + + +#define _KSDDK_ +#include <windows.h> +#include <ks.h> +#include "ksuser.h" + +#include <debug.h> + + + + +KSDDKAPI +NTSTATUS +NTAPI +KsCreateAllocator(HANDLE ConnectionHandle, + PKSALLOCATOR_FRAMING AllocatorFraming, + PHANDLE AllocatorHandle) +{ + + return 0; +} + +/* +KSDDKAPI +NTSTATUS +NTAPI +KsCreateClock(HANDLE ConnectionHandle, + PKSCLOCK_CREATE ClockCreate, + PHANDLE ClockHandle) +{ + UNIMPLEMENTED + return 0; +} + +KSDDKAPI +NTSTATUS +NTAPI +KsCreatePin(HANDLE FilterHandle, + PKSPIN_CONNECT Connect, + ACCESS_MASK DesiredAccess, + OUT PHANDLE ConnectionHandle) +{ + UNIMPLEMENTED + return 0; +} + +KSDDKAPI +NTSTATUS +NTAPI +KsCreateTopologyNode(HANDLE ParentHandle, + PKSNODE_CREATE NodeCreate, + IN ACCESS_MASK DesiredAccess, + OUT PHANDLE NodeHandle) +{ + UNIMPLEMENTED + return 0; +} +*/ + +BOOL +APIENTRY +DllMain(HANDLE hModule, DWORD ulreason, LPVOID lpReserved) +{ + switch (ulreason) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +} Propchange: branches/reactx/reactos/dll/directx/ksuser/ksuser.c ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/reactx/reactos/dll/directx/ksuser/ksuser.def URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
============================================================================== --- branches/reactx/reactos/dll/directx/ksuser/ksuser.def (added) +++ branches/reactx/reactos/dll/directx/ksuser/ksuser.def Thu Nov 8 23:08:42 2007 @@ -1,0 +1,7 @@ +LIBRARY d3d8 +EXPORTS + KsCreateAllocator@12 + KsCreateClock@12 + KsCreatePin@16 + KsCreateTopologyNode@16 + Propchange: branches/reactx/reactos/dll/directx/ksuser/ksuser.def ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/reactx/reactos/dll/directx/ksuser/ksuser.h URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
============================================================================== --- branches/reactx/reactos/dll/directx/ksuser/ksuser.h (added) +++ branches/reactx/reactos/dll/directx/ksuser/ksuser.h Thu Nov 8 23:08:42 2007 @@ -1,0 +1,3 @@ +#include <windows.h> + + Propchange: branches/reactx/reactos/dll/directx/ksuser/ksuser.h ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/reactx/reactos/dll/directx/ksuser/ksuser.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
============================================================================== --- branches/reactx/reactos/dll/directx/ksuser/ksuser.rbuild (added) +++ branches/reactx/reactos/dll/directx/ksuser/ksuser.rbuild Thu Nov 8 23:08:42 2007 @@ -1,0 +1,9 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="ksuser" type="win32dll" installbase="system32" installname="ksuser.dll" allowwarnings="true"> + <importlibrary definition="ksuser.def" /> + <library>kernel32</library> + <library>ntdll</library> + <file>ksuser.c</file> + <file>ksuser.rc</file> +</module> Propchange: branches/reactx/reactos/dll/directx/ksuser/ksuser.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/reactx/reactos/dll/directx/ksuser/ksuser.rc URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ksus…
============================================================================== --- branches/reactx/reactos/dll/directx/ksuser/ksuser.rc (added) +++ branches/reactx/reactos/dll/directx/ksuser/ksuser.rc Thu Nov 8 23:08:42 2007 @@ -1,0 +1,10 @@ + + +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "User CSA Library\0" +#define REACTOS_STR_INTERNAL_NAME "ksuser.dll\0" +#define REACTOS_STR_ORIGINAL_FILENAME "ksuser.dll\0" + +#include <reactos/reactx.h> + +#include <reactos/version.rc> Propchange: branches/reactx/reactos/dll/directx/ksuser/ksuser.rc ------------------------------------------------------------------------------ svn:eol-style = native
17 years, 1 month
1
0
0
0
[gedmurphy] 30276: add __REACTOS__ specific code to get around the fact that janderwald isn't working hard enough on shell32 ; )
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Nov 8 19:47:28 2007 New Revision: 30276 URL:
http://svn.reactos.org/svn/reactos?rev=30276&view=rev
Log: add __REACTOS__ specific code to get around the fact that janderwald isn't working hard enough on shell32 ;) Modified: trunk/reactos/base/applications/mstsc/connectdialog.c trunk/reactos/base/applications/mstsc/settings.c 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 19:47:28 2007 @@ -225,6 +225,7 @@ break; case IDC_SAVE: + SaveAllSettings(pInfo); SaveRdpSettingsToFile(NULL, pInfo->pRdpSettings); break; } Modified: trunk/reactos/base/applications/mstsc/settings.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/se…
============================================================================== --- trunk/reactos/base/applications/mstsc/settings.c (original) +++ trunk/reactos/base/applications/mstsc/settings.c Thu Nov 8 19:47:28 2007 @@ -372,8 +372,8 @@ bWrite ? GENERIC_WRITE : GENERIC_READ, 0, NULL, - bWrite ? CREATE_ALWAYS : OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL, + bWrite ? OPEN_EXISTING: CREATE_ALWAYS, + FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_HIDDEN, NULL); } @@ -400,6 +400,7 @@ /* use default file */ if (lpFile == NULL) { +#ifndef __REACTOS__ HRESULT hr; LPITEMIDLIST lpidl= NULL; @@ -417,6 +418,10 @@ CoTaskMemFree(lpidl); } } +#else + wcscpy(pszPath, L"C:\\Default.rdp"); + lpFile = pszPath; +#endif } if (lpFile) @@ -447,6 +452,7 @@ /* use default file */ if (lpFile == NULL) { +#ifndef __REACTOS__ HRESULT hr; LPITEMIDLIST lpidl= NULL; @@ -464,6 +470,10 @@ CoTaskMemFree(lpidl); } } +#else + wcscpy(pszPath, L"C:\\Default.rdp"); + lpFile = pszPath; +#endif } if (lpFile)
17 years, 1 month
1
0
0
0
[greatlrd] 30275: fix wdmguid.a (it is now compatible with ddk version 3790.1830)
by greatlrd@svn.reactos.org
Author: greatlrd Date: Thu Nov 8 19:19:08 2007 New Revision: 30275 URL:
http://svn.reactos.org/svn/reactos?rev=30275&view=rev
Log: fix wdmguid.a (it is now compatible with ddk version 3790.1830) Modified: branches/reactx/reactos/lib/sdk/wdmguid/wdmguid.c Modified: branches/reactx/reactos/lib/sdk/wdmguid/wdmguid.c URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/lib/sdk/wdmguid/…
============================================================================== --- branches/reactx/reactos/lib/sdk/wdmguid/wdmguid.c (original) +++ branches/reactx/reactos/lib/sdk/wdmguid/wdmguid.c Thu Nov 8 19:19:08 2007 @@ -4,29 +4,61 @@ #include <guiddef.h> DEFINE_GUID(GUID_LEGACY_DEVICE_DETECTION_STANDARD, 0x50FEB0DE, 0x596A, 0x11D2, 0xA5, 0xB8, 0x00, 0x00, 0xF8, 0x1A, 0x46, 0x19); + +DEFINE_GUID(GUID_ACPI_CMOS_INTERFACE_STANDARD, 0x3A8D0384, 0x6505, 0x40CA, 0xBC, 0x39, 0x56, 0xC1, 0x5F, 0x8C, 0x5F, 0xED); +DEFINE_GUID(GUID_ACPI_INTERFACE_STANDARD, 0xB091A08A, 0xBA97, 0x11D0, 0xBD, 0x14, 0x00, 0xAA, 0x00, 0xB7, 0xB3, 0x2A); +DEFINE_GUID(GUID_ACPI_PORT_RANGES_INTERFACE_STANDARD, 0xF14F609B, 0xCBBD, 0x4957, 0xA6, 0x74, 0xBC, 0x00, 0x21, 0x3F, 0x1C, 0x97); DEFINE_GUID(GUID_ACPI_REGS_INTERFACE_STANDARD, 0x06141966, 0x7245, 0x6369, 0x46, 0x2E, 0x4E, 0x65, 0x6C, 0x73, 0x6F, 0x6E); -DEFINE_GUID(GUID_PCMCIA_BUS_INTERFACE_STANDARD, 0x76173AF0, 0xC504, 0x11D1, 0x94, 0x7F, 0x00, 0xC0, 0x4F, 0xB9, 0x60, 0xEE); -DEFINE_GUID(GUID_INT_ROUTE_INTERFACE_STANDARD, 0x70941BF4, 0x0073, 0x11D1, 0xA0, 0x9E, 0x00, 0xC0, 0x4F, 0xC3, 0x40, 0xB1); -DEFINE_GUID(GUID_ACPI_INTERFACE_STANDARD, 0xB091A08A, 0xBA97, 0x11D0, 0xBD, 0x14, 0x00, 0xAA, 0x00, 0xB7, 0xB3, 0x2A); -DEFINE_GUID(GUID_TRANSLATOR_INTERFACE_STANDARD, 0x6C154A92, 0xAACF, 0x11D0, 0x8D, 0x2A, 0x00, 0xA0, 0xC9, 0x06, 0xB2, 0x44); + +DEFINE_GUID(GUID_AGP_TARGET_BUS_INTERFACE_STANDARD, 0xB15CFCE8, 0x06D1, 0x4D37, 0x9D, 0x4C, 0xBE, 0xDD, 0xE0, 0xC2, 0xA6, 0xFF); + DEFINE_GUID(GUID_ARBITER_INTERFACE_STANDARD, 0xE644F185, 0x8C0E, 0x11D0, 0xBE, 0xCF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F); -DEFINE_GUID(GUID_AGP_TARGET_BUS_INTERFACE_STANDARD, 0xB15CFCE8, 0x06D1, 0x4D37, 0x9D, 0x4C, 0xBE, 0xDD, 0xE0, 0xC2, 0xA6, 0xFF); -DEFINE_GUID(GUID_PCI_BUS_INTERFACE_STANDARD, 0x496B8281, 0x6F25, 0x11D0, 0xBE, 0xAF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F); + DEFINE_GUID(GUID_BUS_INTERFACE_STANDARD, 0x496B8280, 0x6F25, 0x11D0, 0xBE, 0xAF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F); -DEFINE_GUID(GUID_PNP_POWER_NOTIFICATION, 0xC2CF0660, 0xEB7A, 0x11D1, 0xBD, 0x7F, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0); -DEFINE_GUID(GUID_PNP_CUSTOM_NOTIFICATION, 0xACA73F8E, 0x8D23, 0x11D1, 0xAC, 0x7D, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0); -DEFINE_GUID(GUID_TARGET_DEVICE_REMOVE_COMPLETE, 0xCB3A4008, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); -DEFINE_GUID(GUID_TARGET_DEVICE_REMOVE_CANCELLED, 0xCB3A4007, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); -DEFINE_GUID(GUID_TARGET_DEVICE_QUERY_REMOVE, 0xCB3A4006, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); +DEFINE_GUID(GUID_BUS_TYPE_1394, 0xF74E73EB, 0x9AC5, 0x45EB, 0xBE, 0x4D, 0x77, 0x2C, 0xC7, 0x1D, 0xDF, 0xB3); +DEFINE_GUID(GUID_BUS_TYPE_AVC, 0xC06FF265, 0xAE09, 0x48F0, 0x81, 0x2C, 0x16, 0x75, 0x3D, 0x7C, 0xBA, 0x83); +DEFINE_GUID(GUID_BUS_TYPE_DOT4PRT, 0x441EE001, 0x4342, 0x11D5, 0xA1, 0x84, 0x00, 0xC0, 0x4F, 0x60, 0x52, 0x4D); +DEFINE_GUID(GUID_BUS_TYPE_EISA, 0xDDC35509, 0xF3FC, 0x11D0, 0xA5, 0x37, 0x00, 0x00, 0xF8, 0x75, 0x3E, 0xD1); +DEFINE_GUID(GUID_BUS_TYPE_HID, 0xEEAF37D0, 0x1963, 0x47C4, 0xAA, 0x48, 0x72, 0x47, 0x6D, 0xB7, 0xCF, 0x49); +DEFINE_GUID(GUID_BUS_TYPE_INTERNAL, 0x1530EA73, 0x086B, 0x11D1, 0xA0, 0x9F, 0x00, 0xC0, 0x4F, 0xC3, 0x40, 0xB1); +DEFINE_GUID(GUID_BUS_TYPE_IRDA, 0x7AE17DC1, 0xC944, 0x44D6, 0x88, 0x1F, 0x4C, 0x2E, 0x61, 0x05, 0x3B, 0xC1); +DEFINE_GUID(GUID_BUS_TYPE_ISAPNP, 0xE676F854, 0xD87D, 0x11D0, 0x92, 0xB2, 0x00, 0xA0, 0xC9, 0x05, 0x5F, 0xC5); +DEFINE_GUID(GUID_BUS_TYPE_LPTENUM, 0xC4CA1000, 0x2DDC, 0x11D5, 0xA1, 0x7A, 0x00, 0xC0, 0x4F, 0x60, 0x52, 0x4D); +DEFINE_GUID(GUID_BUS_TYPE_MCA, 0x1C75997A, 0xDC33, 0x11D0, 0x92, 0xB2, 0x00, 0xA0, 0xC9, 0x05, 0x5F, 0xC5); +DEFINE_GUID(GUID_BUS_TYPE_PCI, 0xC8EBDFB0, 0xB510, 0x11D0, 0x80, 0xE5, 0x00, 0xA0, 0xC9, 0x25, 0x42, 0xE3); +DEFINE_GUID(GUID_BUS_TYPE_PCMCIA, 0x09343630, 0xAF9F, 0x11D0, 0x92, 0xE9, 0x00, 0x00, 0xF8, 0x1E, 0x1B, 0x30); +DEFINE_GUID(GUID_BUS_TYPE_SD, 0xE700CC04, 0x4036, 0x4E89, 0x95, 0x79, 0x89, 0xEB, 0xF4, 0x5F, 0x00, 0xCD); +DEFINE_GUID(GUID_BUS_TYPE_SERENUM, 0x77114A87, 0x8944, 0x11D1, 0xBD, 0x90, 0x00, 0xA0, 0xC9, 0x06, 0xBE, 0x2D); +DEFINE_GUID(GUID_BUS_TYPE_USB, 0x9D7DEBBC, 0xC85D, 0x11D1, 0x9E, 0xB4, 0x00, 0x60, 0x08, 0xC3, 0xA1, 0x9A); +DEFINE_GUID(GUID_BUS_TYPE_USBPRINT, 0x441EE000, 0x4342, 0x11D5, 0xA1, 0x84, 0x00, 0xC0, 0x4F, 0x60, 0x52, 0x4D); + +DEFINE_GUID(GUID_DEVICE_INTERFACE_ARRIVAL, 0xCB3A4004, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); DEFINE_GUID(GUID_DEVICE_INTERFACE_REMOVAL, 0xCB3A4005, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); -DEFINE_GUID(GUID_DEVICE_INTERFACE_ARRIVAL, 0xCB3A4004, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); + +DEFINE_GUID(GUID_HWPROFILE_CHANGE_CANCELLED, 0xCB3A4002, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); DEFINE_GUID(GUID_HWPROFILE_CHANGE_COMPLETE, 0xCB3A4003, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); -DEFINE_GUID(GUID_HWPROFILE_CHANGE_CANCELLED, 0xCB3A4002, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); DEFINE_GUID(GUID_HWPROFILE_QUERY_CHANGE, 0xCB3A4001, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); +DEFINE_GUID(GUID_INT_ROUTE_INTERFACE_STANDARD, 0x70941BF4, 0x0073, 0x11D1, 0xA0, 0x9E, 0x00, 0xC0, 0x4F, 0xC3, 0x40, 0xB1); -/* FIXME: shouldn't go there! */ -DEFINE_GUID(GUID_DEVICE_SYS_BUTTON, - 0x4AFA3D53L, 0x74A7, 0x11d0, 0xbe, 0x5e, 0x00, 0xA0, 0xC9, 0x06, 0x28, 0x57); +DEFINE_GUID(GUID_MF_ENUMERATION_INTERFACE, 0xAEB895F0, 0x5586, 0x11D1, 0x8D, 0x84, 0x00, 0xA0, 0xC9, 0x06, 0xB2, 0x44); + +DEFINE_GUID(GUID_PCI_BUS_INTERFACE_STANDARD, 0x496B8281, 0x6F25, 0x11D0, 0xBE, 0xAF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F); +DEFINE_GUID(GUID_PCI_DEVICE_PRESENT_INTERFACE, 0xD1B82C26, 0xBF49, 0x45EF, 0xB2, 0x16, 0x71, 0xCB, 0xD7, 0x88, 0x9B, 0x57); + +DEFINE_GUID(GUID_PCMCIA_BUS_INTERFACE_STANDARD, 0x76173AF0, 0xC504, 0x11D1, 0x94, 0x7F, 0x00, 0xC0, 0x4F, 0xB9, 0x60, 0xEE); + +DEFINE_GUID(GUID_PNP_CUSTOM_NOTIFICATION, 0xACA73F8E, 0x8D23, 0x11D1, 0xAC, 0x7D, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0); +DEFINE_GUID(GUID_PNP_LOCATION_INTERFACE, 0x70211B0E, 0x0AFB, 0x47DB, 0xAF, 0xC1, 0x41, 0x0B, 0xF8, 0x42, 0x49, 0x7A); +DEFINE_GUID(GUID_PNP_POWER_NOTIFICATION, 0xC2CF0660, 0xEB7A, 0x11D1, 0xBD, 0x7F, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0); + +DEFINE_GUID(GUID_POWER_DEVICE_ENABLE, 0x827C0A6F, 0xFEB0, 0x11D0, 0xBD, 0x26, 0x00, 0xAA, 0x00, 0xB7, 0xB3, 0x2A); +DEFINE_GUID(GUID_POWER_DEVICE_TIMEOUTS, 0xA45DA735, 0xFEB0, 0x11D0, 0xBD, 0x26, 0x00, 0xAA, 0x00, 0xB7, 0xB3, 0x2A); +DEFINE_GUID(GUID_POWER_DEVICE_WAKE_ENABLE, 0xA9546A82, 0xFEB0, 0x11D0, 0xBD, 0x26, 0x00, 0xAA, 0x00, 0xB7, 0xB3, 0x2A); + +DEFINE_GUID(GUID_TARGET_DEVICE_QUERY_REMOVE, 0xCB3A4006, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); +DEFINE_GUID(GUID_TARGET_DEVICE_REMOVE_CANCELLED, 0xCB3A4007, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); +DEFINE_GUID(GUID_TARGET_DEVICE_REMOVE_COMPLETE, 0xCB3A4008, 0x46F0, 0x11D0, 0xB0, 0x8F, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3F); +DEFINE_GUID(GUID_TRANSLATOR_INTERFACE_STANDARD, 0x6C154A92, 0xAACF, 0x11D0, 0x8D, 0x2A, 0x00, 0xA0, 0xC9, 0x06, 0xB2, 0x44); /* EOF */
17 years, 1 month
1
0
0
0
[gedmurphy] 30274: - save all settings to memory when the connect button is hit - add some slightly hackish code to get the thing working. - you should now be able to connect to Windows machines using your choice of IP address, resolution and bpp.
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Nov 8 18:29:23 2007 New Revision: 30274 URL:
http://svn.reactos.org/svn/reactos?rev=30274&view=rev
Log: - save all settings to memory when the connect button is hit - add some slightly hackish code to get the thing working. - you should now be able to connect to Windows machines using your choice of IP address, resolution and bpp. Modified: trunk/reactos/base/applications/mstsc/connectdialog.c trunk/reactos/base/applications/mstsc/mstsc.rbuild trunk/reactos/base/applications/mstsc/mstsc_vc8_auto.vcproj trunk/reactos/base/applications/mstsc/precomp.h trunk/reactos/base/applications/mstsc/settings.c trunk/reactos/base/applications/mstsc/win32.c 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 18:29:23 2007 @@ -20,63 +20,7 @@ #include <precomp.h> - #define MAX_KEY_NAME 255 - -/* As slider control can't contain user data, we have to keep an - * array of RESOLUTION_INFO to have our own associated data. - */ -typedef struct _RESOLUTION_INFO -{ - DWORD dmPelsWidth; - DWORD dmPelsHeight; -} RESOLUTION_INFO, *PRESOLUTION_INFO; - -typedef struct _SETTINGS_ENTRY -{ - struct _SETTINGS_ENTRY *Blink; - struct _SETTINGS_ENTRY *Flink; - DWORD dmBitsPerPel; - DWORD dmPelsWidth; - DWORD dmPelsHeight; -} SETTINGS_ENTRY, *PSETTINGS_ENTRY; - -typedef struct _DISPLAY_DEVICE_ENTRY -{ - struct _DISPLAY_DEVICE_ENTRY *Flink; - LPWSTR DeviceDescription; - LPWSTR DeviceName; - LPWSTR DeviceKey; - LPWSTR DeviceID; - DWORD DeviceStateFlags; - PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */ - DWORD SettingsCount; - PRESOLUTION_INFO Resolutions; - DWORD ResolutionsCount; - PSETTINGS_ENTRY CurrentSettings; /* Points into Settings list */ - SETTINGS_ENTRY InitialSettings; -} DISPLAY_DEVICE_ENTRY, *PDISPLAY_DEVICE_ENTRY; - -typedef struct _INFO -{ - PRDPSETTINGS pRdpSettings; - PDISPLAY_DEVICE_ENTRY DisplayDeviceList; - PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice; - HWND hSelf; - HWND hTab; - HWND hGeneralPage; - HWND hDisplayPage; - HBITMAP hHeader; - BITMAP headerbitmap; - HICON hMstscSm; - HICON hMstscLg; - HICON hLogon; - HICON hConn; - HICON hRemote; - HICON hColor; - HBITMAP hSpectrum; - BITMAP bitmap; -} INFO, *PINFO; HINSTANCE hInst; @@ -560,15 +504,6 @@ WM_SETTEXT, 0, (LPARAM)Buffer); - - /* save new settings */ - SetIntegerToSettings(pInfo->pRdpSettings, - L"desktopwidth", - pInfo->DisplayDeviceList->Resolutions[position].dmPelsWidth); - SetIntegerToSettings(pInfo->pRdpSettings, - L"desktopheight", - pInfo->DisplayDeviceList->Resolutions[position].dmPelsHeight); - } @@ -1039,6 +974,11 @@ { if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { + if (LOWORD(wParam) == IDOK ) + { + SaveAllSettings(pInfo); + } + if (pInfo) { HeapFree(GetProcessHeap(), 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 18:29:23 2007 @@ -26,8 +26,8 @@ <file>pstcache.c</file> <file>rdp5.c</file> <file>rdp.c</file> - <file>rdpfile.c</file> <file>secure.c</file> + <file>settings.c</file> <file>ssl_calls.c</file> <file>tcp.c</file> <file>uimain.c</file> Modified: trunk/reactos/base/applications/mstsc/mstsc_vc8_auto.vcproj URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ms…
============================================================================== --- trunk/reactos/base/applications/mstsc/mstsc_vc8_auto.vcproj (original) +++ trunk/reactos/base/applications/mstsc/mstsc_vc8_auto.vcproj Thu Nov 8 18:29:23 2007 @@ -48,7 +48,7 @@ BufferSecurityCheck="false" EnableFunctionLevelLinking="false" UsePrecompiledHeader="0" - WarningLevel="4" + WarningLevel="3" Detect64BitPortabilityProblems="false" DebugInformationFormat="4" CallingConvention="0" @@ -605,11 +605,11 @@ > </File> <File - RelativePath=".\rdpfile.c" - > - </File> - <File RelativePath=".\secure.c" + > + </File> + <File + RelativePath=".\settings.c" > </File> <File @@ -633,10 +633,6 @@ Name="Header Files" Filter="h;hpp;hxx;hm;inl" > - <File - RelativePath=".\todo.h" - > - </File> </Filter> <Filter Name="Resource Files" Modified: trunk/reactos/base/applications/mstsc/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/pr…
============================================================================== --- trunk/reactos/base/applications/mstsc/precomp.h (original) +++ trunk/reactos/base/applications/mstsc/precomp.h Thu Nov 8 18:29:23 2007 @@ -17,6 +17,8 @@ #define MAXKEY 256 #define MAXVALUE 256 +extern LPWSTR lpSettings[]; + typedef struct _SETTINGS { WCHAR Key[MAXKEY]; @@ -33,6 +35,61 @@ INT NumSettings; } RDPSETTINGS, *PRDPSETTINGS; +/* As slider control can't contain user data, we have to keep an + * array of RESOLUTION_INFO to have our own associated data. + */ +typedef struct _RESOLUTION_INFO +{ + DWORD dmPelsWidth; + DWORD dmPelsHeight; +} RESOLUTION_INFO, *PRESOLUTION_INFO; + +typedef struct _SETTINGS_ENTRY +{ + struct _SETTINGS_ENTRY *Blink; + struct _SETTINGS_ENTRY *Flink; + DWORD dmBitsPerPel; + DWORD dmPelsWidth; + DWORD dmPelsHeight; +} SETTINGS_ENTRY, *PSETTINGS_ENTRY; + +typedef struct _DISPLAY_DEVICE_ENTRY +{ + struct _DISPLAY_DEVICE_ENTRY *Flink; + LPWSTR DeviceDescription; + LPWSTR DeviceName; + LPWSTR DeviceKey; + LPWSTR DeviceID; + DWORD DeviceStateFlags; + PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */ + DWORD SettingsCount; + PRESOLUTION_INFO Resolutions; + DWORD ResolutionsCount; + PSETTINGS_ENTRY CurrentSettings; /* Points into Settings list */ + SETTINGS_ENTRY InitialSettings; +} DISPLAY_DEVICE_ENTRY, *PDISPLAY_DEVICE_ENTRY; + +typedef struct _INFO +{ + PRDPSETTINGS pRdpSettings; + PDISPLAY_DEVICE_ENTRY DisplayDeviceList; + PDISPLAY_DEVICE_ENTRY CurrentDisplayDevice; + HWND hSelf; + HWND hTab; + HWND hGeneralPage; + HWND hDisplayPage; + HBITMAP hHeader; + BITMAP headerbitmap; + HICON hMstscSm; + HICON hMstscLg; + HICON hLogon; + HICON hConn; + HICON hRemote; + HICON hColor; + HBITMAP hSpectrum; + BITMAP bitmap; +} INFO, *PINFO; + BOOL OpenRDPConnectDialog(HINSTANCE hInstance, PRDPSETTINGS pRdpSettings); PRDPSETTINGS LoadRdpSettingsFromFile(LPWSTR lpFile); BOOL SaveRdpSettingsToFile(LPWSTR lpFile, PRDPSETTINGS pRdpSettings); @@ -40,6 +97,7 @@ LPWSTR GetStringFromSettings(PRDPSETTINGS pSettings, LPWSTR lpValue); BOOL SetIntegerToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, INT Value); BOOL SetStringToSettings(PRDPSETTINGS pRdpSettings, LPWSTR lpKey, LPWSTR lpValue); +VOID SaveAllSettings(PINFO pInfo); #endif /* __TODO_MSTSC_H */ Modified: trunk/reactos/base/applications/mstsc/settings.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/se…
============================================================================== --- trunk/reactos/base/applications/mstsc/settings.c (original) +++ trunk/reactos/base/applications/mstsc/settings.c Thu Nov 8 18:29:23 2007 @@ -2,7 +2,7 @@ #include <precomp.h> #define NUM_SETTINGS 6 -LPWSTR lpSettings[NUM_SETTINGS] = +LPWSTR lpSettings[NUM_SETTINGS] = { L"screen mode id", L"desktopwidth", @@ -12,6 +12,61 @@ L"compression", }; +VOID +SaveAllSettings(PINFO pInfo) +{ + INT ret; + WCHAR szKey[MAXKEY]; + WCHAR szValue[MAXVALUE]; + + /* server */ + if (GetDlgItemText(pInfo->hGeneralPage, + IDC_SERVERCOMBO, + szValue, + MAXVALUE)) + { + SetStringToSettings(pInfo->pRdpSettings, + L"full address", + szValue); + } + + /* resolution */ + ret = SendDlgItemMessage(pInfo->hDisplayPage, + IDC_GEOSLIDER, + TBM_GETPOS, + 0, + 0); + if (ret != -1) + { + SetIntegerToSettings(pInfo->pRdpSettings, + L"desktopwidth", + pInfo->DisplayDeviceList->Resolutions[ret].dmPelsWidth); + SetIntegerToSettings(pInfo->pRdpSettings, + L"desktopheight", + pInfo->DisplayDeviceList->Resolutions[ret].dmPelsHeight); + } + + /* bpp */ + ret = SendDlgItemMessage(pInfo->hDisplayPage, + IDC_BPPCOMBO, + CB_GETCURSEL, + 0, + 0); + if (ret != CB_ERR) + { + ret = SendDlgItemMessage(pInfo->hDisplayPage, + IDC_BPPCOMBO, + CB_GETITEMDATA, + ret, + 0); + if (ret != CB_ERR) + { + SetIntegerToSettings(pInfo->pRdpSettings, + L"session bpp", + ret); + } + } +} BOOL 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 18:29:23 2007 @@ -20,6 +20,10 @@ #include <winsock2.h> /* winsock2.h first */ #include <precomp.h> + +//FIXME: remove eventually +#define _UNICODE +#include <tchar.h> extern char g_username[]; @@ -69,6 +73,21 @@ int i; len = strlen(size1); + for (i = 0; i < len; i++) + { + sizex[i] = size1[i]; + } + sizex[len] = 0; +} + +/*****************************************************************************/ +static void +uni_to_str(char * sizex, TCHAR * size1) +{ + int len; + int i; + + len = _tcslen(size1); for (i = 0; i < len; i++) { sizex[i] = size1[i]; @@ -1290,13 +1309,18 @@ if (OpenRDPConnectDialog(hInstance, pRdpSettings)) { - strcpy(g_servername, "192.168.40.50"); + char szValue[MAXVALUE]; + + uni_to_str(szValue, GetStringFromSettings(pRdpSettings, L"full address")); + + strcpy(g_servername, szValue); //g_port = 3389; - strcpy(g_username, "buildbot"); - strcpy(g_password, "P4ssw0rd"); - g_server_depth = 16; - g_width = 800; - g_height = 600; + strcpy(g_username, ""); + strcpy(g_password, ""); + g_server_depth = GetIntegerFromSettings(pRdpSettings, L"session bpp"); + if (g_server_depth > 16) g_server_depth = 16; /* hack, we don't support 24bpp yet */ + g_width = GetIntegerFromSettings(pRdpSettings, L"desktopwidth"); + g_height = GetIntegerFromSettings(pRdpSettings, L"desktopheight"); g_screen_width = GetSystemMetrics(SM_CXSCREEN); g_screen_height = GetSystemMetrics(SM_CYSCREEN); g_xoff = GetSystemMetrics(SM_CXEDGE) * 2;
17 years, 1 month
1
0
0
0
[gedmurphy] 30273: rename rdpfile.c to settings.c
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Nov 8 17:34:13 2007 New Revision: 30273 URL:
http://svn.reactos.org/svn/reactos?rev=30273&view=rev
Log: rename rdpfile.c to settings.c Added: trunk/reactos/base/applications/mstsc/settings.c - copied unchanged from r30271, trunk/reactos/base/applications/mstsc/rdpfile.c Removed: trunk/reactos/base/applications/mstsc/rdpfile.c Removed: 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 (removed) @@ -1,442 +1,0 @@ - -#include <precomp.h> - -#define NUM_SETTINGS 6 -LPWSTR lpSettings[NUM_SETTINGS] = -{ - L"screen mode id", - L"desktopwidth", - L"desktopheight", - L"session bpp", - L"full address", - L"compression", -}; - - - -BOOL -SetIntegerToSettings(PRDPSETTINGS pRdpSettings, - LPWSTR lpKey, - INT Value) -{ - BOOL bRet = FALSE; - - if (pRdpSettings) - { - INT i; - - for (i = 0; i < pRdpSettings->NumSettings; i++) - { - if (wcscmp(pRdpSettings->pSettings[i].Key, lpKey) == 0) - { - if (pRdpSettings->pSettings[i].Type == L'i') - { - pRdpSettings->pSettings[i].Value.i = Value; - bRet = TRUE; - break; - } - } - } - } - - return bRet; -} - - -BOOL -SetStringToSettings(PRDPSETTINGS pRdpSettings, - LPWSTR lpKey, - LPWSTR lpValue) -{ - BOOL bRet = FALSE; - - if (pRdpSettings) - { - INT i; - - for (i = 0; i < pRdpSettings->NumSettings; i++) - { - if (wcscmp(pRdpSettings->pSettings[i].Key, lpKey) == 0) - { - if (pRdpSettings->pSettings[i].Type == L's') - { - wcscpy(pRdpSettings->pSettings[i].Value.s, lpValue); - bRet = TRUE; - break; - } - } - } - } - - return bRet; -} - - -INT -GetIntegerFromSettings(PRDPSETTINGS pRdpSettings, - LPWSTR lpKey) -{ - INT Value = -1; - - if (pRdpSettings) - { - INT i; - - for (i = 0; i < pRdpSettings->NumSettings; i++) - { - if (wcscmp(pRdpSettings->pSettings[i].Key, lpKey) == 0) - { - if (pRdpSettings->pSettings[i].Type == L'i') - { - Value = pRdpSettings->pSettings[i].Value.i; - break; - } - } - } - } - - return Value; -} - - -LPWSTR -GetStringFromSettings(PRDPSETTINGS pRdpSettings, - LPWSTR lpKey) -{ - LPWSTR lpValue = NULL; - - if (pRdpSettings) - { - INT i; - - for (i = 0; i < pRdpSettings->NumSettings; i++) - { - if (wcscmp(pRdpSettings->pSettings[i].Key, lpKey) == 0) - { - if (pRdpSettings->pSettings[i].Type == L's') - { - lpValue = pRdpSettings->pSettings[i].Value.s; - break; - } - } - } - } - - return lpValue; -} - - -static BOOL -WriteRdpFile(HANDLE hFile, - PRDPSETTINGS pRdpSettings) -{ - WCHAR line[MAXKEY + MAXVALUE + 4]; - DWORD BytesToWrite, BytesWritten; - BOOL bRet; - INT i, k; - - for (i = 0; i < pRdpSettings->NumSettings; i++) - { - /* only write out values in the lpSettings struct */ - for (k = 0; k < NUM_SETTINGS; k++) - { - if (wcscmp(lpSettings[k], pRdpSettings->pSettings[i].Key) == 0) - { - if (pRdpSettings->pSettings[i].Type == L'i') - { - _snwprintf(line, MAXKEY + MAXVALUE + 4, L"%s:i:%d\r\n", - pRdpSettings->pSettings[i].Key, - pRdpSettings->pSettings[i].Value.i); - } - else - { - _snwprintf(line, MAXKEY + MAXVALUE + 4, L"%s:s:%s\r\n", - pRdpSettings->pSettings[i].Key, - pRdpSettings->pSettings[i].Value.s); - } - - BytesToWrite = wcslen(line) * sizeof(WCHAR); - - bRet = WriteFile(hFile, - line, - BytesToWrite, - &BytesWritten, - NULL); - if (!bRet || BytesWritten == 0) - return FALSE; - } - } - } - - return TRUE; -} - - -static VOID -ParseSettings(PRDPSETTINGS pRdpSettings, - LPWSTR lpBuffer) -{ - LPWSTR lpStr = lpBuffer; - WCHAR lpKey[MAXKEY]; - WCHAR lpValue[MAXVALUE]; - INT NumSettings = 0; - INT s; - - if (lpStr) - { - /* get number of settings */ - while (*lpStr) - { - if (*lpStr == L'\n') - NumSettings++; - lpStr++; - } - lpStr = lpBuffer; - - if (NumSettings == 0) - return; - - /* move past unicode byte order */ - if (lpStr[0] == 0xFEFF || lpStr[0] == 0xFFFE) - lpStr += 1; - - pRdpSettings->pSettings = HeapAlloc(GetProcessHeap(), - 0, - sizeof(SETTINGS) * NumSettings); - if (pRdpSettings->pSettings) - { - pRdpSettings->NumSettings = NumSettings; - - for (s = 0; s < NumSettings; s++) - { - INT i = 0, k; - - /* get a key */ - while (*lpStr != L':') - { - lpKey[i++] = *lpStr++; - } - lpKey[i] = 0; - - for (k = 0; k < NUM_SETTINGS; k++) - { - if (wcscmp(lpSettings[k], lpKey) == 0) - { - wcscpy(pRdpSettings->pSettings[s].Key, lpKey); - - /* get the type */ - lpStr++; - if (*lpStr == L'i' || *lpStr == L's') - pRdpSettings->pSettings[s].Type = *lpStr; - - lpStr += 2; - - /* get a value */ - i = 0; - while (*lpStr != L'\r') - { - lpValue[i++] = *lpStr++; - } - lpValue[i] = 0; - - if (pRdpSettings->pSettings[s].Type == L'i') - { - pRdpSettings->pSettings[s].Value.i = _wtoi(lpValue); - } - else if (pRdpSettings->pSettings[s].Type == L's') - { - wcscpy(pRdpSettings->pSettings[s].Value.s, lpValue); - } - else - pRdpSettings->pSettings[s].Type = 0; - } - } - - /* move onto next setting */ - while (*lpStr != L'\n') - { - lpStr++; - } - lpStr++; - } - } - } -} - - -static LPWSTR -ReadRdpFile(HANDLE hFile) -{ - LPWSTR lpBuffer = NULL; - DWORD BytesToRead, BytesRead; - BOOL bRes; - - if (hFile) - { - BytesToRead = GetFileSize(hFile, NULL); - if (BytesToRead) - { - lpBuffer = HeapAlloc(GetProcessHeap(), - 0, - BytesToRead + 2); - if (lpBuffer) - { - bRes = ReadFile(hFile, - lpBuffer, - BytesToRead, - &BytesRead, - NULL); - if (bRes) - { - lpBuffer[BytesRead / 2] = 0; - } - else - { - HeapFree(GetProcessHeap(), - 0, - lpBuffer); - - lpBuffer = NULL; - } - } - } - } - - return lpBuffer; -} - - -static HANDLE -OpenRdpFile(LPWSTR path, BOOL bWrite) -{ - HANDLE hFile = NULL; - - if (path) - { - hFile = CreateFileW(path, - bWrite ? GENERIC_WRITE : GENERIC_READ, - 0, - NULL, - bWrite ? CREATE_ALWAYS : OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL, - NULL); - } - - return hFile; -} - - -static VOID -CloseRdpFile(HANDLE hFile) -{ - if (hFile) - CloseHandle(hFile); -} - - -BOOL -SaveRdpSettingsToFile(LPWSTR lpFile, - PRDPSETTINGS pRdpSettings) -{ - WCHAR pszPath[MAX_PATH]; - HANDLE hFile; - BOOL bRet = FALSE; - - /* use default file */ - if (lpFile == NULL) - { - HRESULT hr; - LPITEMIDLIST lpidl= NULL; - - hr = SHGetFolderLocation(NULL, - CSIDL_PERSONAL, - NULL, - 0, - &lpidl); - if (hr == S_OK) - { - if (SHGetPathFromIDListW(lpidl, pszPath)) - { - wcscat(pszPath, L"\\Default.rdp"); - lpFile = pszPath; - CoTaskMemFree(lpidl); - } - } - } - - if (lpFile) - { - hFile = OpenRdpFile(lpFile, TRUE); - if (hFile) - { - if (WriteRdpFile(hFile, pRdpSettings)) - { - bRet = TRUE; - } - - CloseRdpFile(hFile); - } - } - - return bRet; -} - - -PRDPSETTINGS -LoadRdpSettingsFromFile(LPWSTR lpFile) -{ - PRDPSETTINGS pRdpSettings = NULL; - WCHAR pszPath[MAX_PATH]; - HANDLE hFile; - - /* use default file */ - if (lpFile == NULL) - { - HRESULT hr; - LPITEMIDLIST lpidl= NULL; - - hr = SHGetFolderLocation(NULL, - CSIDL_PERSONAL, - NULL, - 0, - &lpidl); - if (hr == S_OK) - { - if (SHGetPathFromIDListW(lpidl, pszPath)) - { - wcscat(pszPath, L"\\Default.rdp"); - lpFile = pszPath; - CoTaskMemFree(lpidl); - } - } - } - - if (lpFile) - { - LPWSTR lpBuffer = NULL; - - pRdpSettings = HeapAlloc(GetProcessHeap(), - 0, - sizeof(RDPSETTINGS)); - if (pRdpSettings) - { - hFile = OpenRdpFile(lpFile, FALSE); - if (hFile) - { - lpBuffer = ReadRdpFile(hFile); - if (lpBuffer) - { - ParseSettings(pRdpSettings, lpBuffer); - - HeapFree(GetProcessHeap(), - 0, - lpBuffer); - } - - CloseRdpFile(hFile); - } - } - } - - return pRdpSettings; -}
17 years, 1 month
1
0
0
0
[tkreuzer] 30272: rename NtGdiGetClipBox to NtGdiGetAppClipBox
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Nov 8 17:29:31 2007 New Revision: 30272 URL:
http://svn.reactos.org/svn/reactos?rev=30272&view=rev
Log: rename NtGdiGetClipBox to NtGdiGetAppClipBox Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c trunk/reactos/include/reactos/win32k/ntgdibad.h trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c trunk/reactos/subsystems/win32/win32k/stubs/stubs.c trunk/reactos/subsystems/win32/win32k/w32ksvc.db Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
============================================================================== --- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original) +++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Thu Nov 8 17:29:31 2007 @@ -2399,7 +2399,7 @@ LPRECT lprc) { /* FIXME some part need be done in user mode */ - return NtGdiGetClipBox(hdc, lprc); + return NtGdiGetAppClipBox(hdc, lprc); } /* Modified: trunk/reactos/include/reactos/win32k/ntgdibad.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
============================================================================== --- trunk/reactos/include/reactos/win32k/ntgdibad.h (original) +++ trunk/reactos/include/reactos/win32k/ntgdibad.h Thu Nov 8 17:29:31 2007 @@ -210,14 +210,6 @@ UINT LastChar, LPABC abc); -/* Use NtGdiGetAppClipBox. */ -int -STDCALL -NtGdiGetClipBox ( - HDC hDC, - LPRECT rc - ); - /* Use NtGdiGetColorSpaceforBitmap. */ HCOLORSPACE STDCALL Modified: trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c (original) +++ trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c Thu Nov 8 17:29:31 2007 @@ -196,10 +196,10 @@ return retval; } -int STDCALL NtGdiGetClipBox(HDC hDC, - LPRECT rc) -{ - int Ret; +INT STDCALL +NtGdiGetAppClipBox(HDC hDC, LPRECT rc) +{ + INT Ret; NTSTATUS Status = STATUS_SUCCESS; RECT Saferect; @@ -220,7 +220,6 @@ if(!NT_SUCCESS(Status)) { - SetLastNtError(Status); return ERROR; } Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original) +++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Thu Nov 8 17:29:31 2007 @@ -2465,19 +2465,6 @@ /* * @unimplemented */ -INT -STDCALL -NtGdiGetAppClipBox( - IN HDC hdc, - OUT LPRECT prc) -{ - UNIMPLEMENTED; - return 0; -} - - /* - * @unimplemented - */ DWORD STDCALL NtGdiGetCharacterPlacementW( Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original) +++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Thu Nov 8 17:29:31 2007 @@ -746,7 +746,6 @@ NtGdiGetAspectRatioFilterEx 2 NtGdiGetBkColor 1 NtGdiGetBkMode 1 -NtGdiGetClipBox 2 NtGdiGetColorSpace 1 NtGdiGetCurrentPositionEx 2 NtGdiGetEnhMetaFile 1
17 years, 1 month
1
0
0
0
[gedmurphy] 30271: move to a precompiled header
by gedmurphy@svn.reactos.org
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[];
17 years, 1 month
1
0
0
0
[gedmurphy] 30270: add missing break
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Nov 8 16:06:00 2007 New Revision: 30270 URL:
http://svn.reactos.org/svn/reactos?rev=30270&view=rev
Log: add missing break Modified: trunk/reactos/base/applications/mstsc/connectdialog.c 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:06:00 2007 @@ -1048,6 +1048,8 @@ EndDialog(hDlg, LOWORD(wParam)); } + + break; } case WM_NOTIFY:
17 years, 1 month
1
0
0
0
← Newer
1
...
62
63
64
65
66
67
68
...
89
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Results per page:
10
25
50
100
200