reactos.git
2 years ago[RAPPS] Final commit
Alexander Shaposhnikov [Mon, 28 Aug 2017 15:12:23 +0000 (15:12 +0000)]
[RAPPS] Final commit
- Removed atlex

svn path=/branches/GSoC_2017/rapps/; revision=75702

2 years ago[RAPPS] RC of final commit
Alexander Shaposhnikov [Sun, 27 Aug 2017 00:00:45 +0000 (00:00 +0000)]
[RAPPS] RC of final commit
- Hide checkboxes in "Installed"

svn path=/branches/GSoC_2017/rapps/; revision=75686

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 22:43:05 +0000 (22:43 +0000)]
[RAPPS]
- Fixed crash when trying to double-click in the "Installed" category
- Replaced APPLICATION_INFO with CAvailableApplicationInfo
- Added DownloadInfo struct as a replacement of APPLICATION_INFO in CDownloadManager
- Minor fixes

svn path=/branches/GSoC_2017/rapps/; revision=75684

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 22:35:29 +0000 (22:35 +0000)]
[RAPPS]
- Fixed typo in lang/ru-RU.rc

svn path=/branches/GSoC_2017/rapps/; revision=75683

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 19:41:09 +0000 (19:41 +0000)]
[RAPPS]
- Fixed switching between "Installed" and "Available"
- Added default icon to "Installed"

svn path=/branches/GSoC_2017/rapps/; revision=75681

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 17:52:55 +0000 (17:52 +0000)]
[RAPPS]
- Revert s_EnumInstalledAppProc()

svn path=/branches/GSoC_2017/rapps/; revision=75680

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 17:42:21 +0000 (17:42 +0000)]
[RAPPS]
- Amend last commit - added gui.h

svn path=/branches/GSoC_2017/rapps/; revision=75679

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 16:49:18 +0000 (16:49 +0000)]
[RAPPS]
- Removed hard-coded string leftover
- Re-enabled Installed category

svn path=/branches/GSoC_2017/rapps/; revision=75678

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 26 Aug 2017 08:39:42 +0000 (08:39 +0000)]
[RAPPS]
- Added language strings to all .rc
- Replaced hardcoded strings with resource counterparts
- Fixed settings loading always default
- Fixed force update not working
- Removed hInst from LoadStringW() where possible

svn path=/branches/GSoC_2017/rapps/; revision=75673

2 years ago[RAPPS]
Alexander Shaposhnikov [Thu, 24 Aug 2017 23:48:10 +0000 (23:48 +0000)]
[RAPPS]
- HACKFIX for ReactOS in gui.cpp - prevent counting below zero
  see explanation comment
- Fix for percentage being shown incorrectly

svn path=/branches/GSoC_2017/rapps/; revision=75664

2 years ago[RAPPS]
Alexander Shaposhnikov [Thu, 24 Aug 2017 22:04:44 +0000 (22:04 +0000)]
[RAPPS]
Changes in the update process:
- Made UpdateAppsDB() functions static and added ForceUpdateAppsDB()
- EnumAvailableApplications() doesn't update DB on it's own
- Force updating now done only if bUpdateAtStart set or if no settings loaded (first run)
- Minor cleanup

svn path=/branches/GSoC_2017/rapps/; revision=75662

2 years ago[RAPPS]
Alexander Shaposhnikov [Thu, 24 Aug 2017 21:56:27 +0000 (21:56 +0000)]
[RAPPS]
- Clean up the DB directory if extracting failed

svn path=/branches/GSoC_2017/rapps/; revision=75660

2 years ago[RAPPS]
Alexander Shaposhnikov [Thu, 24 Aug 2017 18:46:39 +0000 (18:46 +0000)]
[RAPPS]
- Changed the download process - now ThreadFunc handles the download loop
- Passing values to ThreadFunc as a parameter rather than static members
- Declared .cab download AppInfo static so it won't fade away during the download
- Fixed .cab extraction failing while no rapps folder present
- Visual improvements to the .cab dialog

svn path=/branches/GSoC_2017/rapps/; revision=75659

2 years ago[RAPPS]
Alexander Shaposhnikov [Fri, 18 Aug 2017 16:38:28 +0000 (16:38 +0000)]
[RAPPS]
- Correct the build process

svn path=/branches/GSoC_2017/rapps/; revision=75614

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 15 Aug 2017 22:35:45 +0000 (22:35 +0000)]
[RAPPS]
- Style changes, typo fixes etc.

