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 2005
----- 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
27 participants
875 discussions
Start a n
N
ew thread
[cwittich] 19792: fixed the build options for different configurations
by cwittich@svn.reactos.com
fixed the build options for different configurations Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp _____ Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp --- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-30 23:32:31 UTC (rev 19791) +++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-30 23:33:29 UTC (rev 19792) @@ -228,7 +228,7 @@ fprintf ( OUT, "\t\t\t<Tool\r\n" ); fprintf ( OUT, "\t\t\t\tName=\"VCCLCompilerTool\"\r\n" ); - fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n", debug ? 0 : 2 ); + fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n", release ? 2 : 0 ); fprintf ( OUT, "\t\t\t\tAdditionalIncludeDirectories=\"" ); bool multiple_includes = false; @@ -278,7 +278,7 @@ } fprintf ( OUT, "\"\r\n" ); - fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"TRUE\"\r\n" ); + fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"%s\"\r\n", speed ? "FALSE" : "TRUE" ); fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"%s\"\r\n", debug ? "3" : "0" ); fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"5\"\r\n" ); fprintf ( OUT, "\t\t\t\tBufferSecurityCheck=\"%s\"\r\n", debug ? "TRUE" : "FALSE" ); @@ -298,6 +298,14 @@ } fprintf ( OUT, "\t\t\t\tWholeProgramOptimization=\"%s\"\r\n", release ? "TRUE" : "FALSE"); + if ( release ) + { + fprintf ( OUT, "\t\t\t\tFavorSizeOrSpeed=\"1\"\r\n" ); + fprintf ( OUT, "\t\t\t\tStringPooling=\"true\"\r\n" ); + } + + fprintf ( OUT, "\t\t\t\tEnablePREfast=\"%s\"\r\n", debug ? "TRUE" : "FALSE"); + fprintf ( OUT, "\t\t\t\tDisableSpecificWarnings=\"4201;4127\"\r\n" ); fprintf ( OUT, "\t\t\t\tWarningLevel=\"%s\"\r\n", release ? "0" : "4" ); fprintf ( OUT, "\t\t\t\tDetect64BitPortabilityProblems=\"%s\"\r\n", release ? "FALSE" : "TRUE"); fprintf ( OUT, "\t\t\t\tDebugInformationFormat=\"%s\"/>\r\n", speed ? "0" : "4");
19 years
1
0
0
0
[weiden] 19791: fixed querying the automatic daylight-savings information
by weiden@svn.reactos.com
fixed querying the automatic daylight-savings information Modified: trunk/reactos/lib/cpl/timedate/timedate.c _____ Modified: trunk/reactos/lib/cpl/timedate/timedate.c --- trunk/reactos/lib/cpl/timedate/timedate.c 2005-11-30 23:24:19 UTC (rev 19790) +++ trunk/reactos/lib/cpl/timedate/timedate.c 2005-11-30 23:32:31 UTC (rev 19791) @@ -462,7 +462,7 @@ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation", 0, - KEY_SET_VALUE, + KEY_QUERY_VALUE, &hKey)) return;
19 years
1
0
0
0
[gvg] 19790: Make GetProcessWindowStation work for CSRSS
by gvg@svn.reactos.com
Make GetProcessWindowStation work for CSRSS Modified: trunk/reactos/subsys/win32k/ntuser/winsta.c Modified: trunk/reactos/w32api/include/winuser.h _____ Modified: trunk/reactos/subsys/win32k/ntuser/winsta.c --- trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-11-30 22:44:41 UTC (rev 19789) +++ trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-11-30 23:24:19 UTC (rev 19790) @@ -915,17 +915,31 @@ HWINSTA FASTCALL UserGetProcessWindowStation(VOID) { + NTSTATUS Status; + HWINSTA WinSta; + if(PsGetCurrentProcess() != CsrProcess) { return PsGetCurrentProcess()->Win32WindowStation; } else { - /* FIXME - get the pointer to the window station by querying the parent of - the desktop of the calling thread (which is a window station), - then use ObFindHandleForObject() to find a suitable handle */ - DPRINT1("CSRSS called NtUserGetProcessWindowStation()!!! returned NULL!\n"); - return NULL; + DPRINT1("Should use ObFindHandleForObject\n"); + Status = ObOpenObjectByPointer(PsGetWin32Thread()->Desktop->WindowStation, + 0, + NULL, + WINSTA_ALL_ACCESS, + ExWindowStationObjectType, + UserMode, + (PHANDLE) &WinSta); + if (! NT_SUCCESS(Status)) + { + SetLastNtError(Status); + DPRINT1("Unable to open handle for CSRSSs winsta, status 0x%08x\n", + Status); + return NULL; + } + return WinSta; } } _____ Modified: trunk/reactos/w32api/include/winuser.h --- trunk/reactos/w32api/include/winuser.h 2005-11-30 22:44:41 UTC (rev 19789) +++ trunk/reactos/w32api/include/winuser.h 2005-11-30 23:24:19 UTC (rev 19790) @@ -380,6 +380,7 @@ #define WINSTA_READATTRIBUTES 2 #define WINSTA_READSCREEN 512 #define WINSTA_WRITEATTRIBUTES 16 +#define WINSTA_ALL_ACCESS 895 #define DDL_READWRITE 0 #define DDL_READONLY 1 #define DDL_HIDDEN 2
19 years
1
0
0
0
[cwittich] 19789: added PCH support
by cwittich@svn.reactos.com
added PCH support removed some redundant code Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp _____ Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp --- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-30 22:17:11 UTC (rev 19788) +++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-30 22:44:41 UTC (rev 19789) @@ -213,7 +213,10 @@ { std::string& cfg = cfgs[icfg]; - bool debug = !strstr ( cfg.c_str(), "Release" ); + bool debug = strstr ( cfg.c_str(), "Debug" ); + bool speed = strstr ( cfg.c_str(), "Speed" ); + bool release = (!debug && !speed ); + //bool msvc_headers = ( 0 != strstr ( cfg.c_str(), "MSVC Headers" ) ); fprintf ( OUT, "\t\t<Configuration\r\n" ); @@ -248,30 +251,22 @@ if ( debug ) { defines.push_back ( "_DEBUG" ); - if ( lib || exe ) - { - defines.push_back ( "_LIB" ); - } - else - { - defines.push_back ( "_WINDOWS" ); - defines.push_back ( "_USRDLL" ); - } } else { defines.push_back ( "NDEBUG" ); - if ( lib || exe ) - { - defines.push_back ( "_LIB" ); - } - else - { - defines.push_back ( "_WINDOWS" ); - defines.push_back ( "_USRDLL" ); - } } + if ( lib || exe ) + { + defines.push_back ( "_LIB" ); + } + else + { + defines.push_back ( "_WINDOWS" ); + defines.push_back ( "_USRDLL" ); + } + fprintf ( OUT, "\t\t\t\tPreprocessorDefinitions=\"" ); for ( i = 0; i < defines.size(); i++ ) { @@ -284,15 +279,29 @@ fprintf ( OUT, "\"\r\n" ); fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"TRUE\"\r\n" ); - fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"3\"\r\n" ); + fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"%s\"\r\n", debug ? "3" : "0" ); fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"5\"\r\n" ); fprintf ( OUT, "\t\t\t\tBufferSecurityCheck=\"%s\"\r\n", debug ? "TRUE" : "FALSE" ); fprintf ( OUT, "\t\t\t\tEnableFunctionLevelLinking=\"%s\"\r\n", debug ? "TRUE" : "FALSE" ); - fprintf ( OUT, "\t\t\t\tUsePrecompiledHeader=\"0\"\r\n" ); - fprintf ( OUT, "\t\t\t\tWarningLevel=\"1\"\r\n" ); - fprintf ( OUT, "\t\t\t\tDetect64BitPortabilityProblems=\"TRUE\"\r\n" ); - fprintf ( OUT, "\t\t\t\tDebugInformationFormat=\"4\"/>\r\n" ); + + if ( module.pch != NULL ) + { + fprintf ( OUT, "\t\t\t\tUsePrecompiledHeader=\"2\"\r\n" ); + string pch_path = Path::RelativeFromDirectory ( + module.pch->file.name, + module.GetBasePath() ); + fprintf ( OUT, "\t\t\t\tPrecompiledHeaderThrough=\"%s\"\r\n", pch_path.c_str() ); + } + else + { + fprintf ( OUT, "\t\t\t\tUsePrecompiledHeader=\"0\"\r\n" ); + } + fprintf ( OUT, "\t\t\t\tWholeProgramOptimization=\"%s\"\r\n", release ? "TRUE" : "FALSE"); + fprintf ( OUT, "\t\t\t\tWarningLevel=\"%s\"\r\n", release ? "0" : "4" ); + fprintf ( OUT, "\t\t\t\tDetect64BitPortabilityProblems=\"%s\"\r\n", release ? "FALSE" : "TRUE"); + fprintf ( OUT, "\t\t\t\tDebugInformationFormat=\"%s\"/>\r\n", speed ? "0" : "4"); + fprintf ( OUT, "\t\t\t<Tool\r\n" ); fprintf ( OUT, "\t\t\t\tName=\"VCCustomBuildTool\"/>\r\n" ); @@ -318,7 +327,7 @@ fprintf ( OUT, "\t\t\t\tOutputFile=\"$(OutDir)/%s%s\"\r\n", module.name.c_str(), module_type.c_str() ); fprintf ( OUT, "\t\t\t\tLinkIncremental=\"%d\"\r\n", debug ? 2 : 1 ); - fprintf ( OUT, "\t\t\t\tGenerateDebugInformation=\"TRUE\"\r\n" ); + fprintf ( OUT, "\t\t\t\tGenerateDebugInformation=\"%s\"\r\n", speed ? "FALSE" : "TRUE" ); if ( debug ) fprintf ( OUT, "\t\t\t\tProgramDatabaseFile=\"$(OutDir)/%s.pdb\"\r\n", module.name.c_str() ); @@ -351,7 +360,7 @@ fprintf ( OUT, "\t\t\t\tSubSystem=\"%d\"\r\n", console ? 1 : 2 ); } } - else if ( dll) + else if ( dll ) { fprintf ( OUT, "\t\t\t\tEntryPointSymbol=\"%s\"\r\n", module.entrypoint == "" ? "DllMain" : module.entrypoint.c_str ()); fprintf ( OUT, "\t\t\t\tBaseAddress=\"%s\"\r\n", module.baseaddress == "" ? "0x40000" : module.baseaddress.c_str ()); @@ -407,11 +416,24 @@ fprintf ( OUT, "\t\t\t<File\r\n" ); fprintf ( OUT, "\t\t\t\tRelativePath=\"%s\">\r\n", source_file.c_str() ); - if (configuration.VSProjectVersion < "8.00") { - for ( size_t iconfig = 0; iconfig < cfgs.size(); iconfig++ ) + for ( size_t iconfig = 0; iconfig < cfgs.size(); iconfig++ ) + { + std::string& config = cfgs[iconfig]; + + if ( isrcfile == 0 ) { - std::string& config = cfgs[iconfig]; + /* little hack to speed up PCH */ + fprintf ( OUT, "\t\t\t\t<FileConfiguration\r\n" ); + fprintf ( OUT, "\t\t\t\t\tName=\"" ); + fprintf ( OUT, config.c_str() ); + fprintf ( OUT, "|Win32\">\r\n" ); + fprintf ( OUT, "\t\t\t\t\t<Tool\r\n" ); + fprintf ( OUT, "\t\t\t\t\t\tName=\"VCCLCompilerTool\"\r\n" ); + fprintf ( OUT, "\t\t\t\t\t\tUsePrecompiledHeader=\"1\"/>\r\n" ); + fprintf ( OUT, "\t\t\t\t</FileConfiguration>\r\n" ); + } + if (configuration.VSProjectVersion < "8.00") { if ((source_file.find(".idl") != string::npos) || ((source_file.find(".asm") != string::npos || tolower(source_file.at(source_file.size() - 1)) == 's'))) { fprintf ( OUT, "\t\t\t\t<FileConfiguration\r\n" );
19 years
1
0
0
0
[cwittich] 19788: -moved files into correct dir
by cwittich@svn.reactos.com
-moved files into correct dir -removed wrong named dirs Deleted: trunk/reactos/subsys/system/regsrv32/ Added: trunk/reactos/subsys/system/regsvr32/Hu.rc Modified: trunk/reactos/subsys/system/regsvr32/regsvr32.rc Added: trunk/reactos/subsys/system/sndvol32/Hu.rc Modified: trunk/reactos/subsys/system/sndvol32/sndvol32.rc Deleted: trunk/reactos/subsys/system/soundvol32/ _____ Copied: trunk/reactos/subsys/system/regsvr32/Hu.rc (from rev 19784, trunk/reactos/subsys/system/regsrv32/Hu.rc) _____ Modified: trunk/reactos/subsys/system/regsvr32/regsvr32.rc --- trunk/reactos/subsys/system/regsvr32/regsvr32.rc 2005-11-30 22:11:00 UTC (rev 19787) +++ trunk/reactos/subsys/system/regsvr32/regsvr32.rc 2005-11-30 22:17:11 UTC (rev 19788) @@ -9,3 +9,4 @@ #include "En.rc" #include "De.rc" #include "Ja.rc" +#include "Hu.rc" _____ Copied: trunk/reactos/subsys/system/sndvol32/Hu.rc (from rev 19784, trunk/reactos/subsys/system/soundvol32/Hu.rc) _____ Modified: trunk/reactos/subsys/system/sndvol32/sndvol32.rc --- trunk/reactos/subsys/system/sndvol32/sndvol32.rc 2005-11-30 22:11:00 UTC (rev 19787) +++ trunk/reactos/subsys/system/sndvol32/sndvol32.rc 2005-11-30 22:17:11 UTC (rev 19788) @@ -20,3 +20,4 @@ #include "De.rc" #include "Ja.rc" #include "Sv.rc" +#include "Hu.rc"
19 years
1
0
0
0
[cwittich] 19786: fix macro redefinition when compiling with msvc
by cwittich@svn.reactos.com
fix macro redefinition when compiling with msvc Modified: trunk/reactos/subsys/system/taskmgr/precomp.h _____ Modified: trunk/reactos/subsys/system/taskmgr/precomp.h --- trunk/reactos/subsys/system/taskmgr/precomp.h 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/subsys/system/taskmgr/precomp.h 2005-11-30 22:11:00 UTC (rev 19786) @@ -1,6 +1,5 @@ #ifndef __PRECOMP_H #define __PRECOMP_H -#define _CRT_SECURE_NO_DEPRECATE #define WIN32_NO_STATUS #include <windows.h>
19 years
1
0
0
0
[weiden] 19787: rename dhcpcapi.dll to dhcpcsvc.dll
by weiden@svn.reactos.com
rename dhcpcapi.dll to dhcpcsvc.dll Modified: trunk/reactos/bootdata/packages/reactos.dff Modified: trunk/reactos/lib/cpl/ncpa/ncpa.xml Deleted: trunk/reactos/lib/dhcpcapi/ Added: trunk/reactos/lib/dhcpcsvc/ Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.c Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.def Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.rc Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.xml Added: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.c Added: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.def Added: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.rc Added: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.xml Modified: trunk/reactos/lib/directory.xml _____ Modified: trunk/reactos/bootdata/packages/reactos.dff --- trunk/reactos/bootdata/packages/reactos.dff 2005-11-30 22:11:00 UTC (rev 19786) +++ trunk/reactos/bootdata/packages/reactos.dff 2005-11-30 22:11:00 UTC (rev 19787) @@ -84,7 +84,7 @@ lib\ddraw\ddraw.dll 1 lib\devenum\devenum.dll 1 lib\devmgr\devmgr.dll 1 -lib\dhcpcapi\dhcpcapi.dll 1 +lib\dhcpcsvc\dhcpcsvc.dll 1 lib\dinput\dinput.dll 1 lib\dinput8\dinput8.dll 1 lib\dnsapi\dnsapi.dll 1 _____ Modified: trunk/reactos/lib/cpl/ncpa/ncpa.xml --- trunk/reactos/lib/cpl/ncpa/ncpa.xml 2005-11-30 22:11:00 UTC (rev 19786) +++ trunk/reactos/lib/cpl/ncpa/ncpa.xml 2005-11-30 22:11:00 UTC (rev 19787) @@ -12,7 +12,7 @@ <library>comctl32</library> <library>iphlpapi</library> <library>ws2_32</library> - <library>dhcpcapi</library> + <library>dhcpcsvc</library> <library>ntdll</library> <file>ncpa.c</file> <file>tcpip_properties.c</file> _____ Copied: trunk/reactos/lib/dhcpcsvc (from rev 19785, trunk/reactos/lib/dhcpcapi) _____ Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.c --- trunk/reactos/lib/dhcpcapi/dhcpcapi.c 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcapi.c 2005-11-30 22:11:00 UTC (rev 19787) @@ -1,138 +0,0 @@ -/* $Id: dllmain.c 12852 2005-01-06 13:58:04Z mf $ - * - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS system libraries - * FILE: lib/dhcpcapi/dhcpcapi.c - * PURPOSE: Client API for DHCP - * PROGRAMMER: arty (ayerkes(a)speakeasy.net) - * UPDATE HISTORY: - * Created 12/04/2005 - */ - -#include <roscfg.h> -#include <winsock2.h> -#include <dhcpcsdk.h> -#include <dhcp/rosdhcp_public.h> - -#define DHCP_TIMEOUT 1000 - -DWORD APIENTRY DhcpCApiInitialize(LPDWORD Version) { - *Version = 2; - return 0; -} - -VOID APIENTRY DhcpCApiCleanup() { -} - -DWORD APIENTRY DhcpQueryHWInfo( DWORD AdapterIndex, - PDWORD MediaType, - PDWORD Mtu, - PDWORD Speed ) { - COMM_DHCP_REQ Req; - COMM_DHCP_REPLY Reply; - DWORD BytesRead; - BOOL Result; - - Req.Type = DhcpReqQueryHWInfo; - Req.AdapterIndex = AdapterIndex; - - Result = CallNamedPipe - ( DHCP_PIPE_NAME, &Req, sizeof(Req), &Reply, sizeof(Reply), - &BytesRead, DHCP_TIMEOUT ); - - if( !Reply.Reply ) return 0; - else { - *MediaType = Reply.QueryHWInfo.MediaType; - *Mtu = Reply.QueryHWInfo.Mtu; - *Speed = Reply.QueryHWInfo.Speed; - return 1; - } -} - -DWORD APIENTRY DhcpLeaseIpAddress( DWORD AdapterIndex ) { - COMM_DHCP_REQ Req; - COMM_DHCP_REPLY Reply; - DWORD BytesRead; - BOOL Result; - - Req.Type = DhcpReqLeaseIpAddress; - Req.AdapterIndex = AdapterIndex; - - Result = CallNamedPipe - ( DHCP_PIPE_NAME, &Req, sizeof(Req), &Reply, sizeof(Reply), - &BytesRead, DHCP_TIMEOUT ); - - return Reply.Reply; -} - -DWORD APIENTRY DhcpReleaseIpAddressLease( DWORD AdapterIndex ) { - COMM_DHCP_REQ Req; - COMM_DHCP_REPLY Reply; - DWORD BytesRead; - BOOL Result; - - Req.Type = DhcpReqReleaseIpAddress; - Req.AdapterIndex = AdapterIndex; - - Result = CallNamedPipe - ( DHCP_PIPE_NAME, &Req, sizeof(Req), &Reply, sizeof(Reply), - &BytesRead, DHCP_TIMEOUT ); - - return Reply.Reply; -} - -DWORD APIENTRY DhcpRenewIpAddressLease( DWORD AdapterIndex ) { - COMM_DHCP_REQ Req; - COMM_DHCP_REPLY Reply; - DWORD BytesRead; - BOOL Result; - - Req.Type = DhcpReqRenewIpAddress; - Req.AdapterIndex = AdapterIndex; - - Result = CallNamedPipe - ( DHCP_PIPE_NAME, &Req, sizeof(Req), &Reply, sizeof(Reply), - &BytesRead, DHCP_TIMEOUT ); - - return Reply.Reply; -} - -DWORD APIENTRY DhcpStaticRefreshParams( DWORD AdapterIndex, - DWORD Address, - DWORD Netmask ) { - COMM_DHCP_REQ Req; - COMM_DHCP_REPLY Reply; - DWORD BytesRead; - BOOL Result; - - Req.Type = DhcpReqStaticRefreshParams; - Req.AdapterIndex = AdapterIndex; - Req.Body.StaticRefreshParams.IPAddress = Address; - Req.Body.StaticRefreshParams.Netmask = Netmask; - - Result = CallNamedPipe - ( DHCP_PIPE_NAME, &Req, sizeof(Req), &Reply, sizeof(Reply), - &BytesRead, DHCP_TIMEOUT ); - - return Reply.Reply; -} - -INT STDCALL -DllMain(PVOID hinstDll, - ULONG dwReason, - PVOID reserved) -{ - switch (dwReason) - { - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hinstDll); - break; - - case DLL_PROCESS_DETACH: - break; - } - - return TRUE; -} - -/* EOF */ _____ Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.def --- trunk/reactos/lib/dhcpcapi/dhcpcapi.def 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcapi.def 2005-11-30 22:11:00 UTC (rev 19787) @@ -1,16 +0,0 @@ -; $Id: dhcpcapi.def 14337 2005-03-26 22:10:04Z $ -; -; dhcpcapi.def -; -; ReactOS Operating System -; -LIBRARY dhcpcapi.dll -EXPORTS -DhcpCApiInitialize@4 -DhcpCApiCleanup@0 -DhcpQueryHWInfo@16 -DhcpLeaseIpAddress@4 -DhcpReleaseIpAddressLease@4 -DhcpRenewIpAddressLease@4 -DhcpStaticRefreshParams@12 -; EOF _____ Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.rc --- trunk/reactos/lib/dhcpcapi/dhcpcapi.rc 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcapi.rc 2005-11-30 22:11:00 UTC (rev 19787) @@ -1,7 +0,0 @@ -#include <windows.h> - -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "DHCP Client API\0" -#define REACTOS_STR_INTERNAL_NAME "dhcpcapi\0" -#define REACTOS_STR_ORIGINAL_FILENAME "dhcpcapi.dll\0" -#include <reactos/version.rc> _____ Deleted: trunk/reactos/lib/dhcpcsvc/dhcpcapi.xml --- trunk/reactos/lib/dhcpcapi/dhcpcapi.xml 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcapi.xml 2005-11-30 22:11:00 UTC (rev 19787) @@ -1,14 +0,0 @@ -<module name="dhcpcapi" type="win32dll" installbase="system32" installname="dhcpcapi.dll"> - <importlibrary definition="dhcpcapi.def" /> - <include base="dhcpcapi">include</include> - <define name="_DISABLE_TIDENTS" /> - <define name="__USE_W32API" /> - <define name="_WIN32_WINNT=0x0500" /> - <library>ntdll</library> - <library>kernel32</library> - <library>msvcrt</library> - <library>ws2_32</library> - <library>iphlpapi</library> - <file>dhcpcapi.c</file> - <file>dhcpcapi.rc</file> -</module> _____ Copied: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.c (from rev 19785, trunk/reactos/lib/dhcpcapi/dhcpcapi.c) _____ Copied: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.def (from rev 19785, trunk/reactos/lib/dhcpcapi/dhcpcapi.def) --- trunk/reactos/lib/dhcpcapi/dhcpcapi.def 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcsvc.def 2005-11-30 22:11:00 UTC (rev 19787) @@ -0,0 +1,16 @@ +; $Id: dhcpcapi.def 14337 2005-03-26 22:10:04Z $ +; +; dhcpcsvc.def +; +; ReactOS Operating System +; +LIBRARY dhcpcsvc.dll +EXPORTS +DhcpCApiInitialize@4 +DhcpCApiCleanup@0 +DhcpQueryHWInfo@16 +DhcpLeaseIpAddress@4 +DhcpReleaseIpAddressLease@4 +DhcpRenewIpAddressLease@4 +DhcpStaticRefreshParams@12 +; EOF _____ Copied: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.rc (from rev 19785, trunk/reactos/lib/dhcpcapi/dhcpcapi.rc) --- trunk/reactos/lib/dhcpcapi/dhcpcapi.rc 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcsvc.rc 2005-11-30 22:11:00 UTC (rev 19787) @@ -0,0 +1,7 @@ +#include <windows.h> + +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "DHCP Client Service\0" +#define REACTOS_STR_INTERNAL_NAME "dhcpcsvc\0" +#define REACTOS_STR_ORIGINAL_FILENAME "dhcpcsvc.dll\0" +#include <reactos/version.rc> _____ Copied: trunk/reactos/lib/dhcpcsvc/dhcpcsvc.xml (from rev 19785, trunk/reactos/lib/dhcpcapi/dhcpcapi.xml) --- trunk/reactos/lib/dhcpcapi/dhcpcapi.xml 2005-11-30 21:29:39 UTC (rev 19785) +++ trunk/reactos/lib/dhcpcsvc/dhcpcsvc.xml 2005-11-30 22:11:00 UTC (rev 19787) @@ -0,0 +1,14 @@ +<module name="dhcpcsvc" type="win32dll" installbase="system32" installname="dhcpcsvc.dll"> + <importlibrary definition="dhcpcsvc.def" /> + <include base="dhcpcsvc">include</include> + <define name="_DISABLE_TIDENTS" /> + <define name="__USE_W32API" /> + <define name="_WIN32_WINNT=0x0500" /> + <library>ntdll</library> + <library>kernel32</library> + <library>msvcrt</library> + <library>ws2_32</library> + <library>iphlpapi</library> + <file>dhcpcsvc.c</file> + <file>dhcpcsvc.rc</file> +</module> _____ Modified: trunk/reactos/lib/directory.xml --- trunk/reactos/lib/directory.xml 2005-11-30 22:11:00 UTC (rev 19786) +++ trunk/reactos/lib/directory.xml 2005-11-30 22:11:00 UTC (rev 19787) @@ -62,8 +62,8 @@ <directory name="devmgr"> <xi:include href="devmgr/devmgr.xml" /> </directory> -<directory name="dhcpcapi"> - <xi:include href="dhcpcapi/dhcpcapi.xml" /> +<directory name="dhcpcsvc"> + <xi:include href="dhcpcsvc/dhcpcsvc.xml" /> </directory> <directory name="dinput"> <xi:include href="dinput/dinput.xml" />
19 years
1
0
0
0
[hbirr] 19785: Don't check for RequestedOptions if a trailing slash is removed.
by hbirr@svn.reactos.com
Don't check for RequestedOptions if a trailing slash is removed. Modified: trunk/reactos/drivers/fs/vfat/create.c _____ Modified: trunk/reactos/drivers/fs/vfat/create.c --- trunk/reactos/drivers/fs/vfat/create.c 2005-11-30 19:12:40 UTC (rev 19784) +++ trunk/reactos/drivers/fs/vfat/create.c 2005-11-30 21:29:39 UTC (rev 19785) @@ -532,11 +532,6 @@ } if (PathNameU.Length > sizeof(WCHAR) && PathNameU.Buffer[PathNameU.Length/sizeof(WCHAR)-1] == L'\\') { - if (!(RequestedOptions & FILE_DIRECTORY_FILE)) - { - /* FIXME: Is this the right error message? */ - return(STATUS_OBJECT_NAME_INVALID); - } PathNameU.Length -= sizeof(WCHAR); }
19 years
1
0
0
0
[amunger] 19784: Define __NO_CTYPE_INLINES so release npfs will build again.
by amunger@svn.reactos.com
Define __NO_CTYPE_INLINES so release npfs will build again. Modified: trunk/reactos/drivers/fs/np/npfs.xml _____ Modified: trunk/reactos/drivers/fs/np/npfs.xml --- trunk/reactos/drivers/fs/np/npfs.xml 2005-11-30 18:41:46 UTC (rev 19783) +++ trunk/reactos/drivers/fs/np/npfs.xml 2005-11-30 19:12:40 UTC (rev 19784) @@ -1,6 +1,7 @@ <module name="npfs" type="kernelmodedriver" installbase="system32/drivers" installname="npfs.sys"> <include base="npfs">.</include> <define name="__USE_W32API" /> + <define name="__NO_CTYPE_INLINES" /> <library>ntoskrnl</library> <library>hal</library> <file>create.c</file>
19 years
1
0
0
0
[weiden] 19783: implemented SetupDiGetClassDevPropertySheetsA
by weiden@svn.reactos.com
implemented SetupDiGetClassDevPropertySheetsA Modified: trunk/reactos/lib/setupapi/devinst.c _____ Modified: trunk/reactos/lib/setupapi/devinst.c --- trunk/reactos/lib/setupapi/devinst.c 2005-11-30 18:26:43 UTC (rev 19782) +++ trunk/reactos/lib/setupapi/devinst.c 2005-11-30 18:41:46 UTC (rev 19783) @@ -3584,11 +3584,27 @@ OUT PDWORD RequiredSize OPTIONAL, IN DWORD PropertySheetType) { - FIXME ("Stub %p %p %p %d %p %d\n", - DeviceInfoSet, DeviceInfoData, PropertySheetHeader, PropertySheetHeaderPageListSize, - RequiredSize, PropertySheetType); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + PROPSHEETHEADERW psh; + BOOL ret = FALSE; + + TRACE("%p %p %p 0%lx %p 0x%lx\n", DeviceInfoSet, DeviceInfoData, + PropertySheetHeader, PropertySheetHeaderPageListSize, + RequiredSize, PropertySheetType); + + psh.dwFlags = PropertySheetHeader->dwFlags; + psh.phpage = PropertySheetHeader->phpage; + psh.nPages = PropertySheetHeader->nPages; + + ret = SetupDiGetClassDevPropertySheetsW(DeviceInfoSet, DeviceInfoData, PropertySheetHeader ? &psh : NULL, + PropertySheetHeaderPageListSize, RequiredSize, + PropertySheetType); + if (ret) + { + PropertySheetHeader->nPages = psh.nPages; + } + + TRACE("Returning %d\n", ret); + return ret; } struct ClassDevPropertySheetsData @@ -3642,6 +3658,8 @@ SetLastError(ERROR_INVALID_HANDLE); else if (!PropertySheetHeader) SetLastError(ERROR_INVALID_PARAMETER); + else if (PropertySheetHeader->dwFlags & PSH_PROPSHEETPAGE) + SetLastError(ERROR_INVALID_FLAGS); else if (DeviceInfoData && DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA)) SetLastError(ERROR_INVALID_USER_BUFFER); else if (!DeviceInfoData && IsEqualIID(&list->ClassGuid, &GUID_NULL))
19 years
1
0
0
0
← Newer
1
2
3
4
...
88
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
Results per page:
10
25
50
100
200