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
September 2015
----- 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
17 participants
535 discussions
Start a n
N
ew thread
[gedmurphy] 69350: [ATL] A few more gcc based fixes. Just needs the template parameter issues fixing
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 20:59:09 2015 New Revision: 69350 URL:
http://svn.reactos.org/svn/reactos?rev=69350&view=rev
Log: [ATL] A few more gcc based fixes. Just needs the template parameter issues fixing Modified: trunk/reactos/lib/atl/atlmem.h trunk/reactos/lib/atl/atlsimpstr.h trunk/reactos/lib/atl/atlstr.h trunk/reactos/lib/atl/cstringt.h Modified: trunk/reactos/lib/atl/atlmem.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlmem.h?rev=69350…
============================================================================== --- trunk/reactos/lib/atl/atlmem.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlmem.h [iso-8859-1] Thu Sep 24 20:59:09 2015 @@ -14,28 +14,28 @@ namespace ATL { -interface DECLSPEC_UUID("654F7EF5-CFDF-4df9-A450-6C6A13C622C0") IAtlMemMgr; -// #undef INTERFACE -// #define INTERFACE IAtlMemMgr -DECLARE_INTERFACE(IAtlMemMgr) +//__interface __declspec(uuid("654F7EF5-CFDF-4df9-A450-6C6A13C622C0")) +class IAtlMemMgr { public: - _Ret_maybenull_ _Post_writable_byte_size_(SizeBytes) void* Allocate( + virtual ~IAtlMemMgr() {}; + + virtual _Ret_maybenull_ _Post_writable_byte_size_(SizeBytes) void* Allocate( _In_ size_t SizeBytes - ); + ) = 0; - void Free( + virtual void Free( _Inout_opt_ void* Buffer - ); + ) = 0; - _Ret_maybenull_ _Post_writable_byte_size_(SizeBytes) void* Reallocate( + virtual _Ret_maybenull_ _Post_writable_byte_size_(SizeBytes) void* Reallocate( _Inout_updates_bytes_opt_(SizeBytes) void* Buffer, _In_ size_t SizeBytes - ); + ) = 0; - size_t GetSize( + virtual size_t GetSize( _In_ void* Buffer - ); + ) = 0; }; class CWin32Heap : public IAtlMemMgr @@ -74,10 +74,8 @@ { if (Buffer) { - BOOL FreeOk; - UNREFERENCED_PARAMETER(FreeOk); - FreeOk = ::HeapFree(m_hHeap, 0, Buffer); - ATLASSERT(FreeOk == TRUE); + if (!::HeapFree(m_hHeap, 0, Buffer)) + ATLASSERT(FALSE); } } Modified: trunk/reactos/lib/atl/atlsimpstr.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlsimpstr.h?rev=6…
============================================================================== --- trunk/reactos/lib/atl/atlsimpstr.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlsimpstr.h [iso-8859-1] Thu Sep 24 20:59:09 2015 @@ -3,39 +3,39 @@ #pragma once -#include "atlcore.h" +#include <atlcore.h> namespace ATL { struct CStringData; -interface IAtlStringMgr; -// #undef INTERFACE -// #define INTERFACE IAtlStringMgr -DECLARE_INTERFACE(IAtlStringMgr) -{ -public: - - _Ret_maybenull_ _Post_writable_byte_size_(sizeof(CStringData) + nAllocLength*nCharSize) +// Pure virtual interface +class IAtlStringMgr +{ +public: + + virtual ~IAtlStringMgr() {} + + virtual _Ret_maybenull_ _Post_writable_byte_size_(sizeof(CStringData) + nAllocLength*nCharSize) CStringData* Allocate( _In_ int nAllocLength, _In_ int nCharSize - ); - - void Free( + ) = 0; + + virtual void Free( _Inout_ CStringData* pData - ); + ) = 0; virtual _Ret_maybenull_ _Post_writable_byte_size_(sizeof(CStringData) + nAllocLength*nCharSize) CStringData* Reallocate( _Inout_ CStringData* pData, _In_ int nAllocLength, _In_ int nCharSize - ); - - CStringData* GetNilString(void); - IAtlStringMgr* Clone(void); + ) = 0; + + virtual CStringData* GetNilString(void) = 0; + virtual IAtlStringMgr* Clone(void) = 0; }; @@ -243,6 +243,11 @@ return m_pszData; } + _Ret_notnull_ _Post_writable_size_(nMinBufferLength + 1) PXSTR GetBuffer(_In_ int nMinBufferLength) + { + return PrepareWrite(nMinBufferLength); + } + int GetAllocLength() const throw() { return GetData()->nAllocLength; @@ -267,11 +272,6 @@ bool IsEmpty() const throw() { return (GetLength() == 0); - } - - _Ret_notnull_ _Post_writable_size_(nMinBufferLength + 1) PXSTR GetBuffer(_In_ int nMinBufferLength) - { - return PrepareWrite(nMinBufferLength); } CStringData* GetData() const throw() @@ -405,16 +405,14 @@ else { pNewData = pNewStringMgr->Allocate(pData->nDataLength, sizeof(XCHAR)); - if (pNewData == NULL) - { - throw; // ThrowMemoryException(); - } + if (pNewData == NULL) throw; + pNewData->nDataLength = pData->nDataLength; CopyChars(PXSTR(pNewData->data()), pData->nDataLength + 1, PCXSTR(pData->data()), pData->nDataLength + 1); } - return( pNewData ); + return(pNewData); } }; Modified: trunk/reactos/lib/atl/atlstr.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlstr.h?rev=69350…
============================================================================== --- trunk/reactos/lib/atl/atlstr.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlstr.h [iso-8859-1] Thu Sep 24 20:59:09 2015 @@ -73,7 +73,7 @@ nDataBytes = nChars * nCharSize; SizeBytes = sizeof(CStringData) + nDataBytes; - pNewData = static_cast< CStringData* >(m_MemMgr->Reallocate(StrData, SizeBytes)); + pNewData = static_cast<CStringData*>(m_MemMgr->Reallocate(StrData, SizeBytes)); if (pNewData == NULL) return NULL; pNewData->nAllocLength = nChars - 1; @@ -97,43 +97,43 @@ } }; - -template<typename _BaseType = char, class StringIterator = ChTraitsOS<_BaseType>> -class StrTraitATL : - public StringIterator -{ -public: - static HINSTANCE FindStringResourceInstance(_In_ UINT nID) throw() - { - return AtlFindStringResourceInstance(nID); - } - - static IAtlStringMgr* GetDefaultManager() throw() - { - return CAtlStringMgr::GetInstance(); - } -}; - - -template< typename _CharType = wchar_t> -class ChTraitsOS : - public ChTraitsBase<_CharType> -{ -protected: - -public: - -}; - -#ifndef _ATL_CSTRING_NO_CRT - typedef CStringT<wchar_t, StrTraitATL<wchar_t, ChTraitsCRT<wchar_t>>> CAtlStringW; -#else - typedef CStringT<wchar_t, StrTraitATL<wchar_t>> CAtlStringW; -#endif - -#ifndef _AFX - typedef CAtlStringW CStringW; -#endif +// +//template class <typename _BaseType = char, class StringIterator = ChTraitsOS<_BaseType>> +//class StrTraitATL : +// public StringIterator +//{ +//public: +// static HINSTANCE FindStringResourceInstance(_In_ UINT nID) throw() +// { +// return AtlFindStringResourceInstance(nID); +// } +// +// static IAtlStringMgr* GetDefaultManager() throw() +// { +// return CAtlStringMgr::GetInstance(); +// } +//}; +// +// +//template< typename _CharType = wchar_t> +//class ChTraitsOS : +// public ChTraitsBase<_CharType> +//{ +//protected: +// +//public: +// +//}; +// +//#ifndef _ATL_CSTRING_NO_CRT +// typedef CStringT<wchar_t, StrTraitATL<wchar_t, ChTraitsCRT<wchar_t>>> CAtlStringW; +//#else +// typedef CStringT<wchar_t, StrTraitATL<wchar_t>> CAtlStringW; +//#endif +// +//#ifndef _AFX +// typedef CAtlStringW CStringW; +//#endif } //namespace ATL Modified: trunk/reactos/lib/atl/cstringt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/cstringt.h?rev=693…
============================================================================== --- trunk/reactos/lib/atl/cstringt.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/cstringt.h [iso-8859-1] Thu Sep 24 20:59:09 2015 @@ -2,11 +2,11 @@ #define __CSTRINGT_H__ #pragma once +#include <atlsimpstr.h> #include <stddef.h> #include <stdio.h> #include <wchar.h> -#include "atlmem.h" -#include "atlsimpstr.h" +#include <atlmem.h> namespace ATL { @@ -90,8 +90,7 @@ static void __cdecl Construct(_In_ CStringT* pString) { - // new pString(CStringT); - new (pString) CStringT; + pString = new CStringT; } CStringT(_In_ const CStringT& strSrc) : @@ -112,9 +111,9 @@ if (pImage == NULL) return FALSE; int nLength = StringTraits::GetBaseTypeLength(pImage->achString, pImage->nLength); - PXSTR pszBuffer = GetBuffer(nLength); + PXSTR pszBuffer = CThisSimpleString::GetBuffer(nLength); StringTraits::ConvertToBaseType(pszBuffer, nLength, pImage->achString, pImage->nLength); - ReleaseBufferSetLength(nLength); + CThisSimpleString::ReleaseBufferSetLength(nLength); return TRUE; }
9 years, 3 months
1
0
0
0
[hbelusca] 69349: [DEVMGR_NEW] (Resources) Add a missing comma. Fixes part of GCC build.
by hbelusca@svn.reactos.org
Author: hbelusca Date: Thu Sep 24 19:11:24 2015 New Revision: 69349 URL:
http://svn.reactos.org/svn/reactos?rev=69349&view=rev
Log: [DEVMGR_NEW] (Resources) Add a missing comma. Fixes part of GCC build. Modified: trunk/reactos/dll/win32/devmgr_new/lang/en-US.rc Modified: trunk/reactos/dll/win32/devmgr_new/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/lang/…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/lang/en-US.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/lang/en-US.rc [iso-8859-1] Thu Sep 24 19:11:24 2015 @@ -247,7 +247,7 @@ BEGIN MENUITEM "E&xit", IDC_EXIT END - MENUITEM "Action" IDC_ACTIONMENU + MENUITEM "Action", IDC_ACTIONMENU POPUP "View" BEGIN MENUITEM "Devices by type", IDC_DEVBYTYPE
9 years, 3 months
1
0
0
0
[hbelusca] 69348: [DEVMGR_NEW] - Use ROS-style paths for include files. - Fixup its CMakeFiles for C++11 compilation under GCC (done the way we did for other C++ projects). - Add a VS project for D...
by hbelusca@svn.reactos.org
Author: hbelusca Date: Thu Sep 24 18:06:02 2015 New Revision: 69348 URL:
http://svn.reactos.org/svn/reactos?rev=69348&view=rev
Log: [DEVMGR_NEW] - Use ROS-style paths for include files. - Fixup its CMakeFiles for C++11 compilation under GCC (done the way we did for other C++ projects). - Add a VS project for DEVMGR to make Ged happy. [ATL] Start C++ fixups: - Add 'placement new' operator. - Add some missing functions (that were not caught by MSVC compilation because we atm. accept function usage without the existence of its actual code...). More to follow... Added: trunk/reactos/dll/win32/devmgr_new/precomp.h - copied unchanged from r69347, trunk/reactos/dll/win32/devmgr_new/stdafx.h Removed: trunk/reactos/dll/win32/devmgr_new/stdafx.h Modified: trunk/reactos/dll/win32/devmgr_new/CMakeLists.txt trunk/reactos/dll/win32/devmgr_new/api.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/ClassNode.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceNode.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceView.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/MainWindow.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/Node.cpp trunk/reactos/dll/win32/devmgr_new/devmgmt/RootNode.cpp trunk/reactos/dll/win32/devmgr_new/properties/advprop.cpp trunk/reactos/dll/win32/devmgr_new/properties/devprblm.cpp trunk/reactos/dll/win32/devmgr_new/properties/hwpage.cpp trunk/reactos/dll/win32/devmgr_new/properties/hwresource.cpp trunk/reactos/dll/win32/devmgr_new/properties/misc.cpp trunk/reactos/dll/win32/devmgr_new/properties/stubs.cpp trunk/reactos/lib/atl/atlcoll.h trunk/reactos/lib/atl/atlcore.h trunk/reactos/lib/atl/atlmem.h trunk/reactos/lib/atl/atlsimpstr.h trunk/reactos/lib/atl/atlstr.h trunk/reactos/lib/atl/cstringt.h Modified: trunk/reactos/dll/win32/devmgr_new/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/CMake…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/CMakeLists.txt [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -1,7 +1,13 @@ +PROJECT(DEVMGR) spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB) set_cpp(WITH_RTTI WITH_RUNTIME) + +if(NOT MSVC) + # HACK: this should be enabled globally! + add_compile_flags_language("-std=c++11" "CXX") +endif() include_directories( ${REACTOS_SOURCE_DIR}/include/reactos/dll @@ -9,7 +15,7 @@ includes) list(APPEND SOURCE - stdafx.h + precomp.h api.cpp properties/advprop.cpp properties/devprblm.cpp @@ -31,5 +37,5 @@ set_module_type(devmgr win32dll UNICODE) target_link_libraries(devmgr uuid atlnew wine) add_importlibs(devmgr setupapi advapi32 newdev user32 gdi32 comctl32 version msvcrt kernel32 ole32 uxtheme ntdll) -add_pch(devmgr stdafx.h SOURCE) +add_pch(devmgr precomp.h SOURCE) add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all) Modified: trunk/reactos/dll/win32/devmgr_new/api.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/api.c…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/api.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/api.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -16,8 +16,8 @@ * 04-04-2004 Created */ -#include "stdafx.h" -#include "devmgmt\MainWindow.h" +#include "precomp.h" +#include "devmgmt/MainWindow.h" HINSTANCE hDllInstance = NULL; Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/ClassNode.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/ClassNode.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/ClassNode.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,7 +7,7 @@ * */ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "ClassNode.h" Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceNode.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceNode.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceNode.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,7 +7,7 @@ * */ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "DeviceNode.h" Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceView.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceView.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/DeviceView.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -8,7 +8,7 @@ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "DeviceView.h" Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/MainWindow.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/MainWindow.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/MainWindow.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,7 +7,7 @@ */ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "MainWindow.h" Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/Node.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/Node.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/Node.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,7 +7,7 @@ * */ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "Node.h" Modified: trunk/reactos/dll/win32/devmgr_new/devmgmt/RootNode.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/devmg…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/devmgmt/RootNode.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/devmgmt/RootNode.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,7 +7,7 @@ * */ -#include "stdafx.h" +#include "precomp.h" #include "devmgmt.h" #include "RootNode.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/advprop.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/advprop.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/advprop.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -27,8 +27,8 @@ * 04-04-2004 Created */ -#include "stdafx.h" -#include <devmgr\devmgr.h> +#include "precomp.h" +#include <devmgr/devmgr.h> #include "properties.h" #include "resource.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/devprblm.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/devprblm.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/devprblm.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -25,8 +25,8 @@ * 04-04-2004 Created */ -#include "stdafx.h" -#include <devmgr\devmgr.h> +#include "precomp.h" +#include <devmgr/devmgr.h> #include "properties.h" #include "resource.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/hwpage.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/hwpage.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/hwpage.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -25,8 +25,8 @@ * 04-04-2004 Created */ -#include "stdafx.h" -#include <devmgr\devmgr.h> +#include "precomp.h" +#include <devmgr/devmgr.h> #include "properties.h" #include "resource.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/hwresource.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/hwresource.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/hwresource.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -7,8 +7,8 @@ * 2005/11/24 Created */ -#include "stdafx.h" -#include <devmgr\devmgr.h> +#include "precomp.h" +#include <devmgr/devmgr.h> #include "properties.h" #include "resource.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/misc.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/misc.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/misc.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -25,8 +25,8 @@ * 2005/11/24 Created */ -#include "stdafx.h" -#include <devmgr\devmgr.h> +#include "precomp.h" +#include <devmgr/devmgr.h> #include "properties.h" #include "resource.h" Modified: trunk/reactos/dll/win32/devmgr_new/properties/stubs.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/prope…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/properties/stubs.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/properties/stubs.cpp [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -16,7 +16,7 @@ * 04-04-2004 Created */ -#include "stdafx.h" +#include "precomp.h" // remove me BOOL Removed: trunk/reactos/dll/win32/devmgr_new/stdafx.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr_new/stdaf…
============================================================================== --- trunk/reactos/dll/win32/devmgr_new/stdafx.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr_new/stdafx.h (removed) @@ -1,75 +0,0 @@ -#pragma once - -#ifndef __REACTOS__ - -#define WIN32_LEAN_AND_MEAN -#include <Windows.h> -#include <windowsx.h> -#include <setupapi.h> -#include <cfgmgr32.h> -#include <commctrl.h> -#include <Uxtheme.h> -#include <Cfgmgr32.h> -#include <devguid.h> -#include <process.h> -#include <RegStr.h> - -#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit -#include <tchar.h> -#include <atlbase.h> -#include <atlstr.h> -#include <atlcoll.h> - -#include <strsafe.h> - -#define ERR printf -#define FIXME printf -#define UNIMPLEMENTED -#define WINE_DEFAULT_DEBUG_CHANNEL(t) - -DWORD WINAPI pSetupGuidFromString(PCWSTR pString, LPGUID lpGUID); - -BOOL -WINAPI -InstallDevInst( -IN HWND hWndParent, -IN LPCWSTR InstanceId, -IN BOOL bUpdate, -OUT LPDWORD lpReboot); - -#else - -#include <string.h> -#include <wchar.h> - -#include <tchar.h> -#include <windef.h> -#include <winbase.h> -#include <winreg.h> -#include <wingdi.h> -#include <winnls.h> -#include <wincon.h> -#include <shlobj.h> -#include <shlwapi.h> -#include <strsafe.h> -#include <process.h> -#include <WindowsX.h> -#include <strsafe.h> -#include <regstr.h> -#include <newdevp.h> - -#include <setupapi.h> -#include <commctrl.h> -#include <cfgmgr32.h> -#include <Uxtheme.h> -#include <devguid.h> - -#include <atlbase.h> -#include <atlstr.h> -#include <atlcoll.h> - -#include <wine/debug.h> - -//WINE_DEFAULT_DEBUG_CHANNEL(devmgr); - -#endif Modified: trunk/reactos/lib/atl/atlcoll.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlcoll.h?rev=6934…
============================================================================== --- trunk/reactos/lib/atl/atlcoll.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlcoll.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -2,7 +2,7 @@ #define __ATLCOLL_H__ #pragma once -#include <atlbase.h> +#include "atlbase.h" struct __POSITION Modified: trunk/reactos/lib/atl/atlcore.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlcore.h?rev=6934…
============================================================================== --- trunk/reactos/lib/atl/atlcore.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlcore.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -221,7 +221,7 @@ // #ifdef _MSC_VER #pragma warning(push) -#pragma warning(disable: 4200) +#pragma warning(disable:4200) #endif struct ATLSTRINGRESOURCEIMAGE { Modified: trunk/reactos/lib/atl/atlmem.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlmem.h?rev=69348…
============================================================================== --- trunk/reactos/lib/atl/atlmem.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlmem.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -2,12 +2,22 @@ #define __ATLMEM_H__ #pragma once -#include <atlcore.h> +#include "atlcore.h" + +// HACK HACK! This must be placed in another global ATL header!! +// Placement new operator +void *operator new (size_t, void *buf) +{ + return buf; +} namespace ATL { -__interface __declspec(uuid("654F7EF5-CFDF-4df9-A450-6C6A13C622C0")) IAtlMemMgr +interface DECLSPEC_UUID("654F7EF5-CFDF-4df9-A450-6C6A13C622C0") IAtlMemMgr; +// #undef INTERFACE +// #define INTERFACE IAtlMemMgr +DECLARE_INTERFACE(IAtlMemMgr) { public: _Ret_maybenull_ _Post_writable_byte_size_(SizeBytes) void* Allocate( @@ -65,6 +75,7 @@ if (Buffer) { BOOL FreeOk; + UNREFERENCED_PARAMETER(FreeOk); FreeOk = ::HeapFree(m_hHeap, 0, Buffer); ATLASSERT(FreeOk == TRUE); } Modified: trunk/reactos/lib/atl/atlsimpstr.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlsimpstr.h?rev=6…
============================================================================== --- trunk/reactos/lib/atl/atlsimpstr.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlsimpstr.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -3,14 +3,17 @@ #pragma once -#include <atlcore.h> +#include "atlcore.h" namespace ATL { struct CStringData; -__interface IAtlStringMgr +interface IAtlStringMgr; +// #undef INTERFACE +// #define INTERFACE IAtlStringMgr +DECLARE_INTERFACE(IAtlStringMgr) { public: @@ -389,6 +392,31 @@ m_pszData[nLength] = 0; } + static CStringData* __cdecl CloneData(_Inout_ CStringData* pData) + { + CStringData* pNewData = NULL; + + IAtlStringMgr* pNewStringMgr = pData->pStringMgr->Clone(); + if (!pData->IsLocked() && (pNewStringMgr == pData->pStringMgr)) + { + pNewData = pData; + pNewData->AddRef(); + } + else + { + pNewData = pNewStringMgr->Allocate(pData->nDataLength, sizeof(XCHAR)); + if (pNewData == NULL) + { + throw; // ThrowMemoryException(); + } + pNewData->nDataLength = pData->nDataLength; + CopyChars(PXSTR(pNewData->data()), pData->nDataLength + 1, + PCXSTR(pData->data()), pData->nDataLength + 1); + } + + return( pNewData ); + } + }; } Modified: trunk/reactos/lib/atl/atlstr.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlstr.h?rev=69348…
============================================================================== --- trunk/reactos/lib/atl/atlstr.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/atlstr.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -2,8 +2,8 @@ #define __ATLSTR_H__ #pragma once -#include <atlbase.h> -#include <cstringt.h> +#include "atlbase.h" +#include "cstringt.h" namespace ATL { Modified: trunk/reactos/lib/atl/cstringt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/cstringt.h?rev=693…
============================================================================== --- trunk/reactos/lib/atl/cstringt.h [iso-8859-1] (original) +++ trunk/reactos/lib/atl/cstringt.h [iso-8859-1] Thu Sep 24 18:06:02 2015 @@ -2,11 +2,11 @@ #define __CSTRINGT_H__ #pragma once -#include <atlsimpstr.h> #include <stddef.h> #include <stdio.h> #include <wchar.h> -#include <atlmem.h> +#include "atlmem.h" +#include "atlsimpstr.h" namespace ATL { @@ -90,7 +90,8 @@ static void __cdecl Construct(_In_ CStringT* pString) { - new pString (CStringT); + // new pString(CStringT); + new (pString) CStringT; } CStringT(_In_ const CStringT& strSrc) :
9 years, 3 months
1
0
0
0
[gadamopoulos] 69347: [SHELL32] - Fix displaying the name of guid items.
by gadamopoulos@svn.reactos.org
Author: gadamopoulos Date: Thu Sep 24 15:49:18 2015 New Revision: 69347 URL:
http://svn.reactos.org/svn/reactos?rev=69347&view=rev
Log: [SHELL32] - Fix displaying the name of guid items. Modified: trunk/reactos/dll/win32/shell32/shlfolder.cpp Modified: trunk/reactos/dll/win32/shell32/shlfolder.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlfolde…
============================================================================== --- trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] Thu Sep 24 15:49:18 2015 @@ -781,7 +781,7 @@ switch(iColumn) { case 0: /* name */ - return psf->GetDetailsOf(pidl, SHGDN_NORMAL | SHGDN_INFOLDER, psd); + return psf->GetDisplayNameOf(pidl, SHGDN_NORMAL | SHGDN_INFOLDER, &psd->str); case 1: /* comment */ HKEY hKey; if (HCR_RegOpenClassIDKey(*clsid, &hKey))
9 years, 3 months
1
0
0
0
[gedmurphy] 69346: Revert back to the old devmgr I'll install gcc and reapply the changes tonight. Apologies for the spam
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 07:30:08 2015 New Revision: 69346 URL:
http://svn.reactos.org/svn/reactos?rev=69346&view=rev
Log: Revert back to the old devmgr I'll install gcc and reapply the changes tonight. Apologies for the spam Added: trunk/reactos/dll/win32/devmgr/advprop.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/advprop.c trunk/reactos/dll/win32/devmgr/devmgmt/Resource.h - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/devmgmt/Resource.h trunk/reactos/dll/win32/devmgr/devmgmt/lang/ - copied from r69335, trunk/reactos/dll/win32/devmgr/devmgmt/lang/ trunk/reactos/dll/win32/devmgr/devmgmt/res/ - copied from r69335, trunk/reactos/dll/win32/devmgr/devmgmt/res/ trunk/reactos/dll/win32/devmgr/devmgmt/rsrc.rc - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/devmgmt/rsrc.rc trunk/reactos/dll/win32/devmgr/devmgmt/stdafx.h - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/devmgmt/stdafx.h trunk/reactos/dll/win32/devmgr/devprblm.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/devprblm.c trunk/reactos/dll/win32/devmgr/hwpage.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/hwpage.c trunk/reactos/dll/win32/devmgr/hwresource.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/hwresource.c trunk/reactos/dll/win32/devmgr/misc.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/misc.c trunk/reactos/dll/win32/devmgr/precomp.h - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/precomp.h trunk/reactos/dll/win32/devmgr/resources/devmgr.ico - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/resources/devmgr.ico trunk/reactos/dll/win32/devmgr/stubs.c - copied unchanged from r69335, trunk/reactos/dll/win32/devmgr/stubs.c trunk/reactos/dll/win32/devmgr_new/ - copied from r69335, trunk/reactos/dll/win32/devmgr_new/ Removed: trunk/reactos/dll/win32/devmgr/api.cpp trunk/reactos/dll/win32/devmgr/includes/ trunk/reactos/dll/win32/devmgr/properties/ trunk/reactos/dll/win32/devmgr/resources/computer.ico trunk/reactos/dll/win32/devmgr/resources/root.bmp trunk/reactos/dll/win32/devmgr/resources/toolbar.bmp trunk/reactos/dll/win32/devmgr/stdafx.h Modified: trunk/reactos/dll/win32/CMakeLists.txt trunk/reactos/dll/win32/devmgr/ (props changed) trunk/reactos/dll/win32/devmgr/CMakeLists.txt trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h trunk/reactos/dll/win32/devmgr/devmgmt/RootNode.cpp trunk/reactos/dll/win32/devmgr/devmgmt/devmgmt.h trunk/reactos/dll/win32/devmgr/devmgr.rc trunk/reactos/dll/win32/devmgr/lang/en-US.rc trunk/reactos/dll/win32/devmgr/resource.h Modified: trunk/reactos/dll/win32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?r…
============================================================================== --- trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -34,7 +34,7 @@ add_subdirectory(cryptui) add_subdirectory(dbghelp) add_subdirectory(dciman32) -#add_subdirectory(devmgr) +add_subdirectory(devmgr) add_subdirectory(dhcpcsvc) add_subdirectory(dnsapi) add_subdirectory(dwmapi) Propchange: trunk/reactos/dll/win32/devmgr/ ------------------------------------------------------------------------------ --- bugtraq:logregex (original) +++ bugtraq:logregex (removed) @@ -1 +0,0 @@ -((CORE|ROSTESTS|ROSAPPS)-\d+)(,? ?((CORE|ROSTESTS|ROSAPPS)-\d+))*(,? ?(and |or )?((CORE|ROSTESTS|ROSAPPS)-\d+))? Propchange: trunk/reactos/dll/win32/devmgr/ ------------------------------------------------------------------------------ --- bugtraq:message (original) +++ bugtraq:message (removed) @@ -1 +0,0 @@ -See issue %BUGID% for more details. Propchange: trunk/reactos/dll/win32/devmgr/ ------------------------------------------------------------------------------ --- bugtraq:url (original) +++ bugtraq:url (removed) @@ -1 +0,0 @@ -https://jira.reactos.org/browse/%BUGID% Propchange: trunk/reactos/dll/win32/devmgr/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Sep 24 07:30:08 2015 @@ -0,0 +1,7 @@ +GNUmakefile +*.vcproj +*.user +*.cbp +*.ncb +*.suo +*.sln Propchange: trunk/reactos/dll/win32/devmgr/ ------------------------------------------------------------------------------ --- tsvn:logminsize (original) +++ tsvn:logminsize (removed) @@ -1 +0,0 @@ -10 Modified: trunk/reactos/dll/win32/devmgr/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/CMakeList…
============================================================================== --- trunk/reactos/dll/win32/devmgr/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/CMakeLists.txt [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -1,27 +1,15 @@ spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB) -set_cpp(WITH_RTTI WITH_RUNTIME) - -include_directories( - ${REACTOS_SOURCE_DIR}/include/reactos/dll - ${REACTOS_SOURCE_DIR}/lib/atl - includes) - list(APPEND SOURCE - stdafx.h - api.cpp - properties/advprop.cpp - properties/devprblm.cpp - properties/hwpage.cpp - properties/hwresource.cpp - properties/misc.cpp - devmgmt/ClassNode.cpp - devmgmt/DeviceNode.cpp - devmgmt/DeviceView.cpp - devmgmt/MainWindow.cpp - devmgmt/Node.cpp - devmgmt/RootNode.cpp) + advprop.c + devprblm.c + hwpage.c + hwresource.c + misc.c + stubs.c + precomp.h + ${CMAKE_CURRENT_BINARY_DIR}/devmgr_stubs.c) add_library(devmgr SHARED ${SOURCE} @@ -29,7 +17,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/devmgr.def) set_module_type(devmgr win32dll UNICODE) -target_link_libraries(devmgr uuid atlnew wine) -add_importlibs(devmgr setupapi advapi32 newdev user32 gdi32 comctl32 version msvcrt kernel32 ole32 uxtheme ntdll) -add_pch(devmgr stdafx.h SOURCE) +target_link_libraries(devmgr uuid wine) +add_importlibs(devmgr setupapi advapi32 newdev user32 version msvcrt kernel32 ntdll) +add_pch(devmgr precomp.h SOURCE) add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all) Removed: trunk/reactos/dll/win32/devmgr/api.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/api.cpp?r…
============================================================================== --- trunk/reactos/dll/win32/devmgr/api.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/api.cpp (removed) @@ -1,309 +0,0 @@ -/* -* -* COPYRIGHT: See COPYING in the top level directory -* PROJECT: ReactOS devmgr.dll -* FILE: lib/devmgr/stubs.c -* PURPOSE: devmgr.dll stubs -* PROGRAMMER: Thomas Weidenmueller (w3seek(a)users.sourceforge.net) -* Ged Murphy (gedmurphy(a)reactos.org) -* NOTES: -* Some helpful resources: -*
http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;815320
-*
http://www.jsiinc.com/SUBO/tip7400/rh7482.htm
-*
http://www.jsiinc.com/SUBM/tip6400/rh6490.htm
-* -* UPDATE HISTORY: -* 04-04-2004 Created -*/ - -#include "stdafx.h" -#include "devmgmt\MainWindow.h" - -HINSTANCE hDllInstance = NULL; - -WINE_DEFAULT_DEBUG_CHANNEL(devmgr); - - -/*************************************************************************** -* NAME EXPORTED -* DeviceManager_ExecuteA -* -* DESCRIPTION -* Starts the Device Manager -* -* ARGUMENTS -* hWndParent: Handle to the parent window -* hInst: Handle to the application instance -* lpMachineName: Machine Name, NULL is the local machine -* nCmdShow: Specifies how the window should be shown -* -* RETURN VALUE -* TRUE: if no errors occured -* FALSE: if the device manager could not be executed -* -* REVISIONS -* -* NOTE -* - Win runs the device manager in a separate process, so hWndParent is somehow -* obsolete. -* -* @unimplemented -*/ -BOOL -WINAPI -DeviceManager_ExecuteA(HWND hWndParent, - HINSTANCE hInst, - LPCSTR lpMachineName, - int nCmdShow) -{ - UNIMPLEMENTED; - return FALSE; -} - - -/*************************************************************************** -* NAME EXPORTED -* DeviceManager_ExecuteW -* -* DESCRIPTION -* Starts the Device Manager -* -* ARGUMENTS -* hWndParent: Handle to the parent window -* hInst: Handle to the application instance -* lpMachineName: Machine Name, NULL is the local machine -* nCmdShow: Specifies how the window should be shown -* -* RETURN VALUE -* TRUE: if no errors occured -* FALSE: if the device manager could not be executed -* -* REVISIONS -* -* NOTE -* - Win runs the device manager in a separate process, so hWndParent is somehow -* obsolete. -* -* @unimplemented -*/ -BOOL -WINAPI -DeviceManager_ExecuteW(HWND hWndParent, - HINSTANCE hInst, - LPCWSTR lpMachineName, - int nCmdShow) -{ - // FIXME: Call mmc with devmgmt.msc - - CDeviceManager DevMgr; - return DevMgr.Create(hWndParent, hInst, lpMachineName, nCmdShow); -} - - -/*************************************************************************** -* NAME EXPORTED -* DeviceProblemWizard_RunDLLA -* -* DESCRIPTION -* Calls the device problem wizard -* -* ARGUMENTS -* hWndParent: Handle to the parent window -* hInst: Handle to the application instance -* lpDeviceCmd: A command that includes the DeviceID of the properties to be shown, -* also see NOTEs -* nCmdShow: Specifies how the window should be shown -* -* RETURN VALUE -* -* REVISIONS -* -* NOTE -* - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's -* a typo so we additionally export an alias function -* - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH" -* (/MachineName is optional). This function only parses this string and eventually -* calls DeviceProperties(). -* -* @unimplemented -*/ -VOID -WINAPI -DeviceProblemWizard_RunDLLA(HWND hWndParent, - HINSTANCE hInst, - LPCSTR lpDeviceCmd, - int nCmdShow) -{ - UNIMPLEMENTED; -} - - -/*************************************************************************** -* NAME EXPORTED -* DeviceProblemWizard_RunDLLW -* -* DESCRIPTION -* Calls the device problem wizard -* -* ARGUMENTS -* hWndParent: Handle to the parent window -* hInst: Handle to the application instance -* lpDeviceCmd: A command that includes the DeviceID of the properties to be shown, -* also see NOTEs -* nCmdShow: Specifies how the window should be shown -* -* RETURN VALUE -* -* REVISIONS -* -* NOTE -* - Win XP exports this function as DeviceProblenWizard_RunDLLA, apparently it's -* a typo so we additionally export an alias function -* - lpDeviceCmd is a string in the form of "/MachineName MACHINE /DeviceID DEVICEPATH" -* (/MachineName is optional). This function only parses this string and eventually -* calls DeviceProperties(). -* -* @unimplemented -*/ -VOID -WINAPI -DeviceProblemWizard_RunDLLW(HWND hWndParent, - HINSTANCE hInst, - LPCWSTR lpDeviceCmd, - int nCmdShow) -{ - UNIMPLEMENTED; -} - - -/*************************************************************************** -* NAME EXPORTED -* DeviceManagerPrintA -* -* DESCRIPTION -* Calls the device problem wizard -* -* ARGUMENTS -* lpMachineName: Machine Name, NULL is the local machine -* lpPrinter: Filename of the printer where it should be printed on -* nPrintMode: Specifies what kind of information is to be printed -* DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters -* uNumberOfGuids, Guids are ignored -* DEV_PRINT_SELECTED: Prints information about the devices listed in Guids -* DEV_PRINT_ALL: Prints an abstract of system information and all -* system devices -* uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless -* nPrintMode is DEV_PRINT_SELECTED -* lpGuids: Array of device guids, this parameter is ignored unless -* nPrintMode is DEV_PRINT_SELECTED -* -* RETURN VALUE -* TRUE: if no errors occured -* FALSE: if errors occured -* -* REVISIONS -* -* NOTE -* -* @unimplemented -*/ -BOOL -WINAPI -DeviceManagerPrintA(LPCSTR lpMachineName, - LPCSTR lpPrinter, - int nPrintMode, - UINT uNumberOfGuids, - LPGUID lpGuids) -{ - UNIMPLEMENTED; - return FALSE; -} - - -/*************************************************************************** -* NAME EXPORTED -* DeviceManagerPrintW -* -* DESCRIPTION -* Calls the device problem wizard -* -* ARGUMENTS -* lpMachineName: Machine Name, NULL is the local machine -* lpPrinter: Filename of the printer where it should be printed on -* nPrintMode: Specifies what kind of information is to be printed -* DEV_PRINT_ABSTRACT: Prints an abstract of system information, the parameters -* uNumberOfGuids, Guids are ignored -* DEV_PRINT_SELECTED: Prints information about the devices listed in Guids -* DEV_PRINT_ALL: Prints an abstract of system information and all -* system devices -* uNumberOfGuids: Numbers of guids in the Guids array, this parameter is ignored unless -* nPrintMode is DEV_PRINT_SELECTED -* lpGuids: Array of device guids, this parameter is ignored unless -* nPrintMode is DEV_PRINT_SELECTED -* -* RETURN VALUE -* TRUE: if no errors occured -* FALSE: if errors occured -* -* REVISIONS -* -* NOTE -* -* @unimplemented -*/ -BOOL -WINAPI -DeviceManagerPrintW(LPCWSTR lpMachineName, - LPCWSTR lpPrinter, - int nPrintMode, - UINT uNumberOfGuids, - LPGUID lpGuids) -{ - UNIMPLEMENTED; - return FALSE; -} - - -BOOL -WINAPI -DllMain(IN HINSTANCE hinstDLL, -IN DWORD dwReason, -IN LPVOID lpvReserved) -{ - switch (dwReason) - { - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hinstDLL); - hDllInstance = hinstDLL; - break; - } - - return TRUE; -} - -class CDevMgrUIModule : public CComModule -{ -public: -}; - -CDevMgrUIModule gModule; - -STDAPI DllCanUnloadNow() -{ - return gModule.DllCanUnloadNow(); -} - -STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) -{ - return gModule.DllGetClassObject(rclsid, riid, ppv); -} - -STDAPI DllRegisterServer() -{ - return gModule.DllRegisterServer(FALSE); -} - -STDAPI DllUnregisterServer() -{ - return gModule.DllUnregisterServer(FALSE); -} Modified: trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/D…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -116,7 +116,6 @@ &m_ClassGuid, &m_ClassImage); - // Get the description for the device ulLength = DISPLAY_NAME_LEN * sizeof(WCHAR); cr = CM_Get_DevNode_Registry_PropertyW(m_DevInst, @@ -137,11 +136,11 @@ } + // Cleanup if something failed if (cr != CR_SUCCESS) { - CAtlStringW str; - if (str.LoadStringW(g_hThisInstance, IDS_UNKNOWNDEVICE)) - StringCchCopyW(m_DisplayName, MAX_PATH, str.GetBuffer()); + Cleanup(); + return false; } return true; Modified: trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/D…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -78,7 +78,7 @@ 0, 0, 0, 0, m_hMainWnd, (HMENU)IDC_TREEVIEW, - g_hThisInstance, + g_hInstance, NULL); if (m_hTreeView) { @@ -204,7 +204,7 @@ m_ViewType = Type; RefreshThreadData *ThreadData; - ThreadData = new RefreshThreadData; + ThreadData = new RefreshThreadData(); ThreadData->This = this; ThreadData->ScanForChanges = ScanForChanges; ThreadData->UpdateView = UpdateView; @@ -222,10 +222,11 @@ HANDLE hThread; hThread = (HANDLE)_beginthreadex(NULL, 0, - RefreshThread, + &RefreshThread, ThreadData, 0, NULL); + if (hThread) CloseHandle(hThread); } @@ -478,7 +479,7 @@ // Get the cached class node ClassNode = GetClassNode(&ClassGuid); - if (ClassNode == nullptr) + if (ClassNode == NULL) { ATLASSERT(FALSE); ClassIndex++; @@ -519,7 +520,7 @@ // Get the cached device node DeviceNode = GetDeviceNode(DeviceInfoData.DevInst); - if (DeviceNode == nullptr) + if (DeviceNode == NULL) { ATLASSERT(bClassUnknown == true); DeviceIndex++; @@ -719,7 +720,7 @@ if (Enable == false) { CAtlStringW str; - if (str.LoadStringW(g_hThisInstance, IDS_CONFIRM_DISABLE)) + if (str.LoadStringW(g_hInstance, IDS_CONFIRM_DISABLE)) { if (MessageBoxW(m_hMainWnd, str, @@ -840,7 +841,7 @@ if (DeviceNode->CanUpdate()) { - String.LoadStringW(g_hThisInstance, IDS_MENU_UPDATE); + String.LoadStringW(g_hInstance, IDS_MENU_UPDATE); MenuItemInfo.wID = IDC_UPDATE_DRV; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -849,7 +850,7 @@ if (DeviceNode->IsDisabled()) { - String.LoadStringW(g_hThisInstance, IDS_MENU_ENABLE); + String.LoadStringW(g_hInstance, IDS_MENU_ENABLE); MenuItemInfo.wID = IDC_ENABLE_DRV; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -858,7 +859,7 @@ if (DeviceNode->CanDisable() && !DeviceNode->IsDisabled()) { - String.LoadStringW(g_hThisInstance, IDS_MENU_DISABLE); + String.LoadStringW(g_hInstance, IDS_MENU_DISABLE); MenuItemInfo.wID = IDC_DISABLE_DRV; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -867,7 +868,7 @@ if (DeviceNode->CanUninstall()) { - String.LoadStringW(g_hThisInstance, IDS_MENU_UNINSTALL); + String.LoadStringW(g_hInstance, IDS_MENU_UNINSTALL); MenuItemInfo.wID = IDC_UNINSTALL_DRV; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -879,7 +880,7 @@ } // All nodes have the scan option - String.LoadStringW(g_hThisInstance, IDS_MENU_SCAN); + String.LoadStringW(g_hInstance, IDS_MENU_SCAN); MenuItemInfo.wID = IDC_SCAN_HARDWARE; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -887,7 +888,7 @@ if ((Node->GetNodeType() == RootNode) || (MainMenu == true)) { - String.LoadStringW(g_hThisInstance, IDS_MENU_ADD); + String.LoadStringW(g_hInstance, IDS_MENU_ADD); MenuItemInfo.wID = IDC_ADD_HARDWARE; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -899,7 +900,7 @@ InsertMenuItemW(OwnerMenu, i, TRUE, &MenuSeperator); i++; - String.LoadStringW(g_hThisInstance, IDS_MENU_PROPERTIES); + String.LoadStringW(g_hInstance, IDS_MENU_PROPERTIES); MenuItemInfo.wID = IDC_PROPERTIES; MenuItemInfo.dwTypeData = String.GetBuffer(); InsertMenuItemW(OwnerMenu, i, TRUE, &MenuItemInfo); @@ -1020,14 +1021,13 @@ CClassNode *Node; Pos = m_ClassNodeList.GetHeadPosition(); - if (Pos == NULL) return nullptr; do { Node = m_ClassNodeList.GetNext(Pos); if (IsEqualGUID(*Node->GetClassGuid(), *ClassGuid)) { - ATLASSERT(Node->GetNodeType() == ClassNode); + //ATLASSERT(Node->GetType() == NodeClass); break; } @@ -1047,14 +1047,13 @@ CDeviceNode *Node; Pos = m_DeviceNodeList.GetHeadPosition(); - if (Pos == NULL) return nullptr; do { Node = m_DeviceNodeList.GetNext(Pos); if (Node->GetDeviceInst() == Device) { - ATLASSERT(Node->GetNodeType() == DeviceNode); + //ATLASSERT(Node->GetType() == NodeDevice); break; } @@ -1113,7 +1112,6 @@ if (m_RootNode) delete m_RootNode; m_RootNode = new CRootNode(&m_ImageListData); m_RootNode->SetupNode(); - // Loop through all the classes do { @@ -1157,11 +1155,6 @@ { m_DeviceNodeList.AddTail(DeviceNode); } - else - { - ATLASSERT(FALSE); - } - } SetupDiDestroyDeviceInfoList(hDevInfo); Modified: trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/M…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -21,8 +21,6 @@ #define BTN_UPDATE_DRV 4 #define BTN_UNINSTALL_DRV 5 -HINSTANCE g_hThisInstance = NULL; -HINSTANCE g_hParentInstance = NULL; // menu hints static const MENU_HINT MainMenuHintTable[] = @@ -77,7 +75,8 @@ /* PUBLIC METHODS **********************************************/ -CDeviceManager::CDeviceManager(void) : +CMainWindow::CMainWindow(void) : + m_ToolbarhImageList(NULL), m_hMainWnd(NULL), m_hStatusBar(NULL), m_hToolBar(NULL), @@ -86,55 +85,15 @@ m_szMainWndClass = L"DevMgmtWndClass"; } -CDeviceManager::~CDeviceManager(void) -{ -} - +CMainWindow::~CMainWindow(void) +{ + // Destroy any previous list + if (m_ToolbarhImageList) ImageList_Destroy(m_ToolbarhImageList); +} bool -CDeviceManager::Create(_In_ HWND /*hWndParent*/, - _In_ HINSTANCE hInst, - _In_opt_z_ LPCWSTR /*lpMachineName*/, - _In_ int nCmdShow) -{ - CDeviceManager MainWindow; - INITCOMMONCONTROLSEX icex; - CAtlStringW szAppName; - int Ret = 1; - - // Store the instances - g_hParentInstance = hInst; - g_hThisInstance = GetModuleHandleW(L"devmgr.dll"); - - // Initialize common controls - icex.dwSize = sizeof(INITCOMMONCONTROLSEX); - icex.dwICC = ICC_BAR_CLASSES | ICC_COOL_CLASSES; - InitCommonControlsEx(&icex); - - // Load the application name - if (szAppName.LoadStringW(g_hThisInstance, IDS_APPNAME)) - { - // Initialize the main window - if (MainWindow.Initialize(szAppName, nCmdShow)) - { - // Run the application - Ret = MainWindow.Run(); - - // Uninitialize the main window - MainWindow.Uninitialize(); - } - } - - return (Ret == 0); -} - - - -/* PRIVATE METHODS **********************************************/ - -bool -CDeviceManager::Initialize(_In_z_ LPCTSTR lpCaption, - _In_ int nCmdShow) +CMainWindow::Initialize(LPCTSTR lpCaption, + int nCmdShow) { CAtlStringW szCaption; WNDCLASSEXW wc = {0}; @@ -145,13 +104,13 @@ // Setup the window class struct wc.cbSize = sizeof(WNDCLASSEXW); wc.lpfnWndProc = MainWndProc; - wc.hInstance = g_hThisInstance; - wc.hIcon = LoadIcon(g_hThisInstance, MAKEINTRESOURCEW(IDI_MAIN_ICON)); + wc.hInstance = g_hInstance; + wc.hIcon = LoadIcon(g_hInstance, MAKEINTRESOURCEW(IDI_MAIN_ICON)); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1); wc.lpszMenuName = MAKEINTRESOURCEW(IDR_MAINMENU); wc.lpszClassName = m_szMainWndClass; - wc.hIconSm = (HICON)LoadImage(g_hThisInstance, + wc.hIconSm = (HICON)LoadImage(g_hInstance, MAKEINTRESOURCE(IDI_MAIN_ICON), IMAGE_ICON, 16, @@ -172,7 +131,7 @@ 500, NULL, NULL, - g_hThisInstance, + g_hInstance, this); } @@ -181,14 +140,14 @@ } void -CDeviceManager::Uninitialize(void) +CMainWindow::Uninitialize() { // Unregister the window class - UnregisterClassW(m_szMainWndClass, g_hThisInstance); + UnregisterClassW(m_szMainWndClass, g_hInstance); } int -CDeviceManager::Run(void) +CMainWindow::Run() { MSG Msg; @@ -202,11 +161,14 @@ return 0; } + +/* PRIVATE METHODS **********************************************/ + bool -CDeviceManager::MainWndMenuHint(_In_ WORD CmdId, - _In_ const MENU_HINT *HintArray, - _In_ DWORD HintsCount, - _In_ UINT DefHintId) +CMainWindow::MainWndMenuHint(WORD CmdId, + const MENU_HINT *HintArray, + DWORD HintsCount, + UINT DefHintId) { bool Found = false; const MENU_HINT *LastHint; @@ -226,14 +188,16 @@ StatusBarLoadString(m_hStatusBar, SB_SIMPLEID, - g_hThisInstance, + g_hInstance, HintId); return Found; } void -CDeviceManager::UpdateStatusBar(_In_ bool InMenuLoop) +CMainWindow::UpdateStatusBar( + _In_ bool InMenuLoop + ) { SendMessageW(m_hStatusBar, SB_SIMPLE, @@ -242,7 +206,7 @@ } bool -CDeviceManager::RefreshView(_In_ ViewType Type) +CMainWindow::RefreshView(ViewType Type) { UINT CheckId = 0; BOOL bSuccess; @@ -271,7 +235,7 @@ } bool -CDeviceManager::CreateToolBar(void) +CMainWindow::CreateToolBar() { TBADDBITMAP TbAddBitmap; INT Index; @@ -287,7 +251,7 @@ 0, 0, 0, 0, m_hMainWnd, (HMENU)IDC_TOOLBAR, - g_hThisInstance, + g_hInstance, NULL); if (m_hToolBar == NULL) return FALSE; @@ -305,7 +269,7 @@ sizeof(TBBUTTON), 0); - TbAddBitmap.hInst = g_hThisInstance; + TbAddBitmap.hInst = g_hInstance; TbAddBitmap.nID = IDB_TOOLBAR; Index = SendMessageW(m_hToolBar, TB_ADDBITMAP, _countof(TbButtons), (LPARAM)&TbAddBitmap); @@ -321,7 +285,7 @@ } bool -CDeviceManager::CreateStatusBar(void) +CMainWindow::CreateStatusBar() { int StatWidths[] = {110, -1}; // widths of status bar bool bRet = FALSE; @@ -334,7 +298,7 @@ 0, 0, 0, 0, m_hMainWnd, (HMENU)IDC_STATUSBAR, - g_hThisInstance, + g_hInstance, NULL); if (m_hStatusBar) { @@ -348,7 +312,7 @@ return bRet; } -void CDeviceManager::UpdateToolbar() +void CMainWindow::UpdateToolbar() { WORD State; @@ -403,10 +367,10 @@ bool -CDeviceManager::StatusBarLoadString(_In_ HWND hStatusBar, - _In_ INT PartId, - _In_ HINSTANCE hInstance, - _In_ UINT uID) +CMainWindow::StatusBarLoadString(IN HWND hStatusBar, + IN INT PartId, + IN HINSTANCE hInstance, + IN UINT uID) { CAtlStringW szMessage; bool bRet = false; @@ -425,7 +389,7 @@ } LRESULT -CDeviceManager::OnCreate(_In_ HWND hwnd) +CMainWindow::OnCreate(HWND hwnd) { LRESULT RetCode; @@ -458,7 +422,7 @@ } LRESULT -CDeviceManager::OnSize(void) +CMainWindow::OnSize() { RECT rcClient, rcTool, rcStatus; INT lvHeight, iToolHeight, iStatusHeight; @@ -493,7 +457,7 @@ } LRESULT -CDeviceManager::OnNotify(_In_ LPARAM lParam) +CMainWindow::OnNotify(LPARAM lParam) { LPNMHDR NmHdr = (LPNMHDR)lParam; LRESULT Ret; @@ -527,7 +491,6 @@ case TTN_GETDISPINFO: { LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT)lParam; - lpttt->hinst = g_hThisInstance; UINT_PTR idButton = lpttt->hdr.idFrom; switch (idButton) @@ -539,19 +502,18 @@ lpttt->lpszText = MAKEINTRESOURCEW(IDS_TOOLTIP_SCAN); break; case IDC_ENABLE_DRV: - lpttt->lpszText = MAKEINTRESOURCEW(IDS_TOOLTIP_ENABLE); + lpttt->lpszText = MAKEINTRESOURCE(IDS_TOOLTIP_ENABLE); break; case IDC_DISABLE_DRV: - lpttt->lpszText = MAKEINTRESOURCEW(IDS_TOOLTIP_DISABLE); + lpttt->lpszText = MAKEINTRESOURCE(IDS_TOOLTIP_DISABLE); break; case IDC_UPDATE_DRV: - lpttt->lpszText = MAKEINTRESOURCEW(IDS_TOOLTIP_UPDATE); + lpttt->lpszText = MAKEINTRESOURCE(IDS_TOOLTIP_UPDATE); break; case IDC_UNINSTALL_DRV: - lpttt->lpszText = MAKEINTRESOURCEW(IDS_TOOLTIP_UNINSTALL); + lpttt->lpszText = MAKEINTRESOURCE(IDS_TOOLTIP_UNINSTALL); break; } - idButton = idButton; break; } } @@ -560,14 +522,14 @@ } LRESULT -CDeviceManager::OnContext(_In_ LPARAM lParam) +CMainWindow::OnContext(LPARAM lParam) { return m_DeviceView->OnContextMenu(lParam); } LRESULT -CDeviceManager::OnCommand(_In_ WPARAM wParam, - _In_ LPARAM /*lParam*/) +CMainWindow::OnCommand(WPARAM wParam, + LPARAM /*lParam*/) { LRESULT RetCode = 0; WORD Msg; @@ -679,7 +641,7 @@ } LRESULT -CDeviceManager::OnDestroy(void) +CMainWindow::OnDestroy() { // Uninitialize the device view m_DeviceView->Uninitialize(); @@ -698,16 +660,16 @@ } LRESULT CALLBACK -CDeviceManager::MainWndProc(_In_ HWND hwnd, - _In_ UINT msg, - _In_ WPARAM wParam, - _In_ LPARAM lParam) -{ - CDeviceManager *This; +CMainWindow::MainWndProc(HWND hwnd, + UINT msg, + WPARAM wParam, + LPARAM lParam) +{ + CMainWindow *This; LRESULT RetCode = 0; // Get the object pointer from window context - This = (CDeviceManager *)GetWindowLongPtr(hwnd, GWLP_USERDATA); + This = (CMainWindow *)GetWindowLongPtr(hwnd, GWLP_USERDATA); if (This == NULL) { // Check that this isn't a create message @@ -723,7 +685,7 @@ case WM_CREATE: { // Get the object pointer from the create param - This = (CDeviceManager *)((LPCREATESTRUCT)lParam)->lpCreateParams; + This = (CMainWindow *)((LPCREATESTRUCT)lParam)->lpCreateParams; // Store the pointer in the window's global user data SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)This); @@ -819,3 +781,47 @@ return RetCode; } + + +//////// MOVE ME //////////////// + +HINSTANCE g_hInstance = NULL; +HANDLE ProcessHeap = NULL; + +BOOL +WINAPI +DeviceManager_ExecuteW(HWND /*hWndParent*/, + HINSTANCE hInst, + LPCWSTR /*lpMachineName*/, + int nCmdShow) +{ + CMainWindow MainWindow; + INITCOMMONCONTROLSEX icex; + CAtlStringW szAppName; + int Ret = 1; + + // Store the global values + g_hInstance = hInst; + ProcessHeap = GetProcessHeap(); + + // Initialize common controls + icex.dwSize = sizeof(INITCOMMONCONTROLSEX); + icex.dwICC = ICC_BAR_CLASSES | ICC_COOL_CLASSES; + InitCommonControlsEx(&icex); + + // Load the application name + if (szAppName.LoadStringW(g_hInstance, IDS_APPNAME)) + { + // Initialize the main window + if (MainWindow.Initialize(szAppName, nCmdShow)) + { + // Run the application + Ret = MainWindow.Run(); + + // Uninitialize the main window + MainWindow.Uninitialize(); + } + } + + return Ret; +} Modified: trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/M…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -7,27 +7,25 @@ UINT HintId; } MENU_HINT, *PMENU_HINT; -class CDeviceManager +class CMainWindow { CAtlStringW m_szMainWndClass; CDeviceView *m_DeviceView; HWND m_hMainWnd; HWND m_hStatusBar; HWND m_hToolBar; + HIMAGELIST m_ToolbarhImageList; HMENU m_hMenu; HMENU m_hActionMenu; int m_CmdShow; public: - CDeviceManager(void); - ~CDeviceManager(void); + CMainWindow(void); + ~CMainWindow(void); - bool Create( - _In_ HWND hWndParent, - _In_ HINSTANCE hInst, - _In_opt_z_ LPCWSTR lpMachineName, - _In_ int nCmdShow - ); + bool Initialize(LPCTSTR lpCaption, int nCmdShow); + int Run(); + void Uninitialize(); private: static LRESULT CALLBACK MainWndProc( @@ -37,44 +35,24 @@ LPARAM lParam ); - bool Initialize( - _In_z_ LPCTSTR lpCaption, - _In_ int nCmdShow + LRESULT OnCreate(HWND hwnd); + LRESULT OnDestroy(); + LRESULT OnSize(); + LRESULT OnNotify(LPARAM lParam); + LRESULT OnContext(LPARAM lParam); + LRESULT OnCommand(WPARAM wParam, LPARAM lParam); + + bool CreateToolBar(); + bool CreateStatusBar(); + + void UpdateToolbar( ); - int Run(); - void Uninitialize(void); - - LRESULT OnCreate( - _In_ HWND hwnd - ); - - LRESULT OnDestroy(void); - LRESULT OnSize(void); - - LRESULT OnNotify( - _In_ LPARAM lParam - ); - - LRESULT OnContext( - _In_ LPARAM lParam - ); - - LRESULT OnCommand( - _In_ WPARAM wParam, - LPARAM lParam - ); - - bool CreateToolBar(void); - bool CreateStatusBar(void); - - void UpdateToolbar(void); - bool StatusBarLoadString( - _In_ HWND hStatusBar, - _In_ INT PartId, - _In_ HINSTANCE hInstance, - _In_ UINT uID + HWND hStatusBar, + INT PartId, + HINSTANCE hInstance, + UINT uID ); void UpdateStatusBar( @@ -82,14 +60,14 @@ ); bool MainWndMenuHint( - _In_ WORD CmdId, - _In_ const MENU_HINT *HintArray, - _In_ DWORD HintsCount, - _In_ UINT DefHintId + WORD CmdId, + const MENU_HINT *HintArray, + DWORD HintsCount, + UINT DefHintId ); bool RefreshView( - _In_ ViewType Type + ViewType Type ); }; Modified: trunk/reactos/dll/win32/devmgr/devmgmt/RootNode.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/R…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/RootNode.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/RootNode.cpp [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -29,8 +29,8 @@ // Load the bitmap we'll be using as the root image HBITMAP hRootImage; - hRootImage = LoadBitmapW(g_hThisInstance, - MAKEINTRESOURCEW(IDB_ROOT_IMAGE)); + hRootImage = LoadBitmapW(g_hInstance, + MAKEINTRESOURCEW(IDB_ROOT_IMAGE)); if (hRootImage == NULL) return FALSE; // Add this bitmap to the device image list. This is a bit hacky, but it's safe Modified: trunk/reactos/dll/win32/devmgr/devmgmt/devmgmt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/d…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgmt/devmgmt.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgmt/devmgmt.h [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -2,8 +2,8 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> #pragma once -#include "..\resource.h" +#include "resource.h" -extern HINSTANCE g_hThisInstance; -extern HINSTANCE g_hParentInstance; +extern HINSTANCE g_hInstance; +extern HANDLE ProcessHeap; Modified: trunk/reactos/dll/win32/devmgr/devmgr.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgr.rc…
============================================================================== --- trunk/reactos/dll/win32/devmgr/devmgr.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/devmgr.rc [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -4,23 +4,78 @@ #include "resource.h" +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL + #define REACTOS_VERSION_DLL #define REACTOS_STR_FILE_DESCRIPTION "ReactOS Device Manager" #define REACTOS_STR_INTERNAL_NAME "devmgr" #define REACTOS_STR_ORIGINAL_FILENAME "devmgr.dll" +#include <reactos/version.rc> -//#include <reactos/version.rc> -//#include <reactos/manifest_dll.rc> +IDI_DEVMGR ICON "resources/devmgr.ico" -LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL - -IDI_MAIN_ICON ICON "resources/computer.ico" -IDB_ROOT_IMAGE BITMAP "resources/root.bmp" - -/* main toolbar icons */ -IDB_TOOLBAR BITMAP DISCARDABLE "resources/toolbar.bmp" +#include <reactos/manifest_dll.rc> /* UTF-8 */ #pragma code_page(65001) -#include "lang/en-US.rc" +#ifdef LANGUAGE_BG_BG + #include "lang/bg-BG.rc" +#endif +#ifdef LANGUAGE_CS_CZ + #include "lang/cs-CZ.rc" +#endif +#ifdef LANGUAGE_DE_DE + #include "lang/de-DE.rc" +#endif +#ifdef LANGUAGE_EL_GR + #include "lang/el-GR.rc" +#endif +#ifdef LANGUAGE_EN_US + #include "lang/en-US.rc" +#endif +#ifdef LANGUAGE_ES_ES + #include "lang/es-ES.rc" +#endif +#ifdef LANGUAGE_HE_IL + #include "lang/he-IL.rc" +#endif +#ifdef LANGUAGE_FR_FR + #include "lang/fr-FR.rc" +#endif +#ifdef LANGUAGE_HU_HU + #include "lang/hu-HU.rc" +#endif +#ifdef LANGUAGE_ID_ID + #include "lang/id-ID.rc" +#endif +#ifdef LANGUAGE_IT_IT + #include "lang/it-IT.rc" +#endif +#ifdef LANGUAGE_NB_NO + #include "lang/no-NO.rc" +#endif +#ifdef LANGUAGE_PL_PL + #include "lang/pl-PL.rc" +#endif +#ifdef LANGUAGE_PT_BR + #include "lang/pt-BR.rc" +#endif +#ifdef LANGUAGE_RO_RO + #include "lang/ro-RO.rc" +#endif +#ifdef LANGUAGE_RU_RU + #include "lang/ru-RU.rc" +#endif +#ifdef LANGUAGE_SK_SK + #include "lang/sk-SK.rc" +#endif +#ifdef LANGUAGE_SQ_AL + #include "lang/sq-AL.rc" +#endif +#ifdef LANGUAGE_TR_TR + #include "lang/tr-TR.rc" +#endif +#ifdef LANGUAGE_UK_UA + #include "lang/uk-UA.rc" +#endif Modified: trunk/reactos/dll/win32/devmgr/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/lang/en-U…
============================================================================== --- trunk/reactos/dll/win32/devmgr/lang/en-US.rc [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/lang/en-US.rc [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -235,85 +235,3 @@ ICON "", IDC_DEVICON, 7, 7, 20, 20 LTEXT "", IDC_DEVNAME, 37, 9, 174, 16, SS_NOPREFIX END - - -/* - This code relates to the device manager GUI - */ - -IDR_MAINMENU MENU -BEGIN - POPUP "&File" - BEGIN - MENUITEM "E&xit", IDC_EXIT - END - MENUITEM "Action" IDC_ACTIONMENU - POPUP "View" - BEGIN - MENUITEM "Devices by type", IDC_DEVBYTYPE - MENUITEM "Devices by connection", IDC_DEVBYCONN - MENUITEM "Resources by type", IDC_RESBYTYPE, GRAYED - MENUITEM "Resources by connection", IDC_RESBYCONN, GRAYED - MENUITEM SEPARATOR - MENUITEM "Show hidden devices", IDC_SHOWHIDDEN - END - POPUP "Help" - BEGIN - MENUITEM "About", IDC_ABOUT - END -END - - -STRINGTABLE DISCARDABLE -BEGIN - IDS_APPNAME "ReactOS Device Manager" - IDS_CONFIRM_DISABLE "Disabling this device will cause it to stop functioning.\r\nDo you really want to disable it?" -END -STRINGTABLE DISCARDABLE -BEGIN - IDS_MENU_UPDATE "Update driver software..." - IDS_MENU_ENABLE "Enable" - IDS_MENU_DISABLE "Disable" - IDS_MENU_UNINSTALL "Uninstall" - IDS_MENU_SCAN "Scan for hardware changes" - IDS_MENU_ADD "Add hardware" - IDS_MENU_PROPERTIES "Properties" -END - -STRINGTABLE DISCARDABLE -BEGIN - IDS_TOOLTIP_PROPERTIES "Properties" - IDS_TOOLTIP_SCAN "Scan for hardware changes" - IDS_TOOLTIP_ENABLE "Enable" - IDS_TOOLTIP_DISABLE "Disable" - IDS_TOOLTIP_UPDATE "Update Driver Software" - IDS_TOOLTIP_UNINSTALL "Uninstall" -END - -/* Hints */ -STRINGTABLE DISCARDABLE -BEGIN - IDS_HINT_BLANK " " - IDS_HINT_PROPERTIES " Open property dialog for the current selection." - IDS_HINT_SCAN " Scan for changed or new plug and play devices." - IDS_HINT_ENABLE " Enables the selected device." - IDS_HINT_DISABLE " Disables the selected device." - IDS_HINT_UPDATE " Launches the Update Driver Software wizard for the selected device." - IDS_HINT_UNINSTALL " Uninstalls the driver for the selected device." - IDS_HINT_ADD " Adds a legacy (non-Plug and Play) device to the computer." - IDS_HINT_ABOUT " About ReactOS Device Manager." - IDS_HINT_EXIT " Exits the program." - - IDS_HINT_DEV_BY_TYPE " Displays devices by hardware type." - IDS_HINT_DEV_BY_CONN " Displays devices by connection." - IDS_HINT_RES_BY_TYPE " Displays resources by type." - IDS_HINT_RES_BY_CONN " Displays resources by connection type." - IDS_HINT_SHOW_HIDDEN " Displays legacy devices and devices that are no longer installed." - - IDS_HINT_SYS_RESTORE " Restores this window to normal size." - IDS_HINT_SYS_MOVE " Moves this window." - IDS_HINT_SYS_SIZE " Resizes this window." - IDS_HINT_SYS_MINIMIZE " Collapses this window to an icon." - IDS_HINT_SYS_MAXIMIZE " Expands this window to fill this screen." - IDS_HINT_SYS_CLOSE " Closes this window." -END Modified: trunk/reactos/dll/win32/devmgr/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/resource.…
============================================================================== --- trunk/reactos/dll/win32/devmgr/resource.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/resource.h [iso-8859-1] Thu Sep 24 07:30:08 2015 @@ -1,98 +1,46 @@ #pragma once -#define IDC_STATIC -1 +#define IDI_DEVMGR 100 -#define IDS_APPNAME 10 +#define IDD_HARDWARE 100 +#define IDD_DEVICEGENERAL 101 +#define IDD_DEVICEDRIVER 102 +#define IDD_DEVICERESOURCES 103 +#define IDD_DRIVERDETAILS 104 +#define IDD_DEVICEDETAILS 105 +#define IDD_DEVICEPOWER 106 -#define IDI_MAIN_ICON 20 -#define IDB_ROOT_IMAGE 21 -#define IDB_TOOLBAR 22 - -/* windows */ -#define IDC_TREEVIEW 30 -#define IDC_TOOLBAR 31 -#define IDC_STATUSBAR 32 -#define IDR_MAINMENU 33 -#define IDR_POPUP 34 - -/* Actions */ -#define IDC_PROPERTIES 40 -#define IDC_SCAN_HARDWARE 41 -#define IDC_ENABLE_DRV 42 -#define IDC_DISABLE_DRV 43 -#define IDC_UPDATE_DRV 44 -#define IDC_UNINSTALL_DRV 45 -#define IDC_ADD_HARDWARE 46 - -/* Menu items */ -#define IDC_ACTIONMENU 50 -#define IDC_ABOUT 51 -#define IDC_EXIT 52 - - -/* view menu */ -#define IDC_DEVBYTYPE 60 -#define IDC_DEVBYCONN 61 -#define IDC_RESBYTYPE 62 -#define IDC_RESBYCONN 63 -#define IDC_SHOWHIDDEN 64 - - -/* tooltips */ -#define IDS_TOOLTIP_PROPERTIES 70 -#define IDS_TOOLTIP_SCAN 71 -#define IDS_TOOLTIP_ENABLE 72 -#define IDS_TOOLTIP_DISABLE 73 -#define IDS_TOOLTIP_UPDATE 74 -#define IDS_TOOLTIP_UNINSTALL 75 - -/* General strings */ -#define IDS_CONFIRM_DISABLE 80 - -/* Menu strings */ -#define IDS_MENU_UPDATE 90 -#define IDS_MENU_ENABLE 91 -#define IDS_MENU_DISABLE 92 -#define IDS_MENU_UNINSTALL 93 -#define IDS_MENU_SCAN 94 -#define IDS_MENU_ADD 95 -#define IDS_MENU_PROPERTIES 96 - - -/* menu hints */ -#define IDS_HINT_BLANK 100 -#define IDS_HINT_PROPERTIES 101 -#define IDS_HINT_SCAN 102 -#define IDS_HINT_ENABLE 103 -#define IDS_HINT_DISABLE 104 -#define IDS_HINT_UPDATE 105 -#define IDS_HINT_UNINSTALL 106 -#define IDS_HINT_ADD 107 -#define IDS_HINT_ABOUT 108 -#define IDS_HINT_EXIT 109 - -#define IDS_HINT_DEV_BY_TYPE 120 -#define IDS_HINT_DEV_BY_CONN 121 -#define IDS_HINT_RES_BY_TYPE 123 -#define IDS_HINT_RES_BY_CONN 124 -#define IDS_HINT_SHOW_HIDDEN 125 - -/* system menu hints */ -#define IDS_HINT_SYS_RESTORE 130 -#define IDS_HINT_SYS_MOVE 131 -#define IDS_HINT_SYS_SIZE 132 -#define IDS_HINT_SYS_MINIMIZE 133 -#define IDS_HINT_SYS_MAXIMIZE 134 -#define IDS_HINT_SYS_CLOSE 135 - - - - - - - - -#define IDI_DEVMGR 255 +#define IDC_DEVICON 0x57B +#define IDC_DEVNAME 0x57C +#define IDC_DEVTYPE 0x57D +#define IDC_DEVMANUFACTURER 0x57E +#define IDC_DEVLOCATION 0x57F +#define IDC_DEVSTATUSGROUP 0x580 +#define IDC_DEVSTATUS 0x581 +#define IDC_DEVUSAGE 0x582 +#define IDC_DEVICES 0x583 +#define IDC_LV_DEVICES 0x584 +#define IDC_PROPERTIESGROUP 0x585 +#define IDC_MANUFACTURER 0x587 +#define IDC_LOCATION 0x588 +#define IDC_STATUS 0x586 +#define IDC_TROUBLESHOOT 0x589 +#define IDC_PROPERTIES 0x58A +#define IDC_DEVUSAGELABEL 0x58B +#define IDC_DEVPROBLEM 0x58C +#define IDC_DRVPROVIDER 0x58D +#define IDC_DRVDATE 0x58E +#define IDC_DRVVERSION 0x58F +#define IDC_DIGITALSIGNER 0x590 +#define IDC_DRIVERDETAILS 0x591 +#define IDC_DRIVERFILES 0x592 +#define IDC_FILEPROVIDER 0x593 +#define IDC_FILEVERSION 0x594 +#define IDC_FILECOPYRIGHT 0x595 +#define IDC_DETAILSPROPNAME 0x596 +#define IDC_DETAILSPROPVALUE 0x597 +#define IDC_UPDATEDRIVER 0x598 +#define IDC_DRIVERRESOURCES 0x599 #define IDS_NAME 0x100 #define IDS_TYPE 0x101 @@ -206,43 +154,3 @@ #define IDS_PROP_CURRENTPOWERSTATE 0x315 #define IDS_PROP_POWERCAPABILITIES 0x316 #define IDS_PROP_POWERSTATEMAPPINGS 0x317 - -#define IDD_HARDWARE 0x400 -#define IDD_DEVICEGENERAL 0x401 -#define IDD_DEVICEDRIVER 0x402 -#define IDD_DEVICERESOURCES 0x403 -#define IDD_DRIVERDETAILS 0x404 -#define IDD_DEVICEDETAILS 0x405 -#define IDD_DEVICEPOWER 0x406 - -#define IDC_DEVICON 0x57B -#define IDC_DEVNAME 0x57C -#define IDC_DEVTYPE 0x57D -#define IDC_DEVMANUFACTURER 0x57E -#define IDC_DEVLOCATION 0x57F -#define IDC_DEVSTATUSGROUP 0x580 -#define IDC_DEVSTATUS 0x581 -#define IDC_DEVUSAGE 0x582 -#define IDC_DEVICES 0x583 -#define IDC_LV_DEVICES 0x584 -#define IDC_PROPERTIESGROUP 0x585 -#define IDC_MANUFACTURER 0x587 -#define IDC_LOCATION 0x588 -#define IDC_STATUS 0x586 -#define IDC_TROUBLESHOOT 0x589 -#define IDC_PROPERTIES2 0x58A -#define IDC_DEVUSAGELABEL 0x58B -#define IDC_DEVPROBLEM 0x58C -#define IDC_DRVPROVIDER 0x58D -#define IDC_DRVDATE 0x58E -#define IDC_DRVVERSION 0x58F -#define IDC_DIGITALSIGNER 0x590 -#define IDC_DRIVERDETAILS 0x591 -#define IDC_DRIVERFILES 0x592 -#define IDC_FILEPROVIDER 0x593 -#define IDC_FILEVERSION 0x594 -#define IDC_FILECOPYRIGHT 0x595 -#define IDC_DETAILSPROPNAME 0x596 -#define IDC_DETAILSPROPVALUE 0x597 -#define IDC_UPDATEDRIVER 0x598 -#define IDC_DRIVERRESOURCES 0x599 Removed: trunk/reactos/dll/win32/devmgr/resources/computer.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/resources…
============================================================================== Binary file - no diff available. Removed: trunk/reactos/dll/win32/devmgr/resources/root.bmp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/resources…
============================================================================== Binary file - no diff available. Removed: trunk/reactos/dll/win32/devmgr/resources/toolbar.bmp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/resources…
============================================================================== Binary file - no diff available. Removed: trunk/reactos/dll/win32/devmgr/stdafx.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/stdafx.h?…
============================================================================== --- trunk/reactos/dll/win32/devmgr/stdafx.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/stdafx.h (removed) @@ -1,75 +0,0 @@ -#pragma once - -#ifndef __REACTOS__ - -#define WIN32_LEAN_AND_MEAN -#include <Windows.h> -#include <windowsx.h> -#include <setupapi.h> -#include <cfgmgr32.h> -#include <commctrl.h> -#include <Uxtheme.h> -#include <Cfgmgr32.h> -#include <devguid.h> -#include <process.h> -#include <RegStr.h> - -#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit -#include <tchar.h> -#include <atlbase.h> -#include <atlstr.h> -#include <atlcoll.h> - -#include <strsafe.h> - -#define ERR printf -#define FIXME printf -#define UNIMPLEMENTED -#define WINE_DEFAULT_DEBUG_CHANNEL(t) - -DWORD WINAPI pSetupGuidFromString(PCWSTR pString, LPGUID lpGUID); - -BOOL -WINAPI -InstallDevInst( -IN HWND hWndParent, -IN LPCWSTR InstanceId, -IN BOOL bUpdate, -OUT LPDWORD lpReboot); - -#else - -#include <string.h> -#include <wchar.h> - -#include <tchar.h> -#include <windef.h> -#include <winbase.h> -#include <winreg.h> -#include <wingdi.h> -#include <winnls.h> -#include <wincon.h> -#include <shlobj.h> -#include <shlwapi.h> -#include <strsafe.h> -#include <process.h> -#include <windowsx.h> -#include <strsafe.h> -#include <regstr.h> -#include <newdevp.h> - -#include <setupapi.h> -#include <commctrl.h> -#include <cfgmgr32.h> -#include <uxtheme.h> -#include <devguid.h> - -#include <atlbase.h> -#include <atlstr.h> -#include <atlcoll.h> - -#include <wine/debug.h> - -//WINE_DEFAULT_DEBUG_CHANNEL(devmgr); - -#endif
9 years, 3 months
1
0
0
0
[gedmurphy] 69345: Turn off building devmgr for now due to multiple gcc errors. I'll install gcc :o and fix things locally instead of relying on the buildbots
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 07:18:29 2015 New Revision: 69345 URL:
http://svn.reactos.org/svn/reactos?rev=69345&view=rev
Log: Turn off building devmgr for now due to multiple gcc errors. I'll install gcc :o and fix things locally instead of relying on the buildbots Modified: trunk/reactos/dll/win32/CMakeLists.txt Modified: trunk/reactos/dll/win32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?r…
============================================================================== --- trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] Thu Sep 24 07:18:29 2015 @@ -34,7 +34,7 @@ add_subdirectory(cryptui) add_subdirectory(dbghelp) add_subdirectory(dciman32) -add_subdirectory(devmgr) +#add_subdirectory(devmgr) add_subdirectory(dhcpcsvc) add_subdirectory(dnsapi) add_subdirectory(dwmapi)
9 years, 3 months
1
0
0
0
[gedmurphy] 69344: unixification
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 07:13:21 2015 New Revision: 69344 URL:
http://svn.reactos.org/svn/reactos?rev=69344&view=rev
Log: unixification Modified: trunk/reactos/dll/win32/devmgr/stdafx.h Modified: trunk/reactos/dll/win32/devmgr/stdafx.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/stdafx.h?…
============================================================================== --- trunk/reactos/dll/win32/devmgr/stdafx.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/stdafx.h [iso-8859-1] Thu Sep 24 07:13:21 2015 @@ -53,7 +53,7 @@ #include <shlwapi.h> #include <strsafe.h> #include <process.h> -#include <WindowsX.h> +#include <windowsx.h> #include <strsafe.h> #include <regstr.h> #include <newdevp.h> @@ -61,7 +61,7 @@ #include <setupapi.h> #include <commctrl.h> #include <cfgmgr32.h> -#include <Uxtheme.h> +#include <uxtheme.h> #include <devguid.h> #include <atlbase.h>
9 years, 3 months
1
0
0
0
[gedmurphy] 69343: Fix build (part 1 of ?)
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 07:09:29 2015 New Revision: 69343 URL:
http://svn.reactos.org/svn/reactos?rev=69343&view=rev
Log: Fix build (part 1 of ?) Modified: trunk/reactos/dll/win32/CMakeLists.txt Modified: trunk/reactos/dll/win32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?r…
============================================================================== --- trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] Thu Sep 24 07:09:29 2015 @@ -34,7 +34,7 @@ add_subdirectory(cryptui) add_subdirectory(dbghelp) add_subdirectory(dciman32) -add_subdirectory(devmgr_new) +add_subdirectory(devmgr) add_subdirectory(dhcpcsvc) add_subdirectory(dnsapi) add_subdirectory(dwmapi)
9 years, 3 months
1
0
0
0
[gedmurphy] 69342: [DEVMGR] Delete the old devmgr and replace it with devmgr_new
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Sep 24 07:06:29 2015 New Revision: 69342 URL:
http://svn.reactos.org/svn/reactos?rev=69342&view=rev
Log: [DEVMGR] Delete the old devmgr and replace it with devmgr_new Added: trunk/reactos/dll/win32/devmgr/ - copied from r69341, trunk/reactos/dll/win32/devmgr_new/ Removed: trunk/reactos/dll/win32/devmgr_new/ Modified: trunk/reactos/dll/win32/CMakeLists.txt Modified: trunk/reactos/dll/win32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?r…
============================================================================== --- trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/CMakeLists.txt [iso-8859-1] Thu Sep 24 07:06:29 2015 @@ -34,7 +34,7 @@ add_subdirectory(cryptui) add_subdirectory(dbghelp) add_subdirectory(dciman32) -add_subdirectory(devmgr) +add_subdirectory(devmgr_new) add_subdirectory(dhcpcsvc) add_subdirectory(dnsapi) add_subdirectory(dwmapi)
9 years, 3 months
1
0
0
0
[ion] 69341: [NTOSKRNL]: Now that OBJ_VALID_ATTRIBUTES doesn't include all attributes, fix the kernel parameter checks.
by ion@svn.reactos.org
Author: ion Date: Thu Sep 24 03:32:08 2015 New Revision: 69341 URL:
http://svn.reactos.org/svn/reactos?rev=69341&view=rev
Log: [NTOSKRNL]: Now that OBJ_VALID_ATTRIBUTES doesn't include all attributes, fix the kernel parameter checks. Modified: trunk/reactos/ntoskrnl/ob/oblife.c Modified: trunk/reactos/ntoskrnl/ob/oblife.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=6…
============================================================================== --- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Thu Sep 24 03:32:08 2015 @@ -474,7 +474,7 @@ /* Validate the Size and Attributes */ if ((ObjectAttributes->Length != sizeof(OBJECT_ATTRIBUTES)) || - (ObjectAttributes->Attributes & ~OBJ_VALID_ATTRIBUTES)) + (ObjectAttributes->Attributes & ~OBJ_VALID_KERNEL_ATTRIBUTES)) { /* Invalid combination, fail */ _SEH2_YIELD(return STATUS_INVALID_PARAMETER); @@ -482,7 +482,7 @@ /* Set some Create Info and do not allow user-mode kernel handles */ ObjectCreateInfo->RootDirectory = ObjectAttributes->RootDirectory; - ObjectCreateInfo->Attributes = ObjectAttributes->Attributes & OBJ_VALID_ATTRIBUTES; + ObjectCreateInfo->Attributes = ObjectAttributes->Attributes & OBJ_VALID_KERNEL_ATTRIBUTES; if (CreatorMode != KernelMode) ObjectCreateInfo->Attributes &= ~OBJ_KERNEL_HANDLE; LocalObjectName = ObjectAttributes->ObjectName; SecurityDescriptor = ObjectAttributes->SecurityDescriptor; @@ -1041,7 +1041,7 @@ (TypeName->Length % sizeof(WCHAR)) || !(ObjectTypeInitializer) || (ObjectTypeInitializer->Length != sizeof(*ObjectTypeInitializer)) || - (ObjectTypeInitializer->InvalidAttributes & ~OBJ_VALID_ATTRIBUTES) || + (ObjectTypeInitializer->InvalidAttributes & ~OBJ_VALID_KERNEL_ATTRIBUTES) || (ObjectTypeInitializer->MaintainHandleCount && (!(ObjectTypeInitializer->OpenProcedure) && !ObjectTypeInitializer->CloseProcedure)) ||
9 years, 3 months
1
0
0
0
← Newer
1
...
5
6
7
8
9
10
11
...
54
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
Results per page:
10
25
50
100
200