svn path=/branches/GSoC_2017/rapps/; revision=75560

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 15 Aug 2017 21:39:21 +0000 (21:39 +0000)]
[RAPPS]
- Quit CmdParser() as soon as no valid key supplied

svn path=/branches/GSoC_2017/rapps/; revision=75559

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 15 Aug 2017 20:47:10 +0000 (20:47 +0000)]
[RAPPS]
- Close the INF file after loading the info

svn path=/branches/GSoC_2017/rapps/; revision=75558

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 15 Aug 2017 19:39:20 +0000 (19:39 +0000)]
[RAPPS]
- Added the icon provided by Pi_User5

svn path=/branches/GSoC_2017/rapps/; revision=75556

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 15 Aug 2017 19:36:23 +0000 (19:36 +0000)]
[RAPPS]
- Changed "/SETUP" key to "/INSTALL"
- Added support for multiple apps install by "/INSTALL"
  rapps /INSTALL 7-Zip AkelPad [...]
- Added INF based batch install with the "/SETUP" key
  Works for the full path for the .inf file
  TODO: detect if user entered the relative path for the inf and correct it
- Moved CmdParser to include/unattended.h and unattended.cpp

svn path=/branches/GSoC_2017/rapps/; revision=75555

2 years ago[RAPPS]
Alexander Shaposhnikov [Mon, 14 Aug 2017 17:04:43 +0000 (17:04 +0000)]
[RAPPS]
- Added headers to CMake file to have them in the VS project

svn path=/branches/GSoC_2017/rapps/; revision=75543

2 years ago[RAPPS]
Alexander Shaposhnikov [Mon, 14 Aug 2017 17:00:20 +0000 (17:00 +0000)]
[RAPPS]
- Added /SETUP key support
  TODO: use the short names from db files
- Some style changes
- Conditional creation of the dialogs

svn path=/branches/GSoC_2017/rapps/; revision=75542

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 8 Aug 2017 21:32:11 +0000 (21:32 +0000)]
[RAPPS]
- Refactoring
- A template for a future parameters parser

svn path=/branches/GSoC_2017/rapps/; revision=75512

2 years ago[RAPPS]
Alexander Shaposhnikov [Wed, 2 Aug 2017 12:50:53 +0000 (12:50 +0000)]
[RAPPS]
- Split the rapps.h into multiple headers for easier managing
- Moved headers to include/
- Corrected some typos and moved functions around

svn path=/branches/GSoC_2017/rapps/; revision=75469

2 years ago[RAPPS] Incorrect "C" symbol replaced in the rest of the files
Alexander Shaposhnikov [Fri, 28 Jul 2017 22:43:58 +0000 (22:43 +0000)]
[RAPPS] Incorrect "C" symbol replaced in the rest of the files

svn path=/branches/GSoC_2017/rapps/; revision=75435

2 years ago[RAPPS] Incorrect symbol replaced (why was it there though)
Alexander Shaposhnikov [Fri, 28 Jul 2017 22:42:00 +0000 (22:42 +0000)]
[RAPPS] Incorrect symbol replaced (why was it there though)

svn path=/branches/GSoC_2017/rapps/; revision=75434

2 years ago[RAPPS] Bulk install!
Alexander Shaposhnikov [Fri, 28 Jul 2017 22:37:24 +0000 (22:37 +0000)]
[RAPPS] Bulk install!
- Added ListView class
- Added ListView to a dialog
  Dialog shows the install progress of individual apps. It also waits for an installator to finish before issuing another download-install cycle.
- Fixed: Downloads pointing to "\"
- Fixed: Selection data is not retrieved correctly
- Yet again replacing some macros to wide functions
- Minor improvements

svn path=/branches/GSoC_2017/rapps/; revision=75433

2 years ago[RAPPS]
Alexander Shaposhnikov [Thu, 27 Jul 2017 09:02:42 +0000 (09:02 +0000)]
[RAPPS]
- Added DownloadManager class (static for now)
- Multiple selection launches multiple download dialogs
  (Checkbox selection has a priority over Selection when clicking Install)
  *A preperation for lauching a single dialog with a list of apps*
- Show currently installing app in the dialog window

svn path=/branches/GSoC_2017/rapps/; revision=75417

2 years ago[RAPPS]
Alexander Shaposhnikov [Wed, 26 Jul 2017 17:27:34 +0000 (17:27 +0000)]
[RAPPS]
- A quick fix for counter - used a list that is not updated prior to the message

svn path=/branches/GSoC_2017/rapps/; revision=75413

2 years ago[RAPPS] Making checkboxes useful WIP
Alexander Shaposhnikov [Wed, 26 Jul 2017 13:30:46 +0000 (13:30 +0000)]
[RAPPS] Making checkboxes useful WIP
- Added selection counter
  *NOTE: This requires changes in lang files*
- Added Sellect/Desellect button functionality
- Fixed some typos and macros-to-wide-functions

svn path=/branches/GSoC_2017/rapps/; revision=75411

2 years ago[RAPPS] Improvements & multiple selections
Alexander Shaposhnikov [Thu, 20 Jul 2017 22:57:48 +0000 (22:57 +0000)]
[RAPPS] Improvements & multiple selections
- Improved translations view - storing LCIDs now
- Added checkboxes on list view and Select All button (although they do nothing just yet)
- Made download dialogs nonmodal (yay, download and install multiple apps at once!)
- Minor code improvements

svn path=/branches/GSoC_2017/rapps/; revision=75384

2 years ago[RAPPS] Fixed multiple redraws of the apps list
Alexander Shaposhnikov [Wed, 19 Jul 2017 11:35:46 +0000 (11:35 +0000)]
[RAPPS] Fixed multiple redraws of the apps list

svn path=/branches/GSoC_2017/rapps/; revision=75376

2 years ago[RAPPS] Translations
Alexander Shaposhnikov [Wed, 19 Jul 2017 10:39:03 +0000 (10:39 +0000)]
[RAPPS] Translations
- Implemented HasNativeLanguage() and HasEnglishLanguage()
- Moved config parser to it's own class CConfigParser
- Added translation strings

svn path=/branches/GSoC_2017/rapps/; revision=75375

2 years ago[RAPPS] Refactoring & bugfixes
Alexander Shaposhnikov [Tue, 18 Jul 2017 22:52:51 +0000 (22:52 +0000)]
[RAPPS] Refactoring & bugfixes
- Made a bunch of classes for Available apps;
- Removed unnessesary GetBuffer calls;
- Set a bit higher minimum height for RichEdit;
- Added "Single" indicator for the Languages to show that the translation available is the only one;
- Small style changes.

svn path=/branches/GSoC_2017/rapps/; revision=75373

2 years ago[ATL] [3RDPARTY] Updated & moved atlex to sdk/lib/3rdparty
Alexander Shaposhnikov [Sun, 16 Jul 2017 15:38:38 +0000 (15:38 +0000)]
[ATL] [3RDPARTY] Updated & moved atlex to sdk/lib/3rdparty

svn path=/branches/GSoC_2017/rapps/; revision=75361

2 years ago[RAPPS] Showing info from Languages sectin
Alexander Shaposhnikov [Thu, 13 Jul 2017 22:01:02 +0000 (22:01 +0000)]
[RAPPS] Showing info from Languages sectin
- Created dummies & added new string resources
- lang/uk-UA.rc: translated all strings
- crichedit.h: safe text add

svn path=/branches/GSoC_2017/rapps/; revision=75334

2 years ago[RAPPS] Language loading
Alexander Shaposhnikov [Thu, 13 Jul 2017 15:29:53 +0000 (15:29 +0000)]
[RAPPS] Language loading
- RAPPS now can load language list from a file where locale identifiers are separated by '|'
  `Language=0C09|0813|0422 \\English|Dutch|Ukrainian`
The only limitation is that the parameter is only 260 chars.
So there arises another goal - multiline parameters
- This list is stored in `CSimpleArray<CStringW>` as strings
Maybe it would be wiser to store them as INT array.
- Some refactoring

svn path=/branches/GSoC_2017/rapps/; revision=75328

2 years ago[RAPPS] More code improvements
Alexander Shaposhnikov [Wed, 12 Jul 2017 22:59:26 +0000 (22:59 +0000)]
[RAPPS] More code improvements
- Replaced some functions with their Wide versions
- Generalized `GetInstalledVersion` function so it could accept NULL
- Minor cleanup

svn path=/branches/GSoC_2017/rapps/; revision=75324

2 years ago[SDK] Added atlex for future use
Alexander Shaposhnikov [Tue, 11 Jul 2017 22:08:48 +0000 (22:08 +0000)]
[SDK] Added atlex for future use
- atlex is ATL wrappers for WINAPI functions
- It is header-only library licensed under GPLv3
- For details see https://github.com/Amebis/atlex

svn path=/branches/GSoC_2017/rapps/; revision=75319

2 years ago[ATL]
Alexander Shaposhnikov [Tue, 11 Jul 2017 21:58:31 +0000 (21:58 +0000)]
[ATL]
- Added missing operator+=

svn path=/branches/GSoC_2017/rapps/; revision=75318

2 years ago[RAPPS] Fixes
Alexander Shaposhnikov [Mon, 10 Jul 2017 22:45:53 +0000 (22:45 +0000)]
[RAPPS] Fixes
- Minor style improvements
- Not resizing with GetBuffer() calls where not nessesary
- loaddlg.cpp: Wrong logic fixed
- rosui.h: Fixed length determination

svn path=/branches/GSoC_2017/rapps/; revision=75317

2 years ago[RAPPS] Some fixes
Alexander Shaposhnikov [Mon, 10 Jul 2017 22:26:01 +0000 (22:26 +0000)]
[RAPPS] Some fixes
- winmain.cpp, loaddlg.cpp, installed.cpp:
  Changed string-related opreations
- installed.cpp: Fixed buffer sizing when calling RegQueryValueExW()
- misc.cpp: Removed unused function
- rosui.h: Made use of GetWindowTextLength()

svn path=/branches/GSoC_2017/rapps/; revision=75316

2 years ago[RAPPS] Extensive conversion to ATL and general improvements
Alexander Shaposhnikov [Mon, 10 Jul 2017 21:02:24 +0000 (21:02 +0000)]
[RAPPS] Extensive conversion to ATL and general improvements
* Converted most of the WCHAR buffers to ATL::CStringW
* available.cpp: replaced C heap list with ATL::CAtlList
* Improved style consistency
* Added myself to the headers
* Other improvements

svn path=/branches/GSoC_2017/rapps/; revision=75315

2 years ago[RAPPS] StringCbCatW => StringCchCatW, sizeof() => _countof()
Alexander Shaposhnikov [Thu, 29 Jun 2017 19:31:19 +0000 (19:31 +0000)]
[RAPPS] StringCbCatW => StringCchCatW, sizeof() => _countof()
:(

svn path=/branches/GSoC_2017/rapps/; revision=75241

2 years ago[RAPPS] winmain.cpp: sizeof instead of _countof
Alexander Shaposhnikov [Thu, 29 Jun 2017 19:22:13 +0000 (19:22 +0000)]
[RAPPS] winmain.cpp: sizeof instead of _countof

svn path=/branches/GSoC_2017/rapps/; revision=75240

2 years ago[RAPPS] Fixed default "Download" folder default. Now defaults to "RAPPS Downloads...
Alexander Shaposhnikov [Thu, 29 Jun 2017 18:57:52 +0000 (18:57 +0000)]
[RAPPS] Fixed default "Download" folder default. Now defaults to "RAPPS Downloads" folder in user Documents or installation drive.

svn path=/branches/GSoC_2017/rapps/; revision=75239

2 years ago[RAPPS] Update check, license type
Alexander Shaposhnikov [Thu, 29 Jun 2017 14:17:16 +0000 (14:17 +0000)]
[RAPPS] Update check, license type
* Added LicenseType numeric field in the RAPPS DB files.
  Values mean: 1 - open source, 2 - freeware, 3 - trial/demo
  The existing License field will be used to contain the license name itself.
* Finished version parser and update check.
  Now RAPPS can suggest an update.
* Added new strings to lang/en-US.rc, lang/ru-RU.rc, lang/uk-UA.rc

svn path=/branches/GSoC_2017/rapps/; revision=75233

2 years ago[FORMATTING][RAPPS] available.cpp: Fix braces
Alexander Shaposhnikov [Tue, 27 Jun 2017 23:33:15 +0000 (23:33 +0000)]
[FORMATTING][RAPPS] available.cpp: Fix braces

svn path=/branches/GSoC_2017/rapps/; revision=75220

2 years ago[RAPPS]
Alexander Shaposhnikov [Tue, 27 Jun 2017 23:21:58 +0000 (23:21 +0000)]
[RAPPS]
* Separated available and installed version.
  If the app is installed it's DisplayVersion is shown.
* Reduced registry key access checks
* Version parser WIP

svn path=/branches/GSoC_2017/rapps/; revision=75219

2 years ago[RAPPS]
Alexander Shaposhnikov [Mon, 26 Jun 2017 22:07:43 +0000 (22:07 +0000)]
[RAPPS]
* Reduced "installed" check - checks only for the key inself and not the DisplayName.
  Blazing fast!
* Added installed version getter
* Added version parser function (without definition yet).
  Meant to support versions like 1.2.3.4.
* rapps.h: Added #pragma once

svn path=/branches/GSoC_2017/rapps/; revision=75211

2 years ago[RAPPS]
Alexander Shaposhnikov [Sun, 25 Jun 2017 01:09:00 +0000 (01:09 +0000)]
[RAPPS]
* available.cpp: Replaced macros with inline functions.
* gui.cpp: Fixed typo.

svn path=/branches/GSoC_2017/rapps/; revision=75190

2 years ago[RAPPS]
Alexander Shaposhnikov [Fri, 23 Jun 2017 07:04:43 +0000 (07:04 +0000)]
[RAPPS]
* Added individual icons loading for each app
  The icons are loaded by the Name field in the DB for the proof-of-concept.
  It falls back to default icon if none present.
  TODO: It would be best to make another entry there for icon name.

svn path=/branches/GSoC_2017/rapps/; revision=75168

2 years ago[RAPPS]
Alexander Shaposhnikov [Sun, 4 Jun 2017 21:36:14 +0000 (21:36 +0000)]
[RAPPS]
* Added constants in resource.h for stringtables
* Removed "Installed apps" from the TreeView
* Added intallation status to the RichEdit using existing check
* Changed IsInstalledApplication signature to accept access righta
  This is needed for the 64 bit systems.

svn path=/branches/GSoC_2017/rapps/; revision=74920

2 years ago[RAPPS]
Alexander Shaposhnikov [Sat, 3 Jun 2017 17:20:07 +0000 (17:20 +0000)]
[RAPPS]
* Added STRINGTABLE entries for installation status in en-US.rc and ru-RU.rc

svn path=/branches/GSoC_2017/rapps/; revision=74771

2 years agoCode styling:
Hermès Bélusca-Maïto [Wed, 24 May 2017 23:52:56 +0000 (23:52 +0000)]
Code styling:
[NDK]: Make a #define value look less "magical".
[ARC]: Write "BaseDllName" using the regular case used in other parts of ReactOS' code.

svn path=/trunk/; revision=74644

2 years ago[FSLIB]: Minor fixes:
Hermès Bélusca-Maïto [Wed, 24 May 2017 23:32:46 +0000 (23:32 +0000)]
[FSLIB]: Minor fixes:
- Stub and export VfatxChkdsk();
- Sync and fix the file code headers;
- In the libs, use NTAPI instead of WINAPI;
- Use 4-space indentation (instead of tabs).

svn path=/trunk/; revision=74643

2 years ago[MSPAINT]
Benedikt Freisen [Wed, 24 May 2017 19:31:43 +0000 (19:31 +0000)]
[MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height.  This improves theme support.

svn path=/trunk/; revision=74642

2 years ago[WIN32l:NTGDI] -Check the return value IntGetOutlineTextMetrics and stop using garbag...
Giannis Adamopoulos [Tue, 23 May 2017 09:40:07 +0000 (09:40 +0000)]
[WIN32l:NTGDI] -Check the return value IntGetOutlineTextMetrics and stop using garbage from the pool in case of error. CORE-13089, CORE-12752

svn path=/trunk/; revision=74633

2 years ago[WIN32K] -Simplify the parameters passed to GetFontPenalty and FindBestFontFromList...
Giannis Adamopoulos [Mon, 22 May 2017 18:17:49 +0000 (18:17 +0000)]
[WIN32K] -Simplify the parameters passed to GetFontPenalty and FindBestFontFromList. Make SubstituteFontRecurse update a LOGFONT and get rid of some needless allocations.

svn path=/trunk/; revision=74630

2 years ago[CMLIB]
Thomas Faber [Mon, 22 May 2017 13:48:11 +0000 (13:48 +0000)]
[CMLIB]
- Fix an assert that only works by chance

svn path=/trunk/; revision=74628

2 years ago[NTOS:MM]
Thomas Faber [Mon, 22 May 2017 13:37:44 +0000 (13:37 +0000)]
[NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and verifiable view of the database

svn path=/trunk/; revision=74627

2 years ago[NTOS:MM]
Thomas Faber [Mon, 22 May 2017 13:30:44 +0000 (13:30 +0000)]
[NTOS:MM]
- Make PFN tracing work... somewhat

svn path=/trunk/; revision=74626

2 years ago[CALC]
Thomas Faber [Mon, 22 May 2017 13:13:45 +0000 (13:13 +0000)]
[CALC]
- Remove Czech koruna from currency conversions... their exchange rate is not a constant
- While here, add new Euro currencies, and improve the accuracy of some conversion rates

svn path=/trunk/; revision=74625

2 years ago[HHPCOMP]
Thomas Faber [Mon, 22 May 2017 12:50:08 +0000 (12:50 +0000)]
[HHPCOMP]
- Avoid casting pointers to 'unsigned long'

svn path=/trunk/; revision=74624

2 years ago[HAL]
Thomas Faber [Mon, 22 May 2017 12:20:31 +0000 (12:20 +0000)]
[HAL]
- Correctly prepare the I/O port map for V86 mode by making HalpSavedIoMap actually point to it instead of to the parent structure. Fixes boot with video BIOS code that relies on I/O ports FF00 through FFFF.
CORE-13306 #resolve

svn path=/trunk/; revision=74623

2 years ago[WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFrom...
Giannis Adamopoulos [Sun, 21 May 2017 16:47:07 +0000 (16:47 +0000)]
[WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFromList and GetFontPenalty. CORE-13274

svn path=/trunk/; revision=74613

2 years ago[WIN32SS] Improve IntGetFontLocalizedName by less strict matching on language id...
Mark Jansen [Sun, 21 May 2017 12:24:57 +0000 (12:24 +0000)]
[WIN32SS] Improve IntGetFontLocalizedName by less strict matching on language id's. Patch by Katayama Hirofumi MZ. CORE-13239 #comment Thanks!

svn path=/trunk/; revision=74612

2 years ago[KERNEL32] Format the stack trace generated on an unhandled exception so that log2lin...
Mark Jansen [Sun, 21 May 2017 11:31:56 +0000 (11:31 +0000)]
[KERNEL32] Format the stack trace generated on an unhandled exception so that log2lines can parse it. CORE-13232 #resolve

svn path=/trunk/; revision=74611

2 years ago[SHIMS] Add IgnoreDebugOutput shim CORE-10369
Mark Jansen [Sat, 20 May 2017 20:22:25 +0000 (20:22 +0000)]
[SHIMS] Add IgnoreDebugOutput shim CORE-10369

svn path=/trunk/; revision=74610

2 years ago[BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.
Mark Jansen [Sat, 20 May 2017 20:06:46 +0000 (20:06 +0000)]
[BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.

svn path=/trunk/; revision=74609

2 years ago[SLAYER] Remove the shell extension. CORE-13111 #resolve
Mark Jansen [Sat, 20 May 2017 19:58:04 +0000 (19:58 +0000)]
[SLAYER] Remove the shell extension. CORE-13111 #resolve

svn path=/trunk/; revision=74608

2 years ago[WIN32SS] Reduce the amount of calls to IntGetFontLocalizedName, since this was ident...
Mark Jansen [Sat, 20 May 2017 18:59:00 +0000 (18:59 +0000)]
[WIN32SS] Reduce the amount of calls to IntGetFontLocalizedName, since this was identified as a source of recent slower drawing. CORE-13274
Thanks to Thomas, Giannis and Joachim.

svn path=/trunk/; revision=74607

2 years ago[INF]
Eric Kohl [Sat, 20 May 2017 13:46:48 +0000 (13:46 +0000)]
[INF]
Make code page and language group names translatable.
CORE-11885

svn path=/trunk/; revision=74606

2 years ago[WIN32K:NTGDI]
Thomas Faber [Sat, 20 May 2017 12:11:08 +0000 (12:11 +0000)]
[WIN32K:NTGDI]
- Simplify list walk in FindBestFontFromList

svn path=/trunk/; revision=74605

2 years ago[INF]
Eric Kohl [Sat, 20 May 2017 09:53:15 +0000 (09:53 +0000)]
[INF]
Make language (locale) names translatable.
CORE-11885

svn path=/trunk/; revision=74604

2 years ago[HAL]
Thomas Faber [Fri, 19 May 2017 21:37:50 +0000 (21:37 +0000)]
[HAL]
- Fix a broken DPRINT

svn path=/trunk/; revision=74603

2 years ago[GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ...
Mark Jansen [Fri, 19 May 2017 20:26:49 +0000 (20:26 +0000)]
[GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ. ROSTESTS-269 #resolve #comment Thanks!

svn path=/trunk/; revision=74602

2 years ago[APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368
Mark Jansen [Fri, 19 May 2017 20:13:08 +0000 (20:13 +0000)]
[APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368

svn path=/trunk/; revision=74601

2 years ago[NTDLL:LDR]
Thomas Faber [Fri, 19 May 2017 19:11:14 +0000 (19:11 +0000)]
[NTDLL:LDR]
- Fix logic error in LdrpInit that caused us to busy-wait instead of sleep. This makes LibreOffice start up in a few seconds instead of sitting around at 100% CPU for a minute or two.
CORE-13268 #resolve

svn path=/trunk/; revision=74600

2 years ago[RTL]
Thomas Faber [Fri, 19 May 2017 18:22:46 +0000 (18:22 +0000)]
[RTL]
- Do not change RTL_HANDLE_TABLE::CommittedHandles when committing a new page of handle entries. This value must always point to the beginning of the allocation, to correctly track the entire committed range. Fixes LibreOffice Writer (and ntdll_apitest) crash.
CORE-13271 #resolve

svn path=/trunk/; revision=74599

2 years ago[NTDLL_APITEST]
Thomas Faber [Fri, 19 May 2017 18:05:12 +0000 (18:05 +0000)]
[NTDLL_APITEST]
- Add a test for RTL handle tables
CORE-13271

svn path=/trunk/; revision=74598

2 years ago[SCSIPORT]: Fixes:
Hermès Bélusca-Maïto [Fri, 19 May 2017 16:14:10 +0000 (16:14 +0000)]
[SCSIPORT]: Fixes:
- In SpiScanAdapter(), after an SCSI INQUIRY command has succeeded and we are setting up a LUN extension structure,
  cache in its InquiryData member the inquiry data retrieved from the INQUIRY command (alternatively we might just cache
  a pointer to a valid "LunInfo" since the latter are also cached elsewhere).
- This allows SpiBuildDeviceMap(), which is called just after SpiScanAdapter(), to correctly report in the registry SCSI tree
  the correct Identifier and DeviceType values for the enumerated logical units.
- Use ExFreePoolWithTag in SpiScanAdapter().

svn path=/trunk/; revision=74597

2 years ago[SCSIPORT]: Code formatting only.
Hermès Bélusca-Maïto [Fri, 19 May 2017 16:08:40 +0000 (16:08 +0000)]
[SCSIPORT]: Code formatting only.

svn path=/trunk/; revision=74596

2 years ago[SCSIPORT]: Fixes + documentation:
Hermès Bélusca-Maïto [Fri, 19 May 2017 15:02:02 +0000 (15:02 +0000)]
[SCSIPORT]: Fixes + documentation:
- In SpiSendInquiry():
  * use ExFreePoolWithTag;
  * if IoBuildDeviceIoControlRequest() fails, exit correctly the loop so that the allocated buffers are cleaned up;
- In SpiBuildDeviceMap():
  * support new peripheral type names, as documented in the links in the comments;
  * fix the "CommunicationsPeripheral" name (communication'S') as documented, and as done in windows' scsiport driver.

svn path=/trunk/; revision=74595

2 years ago[SCSIPORT]: Code formatting in the functions I'm going to touch next (in addition...
Hermès Bélusca-Maïto [Fri, 19 May 2017 14:49:23 +0000 (14:49 +0000)]
[SCSIPORT]: Code formatting in the functions I'm going to touch next (in addition, add few "continue;" inside some loops so that I can reduce the indent level of code blocks).

svn path=/trunk/; revision=74594

2 years ago[UXTHEME] -Use and RTL handle table for HTHEME handles. In this way we can ensure...
Giannis Adamopoulos [Fri, 19 May 2017 11:02:44 +0000 (11:02 +0000)]
[UXTHEME] -Use and RTL handle table for HTHEME handles. In this way we can ensure that a value we take is valid even if it is non NULL. We can also detect leaks.

svn path=/trunk/; revision=74593

2 years ago[UXTHEME] Greatly reduce the number of times we open the theme data for the non clien...
Giannis Adamopoulos [Fri, 19 May 2017 10:01:50 +0000 (10:01 +0000)]
[UXTHEME] Greatly reduce the number of times we open the theme data for the non client area.
- Implement OTD_NONCLIENT for OpenThemeDataEx and OpenThemeDataFromFile.
- Open the WINDOW or the SCROLLBAR theme classes only when needed. Use OpenThemeDataEx instead of the internal MSSTYLES_OpenThemeClass. Cache the open theme in the WND_DATA for later use.

svn path=/trunk/; revision=74592

2 years agoForgot to add the cmake changes
Ged Murphy [Fri, 19 May 2017 09:46:41 +0000 (09:46 +0000)]
Forgot to add the cmake changes

svn path=/trunk/; revision=74591

2 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 09:42:00 +0000 (09:42 +0000)]
[FLTMGR]
- Add a rather messy header that I've been slowly building as I'm starting to understand the internals.
- Mostly taken from the MS PDBs and info gained from OSR and Alex Carp's blog. (https://fsfilters.blogspot.co.uk)

svn path=/trunk/; revision=74590

2 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 09:37:38 +0000 (09:37 +0000)]
[FLTMGR]
- Implement FltCreateCommunicationPort, FltCloseCommunicationPort, FltCloseClientPort, and stub FltSendMessage
- Add two new object types for the server port and client ports
- Implement object type callbacks for closing and deleting these new ports
- Create the comms object and create the symbolic link (FltMgrMsg) to allow usermode to open a handle to the comms layer (aka FilterConnectCommunicationPort)
- Although untested, the comms layer objects should be mostly setup, and we should be able to open a connection from usermode.

svn path=/trunk/; revision=74589

2 years ago[FLTMGR}
Ged Murphy [Fri, 19 May 2017 09:15:35 +0000 (09:15 +0000)]
[FLTMGR}
- Implement FltAcquirePushLockExclusive, FltAcquirePushLockShared and FltReleasePushLock. Lifted from ntos' internal pushlock routines.
- Implement FltpObjectPointerReference and partially implement FltpObjectPointerDerference

svn path=/trunk/; revision=74588

2 years ago[UXTHEME] -Rename WND_CONTEXT to WND_DATA to avoid confusion with the DRAW_CONTEXT...
Giannis Adamopoulos [Fri, 19 May 2017 08:45:49 +0000 (08:45 +0000)]
[UXTHEME] -Rename WND_CONTEXT to WND_DATA to avoid confusion with the DRAW_CONTEXT. The WND_DATA is information valid throughout the life of a window and DRAW_CONTEXT is information throughout a draw operation in the non client area of the window.

svn path=/trunk/; revision=74587

2 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 08:21:41 +0000 (08:21 +0000)]
[FLTMGR]
- Add the missing IOCTLs that were added to fltlib

svn path=/trunk/; revision=74586

2 years ago[NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.
Hermès Bélusca-Maïto [Thu, 18 May 2017 23:46:44 +0000 (23:46 +0000)]
[NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.

svn path=/trunk/; revision=74585

2 years ago[NTOS]: Close an opened handle after usage.
Hermès Bélusca-Maïto [Thu, 18 May 2017 23:32:00 +0000 (23:32 +0000)]
[NTOS]: Close an opened handle after usage.

svn path=/trunk/; revision=74584

2 years ago[FLTLIB]
Ged Murphy [Thu, 18 May 2017 22:06:49 +0000 (22:06 +0000)]
[FLTLIB]
- Implement FilterConnectCommunicationPort
- Add the remaining IOCTLs fltlib sends to the fltmgr

svn path=/trunk/; revision=74583

2 years ago[INTL]
Eric Kohl [Thu, 18 May 2017 21:56:24 +0000 (21:56 +0000)]
[INTL]
- Add custom draw function for the codepages listview.
- User gray text color for codepages that cannot be uninstalled.
CORE-13242

svn path=/trunk/; revision=74582

2 years ago[VIDEOPRT]
Thomas Faber [Thu, 18 May 2017 21:29:24 +0000 (21:29 +0000)]
[VIDEOPRT]
- Guard Ke386CallBios calls against concurrent execution.
CORE-13214

svn path=/trunk/; revision=74581

2 years ago[UXTHEME] -Remove a debug print that was never meant to be committed.
Giannis Adamopoulos [Thu, 18 May 2017 17:53:33 +0000 (17:53 +0000)]
[UXTHEME] -Remove a debug print that was never meant to be committed.

svn path=/trunk/; revision=74580

2 years ago[UXTHEME] -Apply some suggestions by Thomas.
Giannis Adamopoulos [Thu, 18 May 2017 17:15:22 +0000 (17:15 +0000)]
[UXTHEME] -Apply some suggestions by Thomas.

svn path=/trunk/; revision=74579

2 years ago[MSTSC] Addendum to r74577. CORE-13263
Peter Hater [Thu, 18 May 2017 08:57:26 +0000 (08:57 +0000)]
[MSTSC] Addendum to r74577. CORE-13263

svn path=/trunk/; revision=74578