reactos.git
5 years ago[NTOSKRNL] Reduce noise
Pierre Schweitzer [Sat, 27 Oct 2018 08:04:22 +0000 (10:04 +0200)]
[NTOSKRNL] Reduce noise

5 years ago[NTOSKRNL] Call internal helper to get VACB on mapping
Pierre Schweitzer [Sat, 27 Oct 2018 07:30:22 +0000 (09:30 +0200)]
[NTOSKRNL] Call internal helper to get VACB on mapping
We already properly round our offset

5 years ago[USETUP] Minor code formatting only.
Hermès Bélusca-Maïto [Wed, 9 Aug 2017 20:29:07 +0000 (20:29 +0000)]
[USETUP] Minor code formatting only.

svn path=/branches/setup_improvements/; revision=75517

5 years ago[USETUP] Sprinkle some INF_FreeData() calls to balance the INF_GetData() / INF_GetDat...
Hermès Bélusca-Maïto [Wed, 9 Aug 2017 20:24:24 +0000 (20:24 +0000)]
[USETUP] Sprinkle some INF_FreeData() calls to balance the INF_GetData() / INF_GetDataField() calls.

They currently do nothing, since the getter functions don't actually
capture (copy) the strings but merely return pointers to read-only strings.

But the calls are placed here for consistency, because if one day the
getters' implementation is changed so that strings are captured, it would
then be needed to free the allocated buffers.

In addition, fix a buggy call to INF_GetData() -- should be instead
INF_GetDataField() -- in AddSectionToCopyQueue().

svn path=/branches/setup_improvements/; revision=75516

5 years ago[USETUP] Comment out SetupQueueCopyWNew() declaration which is not used at all. Remov...
Hermès Bélusca-Maïto [Tue, 8 Aug 2017 14:07:17 +0000 (14:07 +0000)]
[USETUP] Comment out SetupQueueCopyWNew() declaration which is not used at all. Remove unnecessary casts in the INF_OpenBufferedFileA() call.

svn path=/branches/setup_improvements/; revision=75509

5 years ago[SETUPLIB] Introduce defines for size units.
Hermès Bélusca-Maïto [Tue, 8 Aug 2017 14:05:20 +0000 (14:05 +0000)]
[SETUPLIB] Introduce defines for size units.
[USETUP] Use them in the code.

svn path=/branches/setup_improvements/; revision=75508

5 years ago[SETUPLIB] IniCacheSave(): use the OBJ_CASE_INSENSITIVE flag.
Hermès Bélusca-Maïto [Tue, 8 Aug 2017 13:54:23 +0000 (13:54 +0000)]
[SETUPLIB] IniCacheSave(): use the OBJ_CASE_INSENSITIVE flag.

svn path=/branches/setup_improvements/; revision=75507

5 years ago[USETUP] Move SetDefaultPagefile() into settings.c and remove the now-empty registry...
Hermès Bélusca-Maïto [Fri, 30 Jun 2017 22:46:15 +0000 (22:46 +0000)]
[USETUP] Move SetDefaultPagefile() into settings.c and remove the now-empty registry.c/.h files.

svn path=/branches/setup_improvements/; revision=75250

5 years ago[USETUP] Move Setup[Delete|Copy|Move]File() from usetup code into the setuplib's...
Hermès Bélusca-Maïto [Fri, 30 Jun 2017 22:28:06 +0000 (22:28 +0000)]
[USETUP] Move Setup[Delete|Copy|Move]File() from usetup code into the setuplib's filesup.c .

Remove the commented-out IsValidPath() in that file, and remove
as well the temporary prototypes in regutil.c .

svn path=/branches/setup_improvements/; revision=75249

5 years ago[USETUP][SETUPLIB] Split the registry helper code.
Hermès Bélusca-Maïto [Fri, 30 Jun 2017 19:07:02 +0000 (19:07 +0000)]
[USETUP][SETUPLIB] Split the registry helper code.

Split the registry helper code into registry utility functions
(create/mount/unmount/verify hives) and registry creation code
(the rest: initializing the system hives) and move it in the
setup library.

svn path=/branches/setup_improvements/; revision=75247

[USETUP][SETUPLIB] Improve how the Setup* INF APIs are interfaced in the code.

Define prototypes compatible (including their calling convention)
with the ones defined by setupapi (.h/.dll) so that it can be possible
to either use an internal implementation of these functions (via the
INFLIB library) as currently being done, or using imported setupapi
functions, as would be done by the future 1st-stage GUI installer.

[SETUPLIB] Cleanup the registry.c file and use the infsupp.h header.

svn path=/branches/setup_improvements/; revision=75345
svn path=/branches/setup_improvements/; revision=75346

[USETUP][SETUPLIB] Move some INF-related code from usetup to the setuplib.

- Move the generic INF_GetDataField() and INF_GetData() helpers to
  setuplib, and rework them a bit so that they explicitly call setupapi
  functions (or implementations thereof when being used in usetup);

- Rework the headers in accordance;
- Fix compilation in lib/registry.c .

- Fix compilation when these headers are used withing usetup (who
  doesn't use setupapi.dll) and "reactos" (the 1st-stage GUI installer
  that uses setupapi.dll).

svn path=/branches/setup_improvements/; revision=75515
svn path=/branches/setup_improvements/; revision=75537
svn path=/branches/setup_improvements/; revision=75538

5 years ago[WIN32SS][NTUSER] Sunken menu item (#981)
Katayama Hirofumi MZ [Fri, 26 Oct 2018 19:20:09 +0000 (04:20 +0900)]
[WIN32SS][NTUSER] Sunken menu item (#981)

CORE-15226

5 years ago[CMAKE] Use configured include files to define the __RELFILE__ hack (#979)
Jérôme Gardou [Fri, 26 Oct 2018 11:47:22 +0000 (13:47 +0200)]
[CMAKE] Use configured include files to define the __RELFILE__ hack (#979)

[CMAKE] Use configured include files to define the __RELFILE__ hack

It's easier on the command line and the eyes looking at it

5 years ago[APITESTS][USER32] Add testcase for SwitchToThisWindow (#980)
Katayama Hirofumi MZ [Fri, 26 Oct 2018 10:56:25 +0000 (19:56 +0900)]
[APITESTS][USER32] Add testcase for SwitchToThisWindow (#980)

Add an API test program for user32!SwitchToThisWindow function.
JIRA issue: CORE-15165

5 years ago[CMAKE] Set CMAKE_OBJCOPY unconditionnally
Jérôme Gardou [Fri, 26 Oct 2018 08:16:26 +0000 (10:16 +0200)]
[CMAKE] Set CMAKE_OBJCOPY unconditionnally

5 years agoAdd Eclipse files to .gitignore
Jérôme Gardou [Tue, 23 Oct 2018 17:18:47 +0000 (19:18 +0200)]
Add Eclipse files to .gitignore

5 years ago[USETUP] NT RTL thread functions use 'NULL' (instead of 'INVALID_HANDLE_VALUE' which...
Hermès Bélusca-Maïto [Wed, 9 Aug 2017 20:43:02 +0000 (20:43 +0000)]
[USETUP] NT RTL thread functions use 'NULL' (instead of 'INVALID_HANDLE_VALUE' which is a Win32 thing) for thread handles that are "invalid" / uninitialized.

svn path=/branches/setup_improvements/; revision=75519

5 years ago[USETUP] Moving around some code.
Hermès Bélusca-Maïto [Fri, 30 Jun 2017 19:02:35 +0000 (19:02 +0000)]
[USETUP] Moving around some code.

- As GetSourcePaths() is used once in USETUP to initialize global
  UNICODE_STRING path strings once, move it out of drivesup.c and
  put it in usetup.c. Then remove drivesup.c : 1 file less!

- Move some INF file prototype declarations out of usetup.h and
  inside inffile.h where they should better be, as inffile.h and .c
  is the glue code for the INF library, defining similar functions
  as the ones in setupapi.dll.

- I rename our local SetupOpenInfFileW() into SetupOpenInfFileExW()
  because the latter one takes an extra user-provided LCID parameter,
  and this is this one that we use in USETUP.

- Make 'UNICODE_STRING SourcePath;' visible only inside usetup.c
  (not used elsewhere).

- Implement installation path validity check in case we are either
  in repair/update, or unattended setup mode. If the path is detected
  as invalid, then we fall back into manual path specification
  (for now...; note that we could instead fail the installation too).

svn path=/branches/setup_improvements/; revision=75246

5 years ago[USETUP] Implement most of the "upgrade" page, where existing NTOS installations...
Hermès Bélusca-Maïto [Thu, 31 May 2018 14:38:06 +0000 (16:38 +0200)]
[USETUP] Implement most of the "upgrade" page, where existing NTOS installations are listed.

- Modify a bit the page flow so that the upgrade page is inserted before
  the Device-settings page, and after the Install-Intro page.

- Insert some extra 'RepairUpdateFlag' checks in SelectPartitionPage() and
  InstallDirectoryPage() to take specific actions in case the flag is TRUE.

svn path=/branches/setup_improvements/; revision=74576
svn path=/branches/setup_improvements/; revision=75525

5 years ago[USETUP] Add an upgrade/repair installation page.
Hermès Bélusca-Maïto [Mon, 15 May 2017 01:48:19 +0000 (01:48 +0000)]
[USETUP] Add an upgrade/repair installation page.

Translators, please update the associated translations!

svn path=/branches/setup_improvements/; revision=74548

5 years ago[USER32] Fix Task Switcher (#976)
Katayama Hirofumi MZ [Thu, 25 Oct 2018 13:59:44 +0000 (22:59 +0900)]
[USER32] Fix Task Switcher (#976)

This fix is needed for the Delphi GUI programs.
- Don't enumerate the windows whose owner window exists.
- Use PostMessage SC_RESTORE instead of ShowWindowAsync SW_RESTORE.
CORE-15165

5 years ago[SDK] Update baseaddresses
Mark Jansen [Thu, 25 Oct 2018 04:59:15 +0000 (06:59 +0200)]
[SDK] Update baseaddresses

5 years ago[USETUP] Use UNICODE_NULL.
Hermès Bélusca-Maïto [Fri, 30 Jun 2017 22:17:18 +0000 (22:17 +0000)]
[USETUP] Use UNICODE_NULL.

svn path=/branches/setup_improvements/; revision=75248

5 years ago[USETUP] More code for updating/repairing the registry. Fix the name of the txtsetup...
Hermès Bélusca-Maïto [Thu, 22 Jun 2017 00:38:32 +0000 (00:38 +0000)]
[USETUP] More code for updating/repairing the registry. Fix the name of the txtsetup.sif section to look for when performing a registry upgrade.

[BOOTDATA] Add needed entries in txtsetup.sif for registry upgrade.

svn path=/branches/setup_improvements/; revision=75162
svn path=/branches/setup_improvements/; revision=75226

5 years ago[USETUP] Mark some variables as 'static'.
Hermès Bélusca-Maïto [Thu, 22 Jun 2017 00:36:29 +0000 (00:36 +0000)]
[USETUP] Mark some variables as 'static'.

svn path=/branches/setup_improvements/; revision=75161

5 years ago[USETUP] Implement work-in-progress code that allows verifying whether registry hives...
Hermès Bélusca-Maïto [Mon, 12 Jun 2017 00:09:16 +0000 (00:09 +0000)]
[USETUP] Implement work-in-progress code that allows verifying whether registry hives validity.

Implement work-in-progress code that, when upgrading an existing
ReactOS installation, verifies whether the (existing) system registry
hives are valid (by loading & unloading them, this allows using the
built-in repair functionality if needed), or not.

If a given hive cannot be repaired successfully, it is backed up
(with a '.brk' extension, "brk" as "broken"), then is marked up for
recreation.

When all hives have been checked, if there are any hive that needs
to be recreated, we recreate its hive file, mount it, but we do *NOT*
mount the other valid existing hives for update. We create instead
dummy registry hives so that we can actually use, as the update code,
the same one as the one used when fully creating the registry hives
for a clean installation (of course, this choice can be improved later on).

The update code (i.e. the same as the registry clean-install one) then
adds the registry keys & values, either putting them in the dummy
registry hives (the ones that we don't want to recreate) or in the
registry hive that is recreated.

At the end, the (re)created registry hives are flushed back to disk,
and a copy of them (under a '.sav' extension) are created, so that they
can be used for restoration purposes if 2nd-stage (and up) goes berserk.

Extra fixes:

- Use the correct structure member field when initializing the
  'InstallDir' variable, when performing an upgrade.

- CreateNestedKey() should be better analysed to see whether it correctly
  creates the full registry path compatible with volatile/non-volatile keys
  (under inspection).

svn path=/branches/setup_improvements/; revision=75010

5 years ago[USETUP] Introduce SetupDeleteFile() and SetupMoveFile() (in addition to the already...
Hermès Bélusca-Maïto [Sun, 11 Jun 2017 23:58:43 +0000 (23:58 +0000)]
[USETUP] Introduce SetupDeleteFile() and SetupMoveFile() (in addition to the already-existing SetupCopyFile()) in order to implement moving / renaming existing files.

Will be used soon to make backups of system files, like the registry hive files just freshly created.
- Make the SetupCopyFile() function closer to its win32 counterpart.
- Adjust the code that calls SetupCopyFile().

svn path=/branches/setup_improvements/; revision=75008
svn path=/branches/setup_improvements/; revision=75009

5 years ago[USETUP] Explicitly use the REG_OPTION_(NON_)VOLATILE flags in NtCreateKey calls.
Hermès Bélusca-Maïto [Sun, 11 Jun 2017 23:47:11 +0000 (23:47 +0000)]
[USETUP] Explicitly use the REG_OPTION_(NON_)VOLATILE flags in NtCreateKey calls.

svn path=/branches/setup_improvements/; revision=75007

5 years ago[USETUP] Implement offline ReactOS registry initialization in USetup (equivalent...
Hermès Bélusca-Maïto [Sat, 3 Jun 2017 16:22:42 +0000 (16:22 +0000)]
[USETUP] Implement offline ReactOS registry initialization in USetup (equivalent of mkhive, but using OS functionality).

The rationale is as follows.

We now have the 1st-stage ReactOS setup running with its own registry SYSTEM hive,
similarly to regular ROS running instances (livecd, regular installation...).

The ReactOS-specific SetInstallPathValue() hack, introduced in a76689e9 (r3794)
and 5f973ce0 (r3795), is removed. This hack told the kernel that, during the setup,
it had to "switch" the used registry hives and instead use the ones of the ROS
installation being prepared.

This was really hackish because this means, mixing between registry settings used only
for the setup running instance, that could use different registry settings
than the ones that should be set for the ROS installation being actually performed.

Also, note that in the case of a 1st-stage GUI setup, consisting in running the
LiveCD + the GUI setup program, this situation would be untenable. Note also that
for people willing to use the Setup*** functions exported by setupapi.dll to parse
the registry INF files to initialize the registry of the ROS installation being
prepared, this would be impossible either.

Hence the need to have offline registry modification functionality.

svn path=/branches/setup_improvements/; revision=74766

5 years ago[USETUP] Code formatting, making also the code closer to mkhive's one. Also, definite...
Hermès Bélusca-Maïto [Sat, 3 Jun 2017 15:20:09 +0000 (15:20 +0000)]
[USETUP] Code formatting, making also the code closer to mkhive's one. Also, definitely remove the SetInstallPathValue() hack.

svn path=/branches/setup_improvements/; revision=74763

5 years ago[CMAKE] Apply patch INF file for the SETUP SYSTEM registry hive that removes the... 561/head
Hermès Bélusca-Maïto [Wed, 24 Oct 2018 22:18:29 +0000 (00:18 +0200)]
[CMAKE] Apply patch INF file for the SETUP SYSTEM registry hive that removes the entries in the Critical Device Database that cause problems with PnP setup during 1st-stage setup.

5 years ago[FREELDR] Adjust WinLdrInitSystemHive() and its callers to load at startup either...
Hermès Bélusca-Maïto [Sat, 3 Jun 2017 14:55:18 +0000 (14:55 +0000)]
[FREELDR] Adjust WinLdrInitSystemHive() and its callers to load at startup either the regular SYSTEM hive, or the SETUPREG.HIV setup system hive.

We now run the 1st-stage setup with a regular system hive, similarly to
what's done for the LiveCD, or for a regular ROS installation.
The ExpInTextModeSetup hacks I previously removed are now completely unneeded.

svn path=/branches/setup_improvements/; revision=74762

5 years ago[FREELDR] Small code re-organization for the "ntldr" sub-module.
Hermès Bélusca-Maïto [Fri, 2 Jun 2017 00:52:36 +0000 (00:52 +0000)]
[FREELDR] Small code re-organization for the "ntldr" sub-module.

Split the "main" winldr.h header into the one containing global code
that actually doesn't really depend on the "windows" NT loader part,
and one that actually concerns code just for the NT Loader.
The latter goes into "ntldr".

svn path=/branches/setup_improvements/; revision=74743

5 years ago[NTOS] Drastically reduce the hackish function CmpGetRegistryPath() for the text...
Hermès Bélusca-Maïto [Thu, 22 Jun 2017 00:46:30 +0000 (00:46 +0000)]
[NTOS] Drastically reduce the hackish function CmpGetRegistryPath() for the text-mode setup case (it should ultimately completely disappear).

svn path=/branches/setup_improvements/; revision=75163

5 years ago[NTOS] Add some DPRINTs in IopLoadServiceModule() and IopOpenRegistryKeyEx() to inves...
Hermès Bélusca-Maïto [Fri, 2 Jun 2017 15:49:12 +0000 (15:49 +0000)]
[NTOS] Add some DPRINTs in IopLoadServiceModule() and IopOpenRegistryKeyEx() to investigate why these 1st-stage text-mode hacks may be, or are (respectively) still needed.

svn path=/branches/setup_improvements/; revision=74748

5 years ago[NTOS] Configuration Manager fixes.
Hermès Bélusca-Maïto [Fri, 2 Jun 2017 15:47:52 +0000 (15:47 +0000)]
[NTOS] Configuration Manager fixes.

- Rework CmpSetSystemValues() and remove its 1st-stage text-mode setup hack, since a real registry hive will be used for 1st-stage either.
- Lock, then unlock the registry in NtInitializeRegistry when initializing the hives & flusher.
- Call CmpInitializeHiveList() (i.e., initialize the other hives like \Software, \User, \.Default) only when we are not in setup-mode.

svn path=/branches/setup_improvements/; revision=74747

5 years ago[NTOS] Remove some hacks that are not needed anymore, since a real registry hive...
Hermès Bélusca-Maïto [Fri, 2 Jun 2017 15:37:56 +0000 (15:37 +0000)]
[NTOS] Remove some hacks that are not needed anymore, since a real registry hive will be used in 1st-stage as well.

This reverts a7c26408 (r53255) and ff75ae1b (r53694), and a hack from 6075ae9a (r46690).

svn path=/branches/setup_improvements/; revision=74745
svn path=/branches/setup_improvements/; revision=74746

5 years ago[SHIMGVW] Fix image flickering when rendering animations
Stanislav Motylkov [Wed, 24 Oct 2018 16:16:22 +0000 (19:16 +0300)]
[SHIMGVW] Fix image flickering when rendering animations

5 years ago[TASKMGR][TRANSLATION] Estonian localization
Joann Mõndresku [Wed, 24 Oct 2018 13:42:56 +0000 (16:42 +0300)]
[TASKMGR][TRANSLATION] Estonian localization

5 years ago[LPK][GDI32] Enable mirroring via version resource (#965)
Baruch Rutman [Wed, 24 Oct 2018 19:34:38 +0000 (22:34 +0300)]
[LPK][GDI32] Enable mirroring via version resource (#965)

Add a mechanism that detects via the version resource whether it's needed to mirror
the application layout or not. This is a "follow up" to commit 5b14b6f.

This code is taken from the GetProcessDefaultLayout() function from Wine
(called there "WIN_CreateWindowEx").

In Windows the version-resource mirroring happens when the GDI is loading the LPK.

- Implement mirroring via version resource. GDI linking on startup is required.

- GDI32: Add LPK loading on GDI startup.

To enable mirroring via version resource the lpk.dll must be loaded before any windows are created.
This is done through GdiInitializeLanguagePack() function which is called in GdiProcessSetup().

- LPK: Use Wine debug messaging.

5 years ago[TRANSLATION][MC] Add Romanian messages (#850)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 13:40:21 +0000 (22:40 +0900)]
[TRANSLATION][MC] Add Romanian messages (#850)

CORE-11898

5 years ago[BOOTDATA][HIVECLS] Use shell image viewer for GIF files (#971)
Stanislav Motylkov [Wed, 24 Oct 2018 12:09:23 +0000 (15:09 +0300)]
[BOOTDATA][HIVECLS] Use shell image viewer for GIF files (#971)

Change GIF file type association to the shell image viewer. CORE-12680

5 years ago[FONT][WIN32SS] Fix the storage processing of IntGetOutlineTextMetrics (#942)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 11:23:24 +0000 (20:23 +0900)]
[FONT][WIN32SS] Fix the storage processing of IntGetOutlineTextMetrics (#942)

* Add IntStoreFontNames and IntStoreName functions and use them.
* SCALE_X and SCALE_Y macros
* Fix too long line
* Reduce type casts

5 years ago[WIN32SS][USER32] Fix SwitchToThisWindow (#929)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 11:02:27 +0000 (20:02 +0900)]
[WIN32SS][USER32] Fix SwitchToThisWindow (#929)

I'm not sure but it seems like no one can investigate it. I commit it.

5 years ago[FONT][WIN32SS] Improve readability of IntGdiGetFontResourceInfo (#945)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 10:58:03 +0000 (19:58 +0900)]
[FONT][WIN32SS] Improve readability of IntGdiGetFontResourceInfo (#945)

Make it human friendly code.

5 years ago[WIN32SS][MENU] Fix menu text Y positioning (#887)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 10:54:41 +0000 (19:54 +0900)]
[WIN32SS][MENU] Fix menu text Y positioning (#887)

Fix the vertical position of menu bar text. CORE-15094

5 years ago[SHIMGVW] Play gif animation (#934)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 10:51:30 +0000 (19:51 +0900)]
[SHIMGVW] Play gif animation (#934)

Make "Picture and Fax Viewer" able to play GIF animation.
CORE-12680

5 years ago[REGEDIT] Improve the layout of controls (#967)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 09:19:48 +0000 (18:19 +0900)]
[REGEDIT] Improve the layout of controls (#967)

The horizontal scroll bar of the listview was wrongly hidden.
CORE-15187

5 years ago[REGEDIT] Don't paint background in WM_PAINT (#970)
Katayama Hirofumi MZ [Wed, 24 Oct 2018 09:17:28 +0000 (18:17 +0900)]
[REGEDIT] Don't paint background in WM_PAINT (#970)

Use the background brush or WM_ERASEBKGND message instead. There was graphical glidge. CORE-15187

5 years ago[USETUP] Reshuffle a bit the main-function of USetup.
Hermès Bélusca-Maïto [Fri, 9 Jun 2017 16:37:53 +0000 (16:37 +0000)]
[USETUP] Reshuffle a bit the main-function of USetup.

svn path=/branches/setup_improvements/; revision=74975

5 years ago[USETUP] The 'DestinationDriveLetter' variable (that is just used for SetDefaultPagef...
Hermès Bélusca-Maïto [Thu, 8 Jun 2017 02:01:56 +0000 (02:01 +0000)]
[USETUP] The 'DestinationDriveLetter' variable (that is just used for SetDefaultPagefile()...) just needs to be initialized at one place only.

svn path=/branches/setup_improvements/; revision=74951

5 years ago[USETUP] Whitespace fixes only.
Hermès Bélusca-Maïto [Tue, 23 May 2017 21:01:10 +0000 (21:01 +0000)]
[USETUP] Whitespace fixes only.

svn path=/branches/setup_improvements/; revision=74636
svn path=/branches/setup_improvements/; revision=74639

5 years ago[USETUP] Small formatting changes + two functions turned into FORCEINLINE.
Hermès Bélusca-Maïto [Sun, 21 May 2017 23:34:03 +0000 (23:34 +0000)]
[USETUP] Small formatting changes + two functions turned into FORCEINLINE.

Based on:
svn path=/branches/setup_improvements/; revision=74616

5 years ago[USETUP] Rename some of the uninformative "STRING_HDDINFOUNKx" string labels into...
Hermès Bélusca-Maïto [Sun, 21 May 2017 23:17:24 +0000 (23:17 +0000)]
[USETUP] Rename some of the uninformative "STRING_HDDINFOUNKx" string labels into more informative ones.

- Also, reserve a new field to display whether the disk is MBR or GPT-initialized.
- Adjust the code that used the "STRING_HDDINFOUNKx" string labels.
  The extra slot added to some of the strings is to indicate whether the disk is MBR or GPT.

As attentive readers will notice, the code that "determines" whether the disk is either MBR or GPT
is of course just temporary: it's just a placeholder code that should currently just show "MBR".

Having the NoMbr flag mostly signifies that the disk is uninitialized. A GPT disk also has a MBR
but it's for "backcompatibility" / "protective" reasons (so that MBR-only tools would see the disk
as just a big 1-partitioned only disk with which they could barely do anything). A real involved test
for the nature of the disk should involve calling the correct IOCTLs in the disk detection code in partlist.c .
This is for the future (and when ReactOS will better support GPT disks).

svn path=/branches/setup_improvements/; revision=74614
svn path=/branches/setup_improvements/; revision=74615

5 years ago[USETUP] Massage the USETUP interface code.
Hermès Bélusca-Maïto [Mon, 15 May 2017 01:48:19 +0000 (01:48 +0000)]
[USETUP] Massage the USETUP interface code.

- The "intro" page is renamed into the "Welcome" page, because its corresponding resource indeed is the welcome screen;
- Because the "setup start" page can only be displayed once, move it out of the while-loop, and use its result as the initial value of the 'Page' variable.
- Remove unneeded _PAGE_NUMBER_DEFINED guards;
- Add a DPRINT in the RepairUpdateFlag case of RegistryPage() (because we don't implement yet a correct upgrading or repairing of the registry).
- In InstallIntroPage(), display the page itself only if needed (i.e. after all the validation checks & repair/update or unattended checks are done). Similar modifications are done also in DeviceSettingsPage(), SelectPartitionPage()
- Turn both CheckUnattendedSetup() and UpdateKBLayout() into static functions.
- Fix the code of ScsiControllerPage() so that it can be compiled if needed, and add a dummy OemDriverPage().

svn path=/branches/setup_improvements/; revision=74575

5 years ago[INETCPL] Add icon codes for trusted and restricted zones
Stanislav Motylkov [Tue, 23 Oct 2018 22:13:15 +0000 (01:13 +0300)]
[INETCPL] Add icon codes for trusted and restricted zones

5 years ago[SETUPAPI] SetupDiGetClassDevPropertySheetsW: Implement adding property pages from...
Eric Kohl [Tue, 23 Oct 2018 21:10:03 +0000 (23:10 +0200)]
[SETUPAPI] SetupDiGetClassDevPropertySheetsW: Implement adding property pages from an installer.

SetupDiGetClassInstallParamsW must be implemented before this will work.

5 years ago[NTOSKRNL] Translate pinning flags to mapping flags when first mapping a file
Pierre Schweitzer [Tue, 23 Oct 2018 19:48:01 +0000 (21:48 +0200)]
[NTOSKRNL] Translate pinning flags to mapping flags when first mapping a file

5 years ago[USETUP] Fix a broken character in Italian resource (#968)
Bișoc George [Tue, 23 Oct 2018 15:41:38 +0000 (17:41 +0200)]
[USETUP] Fix a broken character in Italian resource (#968)

Also add two spaces at the beginning of the "deleting cache" string.

5 years ago[NET] Fix an escape sequence in Polish translation (#966)
Katayama Hirofumi MZ [Tue, 23 Oct 2018 11:10:38 +0000 (20:10 +0900)]
[NET] Fix an escape sequence in Polish translation (#966)

5 years ago[rosctrls.h] CListView: Add Arrange method
Giannis Adamopoulos [Mon, 22 Oct 2018 20:51:37 +0000 (23:51 +0300)]
[rosctrls.h] CListView: Add Arrange method

[SHELL32] CDefView: Start implementing Auto arrange.
So far its effect is only shown when the browser window resizes.

5 years ago[SHELL32] CDefView: Disable auto arrange in list and details view mode.
Giannis Adamopoulos [Mon, 22 Oct 2018 16:18:28 +0000 (19:18 +0300)]
[SHELL32] CDefView: Disable auto arrange in list and details view mode.
This supersedes PR #927 and does it correctly.

5 years ago[BROWSEUI] CInternetToolbar: Implement hiding and showing the browser toolbars.
Giannis Adamopoulos [Mon, 22 Oct 2018 15:41:47 +0000 (18:41 +0300)]
[BROWSEUI] CInternetToolbar: Implement hiding and showing the browser toolbars.

5 years ago[NTOS:CM] CmpCmdHiveOpen(): Resolve FileAttributes->RootDirectory when a hive file...
Hermès Bélusca-Maïto [Sun, 21 Oct 2018 22:39:50 +0000 (00:39 +0200)]
[NTOS:CM] CmpCmdHiveOpen(): Resolve FileAttributes->RootDirectory when a hive file name is provided relative to it.

Fixes registry hive loading. CORE-13448

5 years ago[NTDLL_APITEST] Re-enable the part of the NtLoad/UnloadKey test related to force... 964/head
Hermès Bélusca-Maïto [Sun, 21 Oct 2018 21:09:32 +0000 (23:09 +0200)]
[NTDLL_APITEST] Re-enable the part of the NtLoad/UnloadKey test related to force-unload a hive with opened sub-key handles.

Effectively reverts b17ce9c8 (r75138).

CORE-13448

5 years ago[NTOS:CM] Implement more support for force-unloading registry hives.
Hermès Bélusca-Maïto [Sun, 21 Oct 2018 21:08:51 +0000 (23:08 +0200)]
[NTOS:CM] Implement more support for force-unloading registry hives.
CORE-13448 CORE-10705

5 years ago[NTOS:CM] Add extra validation for the information class parameter in NtEnumerateValu...
Hermès Bélusca-Maïto [Sun, 21 Oct 2018 16:12:08 +0000 (18:12 +0200)]
[NTOS:CM] Add extra validation for the information class parameter in NtEnumerateValueKey().

5 years ago[NTOS:CM] Improve the capture of user-mode parameters. 960/head
Hermès Bélusca-Maïto [Sun, 21 Oct 2018 13:42:13 +0000 (15:42 +0200)]
[NTOS:CM] Improve the capture of user-mode parameters.

- Improve the capture of OBJECT_ATTRIBUTES parameters that are passed
  (by pointer) to the Cm* helper functions, and the capture of
  UNICODE_STRINGs.

- Correctly differentiate user-mode vs. kernel-mode root directory handles
  (in OBJECT_ATTRIBUTES): note that most of the Cm* APIs expect their
  parameters to be kernel-mode (pointers, handles...).

CORE-13448

5 years ago[SYSDM] Fix controls order and label height in IDD_SYSSETTINGS dialog
Stanislav Motylkov [Sat, 20 Oct 2018 23:15:01 +0000 (02:15 +0300)]
[SYSDM] Fix controls order and label height in IDD_SYSSETTINGS dialog

This fixes checkbox rendering issue in russian translation.
Dialogs in other translations are ok.

CORE-13792

5 years ago[APPWIZ] Do not display the message box if the user aborts the download 946/head
Bișoc George [Sun, 14 Oct 2018 14:07:51 +0000 (16:07 +0200)]
[APPWIZ] Do not display the message box if the user aborts the download

CORE-15183

5 years ago[REGEDIT] Trivial resizing code fix 950/head
Katayama Hirofumi MZ [Mon, 15 Oct 2018 14:28:19 +0000 (23:28 +0900)]
[REGEDIT] Trivial resizing code fix

5 years ago[REGEDIT] Code formatting 949/head
Katayama Hirofumi MZ [Mon, 15 Oct 2018 14:13:06 +0000 (23:13 +0900)]
[REGEDIT] Code formatting

5 years ago[CHKDSK] Fix MSVC build (thanks for spotting the mistake!)
Pierre Schweitzer [Sun, 21 Oct 2018 09:22:45 +0000 (11:22 +0200)]
[CHKDSK] Fix MSVC build (thanks for spotting the mistake!)

Addendum to ec9fc7f

5 years ago[VFATLIB] Don't attempt to fix volume if not allowed
Pierre Schweitzer [Sun, 21 Oct 2018 09:12:10 +0000 (11:12 +0200)]
[VFATLIB] Don't attempt to fix volume if not allowed

5 years ago[CHKDSK] Add French translation
Pierre Schweitzer [Sun, 21 Oct 2018 09:06:06 +0000 (11:06 +0200)]
[CHKDSK] Add French translation

5 years ago[RAPPS][TRANSLATION] Estonian localization (#959)
Joann Mõndresku [Sat, 20 Oct 2018 23:58:02 +0000 (02:58 +0300)]
[RAPPS][TRANSLATION] Estonian localization (#959)

5 years ago[CHKDSK] Add russian translation
Stanislav Motylkov [Sat, 20 Oct 2018 19:49:37 +0000 (22:49 +0300)]
[CHKDSK] Add russian translation

5 years ago[TRANSLATION] Polish translation update
Adam Słaboń [Sat, 13 Oct 2018 10:27:52 +0000 (12:27 +0200)]
[TRANSLATION] Polish translation update

Polish translation of net, telnet, diskpart, devcpux, fontext, iernonce, lsasrv, themes, arping, frag, screensavers, ctm, fontsub, WinetestsGUI and localmon.
Update for dxdiag, msgina, msports, netcfgx, shell32 and syssetup.

5 years ago[CHKDSK] Implement localization support (#891)
Bișoc George [Sat, 20 Oct 2018 19:21:51 +0000 (21:21 +0200)]
[CHKDSK] Implement localization support (#891)

- Make the strings translatable.
- Include the English translation within the main resource file.
- Use ConResPrintf() and ConResPuts() for resource strings.

5 years ago[APPWIZ] Translation update for Romanian & Italian
Bișoc George [Thu, 11 Oct 2018 14:50:31 +0000 (16:50 +0200)]
[APPWIZ] Translation update for Romanian & Italian

5 years ago[MEDIA] Add a notice to the chinese translation document.
Hermès Bélusca-Maïto [Sat, 20 Oct 2018 17:57:18 +0000 (19:57 +0200)]
[MEDIA] Add a notice to the chinese translation document.

5 years agoAdd Notice for Chinese translation.
Luo Yufan [Thu, 11 Oct 2018 10:07:45 +0000 (18:07 +0800)]
Add Notice for Chinese translation.

5 years ago[NTOS:CM] Minor fixes.
Hermès Bélusca-Maïto [Sat, 20 Oct 2018 17:30:59 +0000 (19:30 +0200)]
[NTOS:CM] Minor fixes.

- Validate the information class parameter in NtQueryValueKey().
- Call the post-callback in NtSetValueKey() only if the callback
  has been registered and the CmSetValueKey() call is executed.

5 years ago[NTOS:CM] Reuse the saved previous-mode from the ExGetPreviousMode() calls.
Hermès Bélusca-Maïto [Sat, 20 Oct 2018 17:17:55 +0000 (19:17 +0200)]
[NTOS:CM] Reuse the saved previous-mode from the ExGetPreviousMode() calls.

5 years ago[MKHIVE] Minor code rearrangement.
Hermès Bélusca-Maïto [Sat, 20 Oct 2018 14:49:30 +0000 (16:49 +0200)]
[MKHIVE] Minor code rearrangement.

5 years ago[NOTEPAD] ReactOS Notepad Hindi Translation (#938)
Arnav Bhatt [Sat, 20 Oct 2018 17:41:32 +0000 (23:11 +0530)]
[NOTEPAD] ReactOS Notepad Hindi Translation (#938)

5 years ago[NTVDM] Allow opening files with write access on CDROM
Pierre Schweitzer [Sat, 20 Oct 2018 10:53:52 +0000 (12:53 +0200)]
[NTVDM] Allow opening files with write access on CDROM

Some applications, run on a CDROM, may attempt to open
a file with write access. CDFS driver will deny such
request in ReactOS (but also in Windows NT). Then, to
restore that behavior from old Windows (9X), our ntvdm,
as Microsoft ntvdm will attempt to reopen the file only
with read access, if opening failed because of denied access
and if the file is on a CDROM.

CORE-15211

5 years ago[NTVDM] Implement INT21, AX=4408, Determine if a block device is removable. 940/head
Mark Jansen [Mon, 8 Oct 2018 21:12:19 +0000 (23:12 +0200)]
[NTVDM] Implement INT21, AX=4408, Determine if a block device is removable.

5 years ago[GFLAGS] Implement imagefile options 939/head
Mark Jansen [Sat, 13 Oct 2018 15:11:51 +0000 (17:11 +0200)]
[GFLAGS] Implement imagefile options

5 years ago[GFLAGS] Move common code to a shared location.
Mark Jansen [Sat, 13 Oct 2018 15:10:09 +0000 (17:10 +0200)]
[GFLAGS] Move common code to a shared location.

5 years ago[GFLAGS] Move code around to handle multiple options
Mark Jansen [Fri, 12 Oct 2018 23:14:15 +0000 (01:14 +0200)]
[GFLAGS] Move code around to handle multiple options

5 years ago[USETUP][EXPLORER] ReactOS explorer translation and hindi font substitution. (#954)
Arnav Bhatt [Fri, 19 Oct 2018 15:03:17 +0000 (20:33 +0530)]
[USETUP][EXPLORER] ReactOS explorer translation and hindi font substitution. (#954)

5 years ago[MKHIVE] Fix some compilation warnings.
Hermès Bélusca-Maïto [Thu, 18 Oct 2018 22:25:19 +0000 (00:25 +0200)]
[MKHIVE] Fix some compilation warnings.

5 years ago[USETUP] Add a couple of missing TrimTrailingPathSeparators_UStr() calls.
Hermès Bélusca-Maïto [Thu, 18 Oct 2018 20:58:48 +0000 (22:58 +0200)]
[USETUP] Add a couple of missing TrimTrailingPathSeparators_UStr() calls.

Fixes in particular a regression brought by 57402ee (thanks George Bisoc
for having noticed this), where the BTRFS bootsector code could not be
installed anymore.

CORE-15192

5 years ago[MKHIVE] Fix cases where 'rc' was used without being initialized.
Hermès Bélusca-Maïto [Thu, 18 Oct 2018 21:07:41 +0000 (23:07 +0200)]
[MKHIVE] Fix cases where 'rc' was used without being initialized.

Fixes crashes when the tool is compiled with Run-Time Checks enabled.
And thus should fix the MSVC buildbots!
Thanks to Pierre for having brought this issue to me.

CORE-15201

5 years ago[MKHIVE] Fix compilation warnings. 947/head
Hermès Bélusca-Maïto [Sun, 14 Oct 2018 22:32:48 +0000 (00:32 +0200)]
[MKHIVE] Fix compilation warnings.

5 years ago[SETUPLIB][USETUP] Minor code refactoring, consisting in renaming the "ntos boot...
Hermès Bélusca-Maïto [Thu, 8 Jun 2017 17:30:23 +0000 (17:30 +0000)]
[SETUPLIB][USETUP] Minor code refactoring, consisting in renaming the "ntos boot loader" stuff into "boot store", since this happens to be functionality that is a bit more general than previously thought.

- Fix the usage of the BootEntry's "Version" member.
- Don't surround with too many quotation marks the "friendly" boot entry name in AddBootStoreEntry().

svn path=/branches/setup_improvements/; revision=74964

5 years ago[USETUP] As evoked in 27603a10 (r74943), adapt the code in bootsup.c to abstract...
Hermès Bélusca-Maïto [Thu, 8 Jun 2017 02:43:51 +0000 (02:43 +0000)]
[USETUP] As evoked in 27603a10 (r74943), adapt the code in bootsup.c to abstract the manipulation of freeldr.ini and boot.ini, and make it use the new features of bldrsup.c committed in 27603a10 (r74952).

In particular the helper functions CreateCommonFreeLdrSections() and (Un)protectBootIni() are now removed from there (they are used in bldrsup.c only).
This should pave the way for future integration with other sorts of NT boot loaders (BootMgr and (u)EFI boot loader).

svn path=/branches/setup_improvements/; revision=74954

5 years ago[SETUPLIB] Adapt the code in osdetect.c to make it use the new features of bldrsup...
Hermès Bélusca-Maïto [Thu, 8 Jun 2017 02:20:33 +0000 (02:20 +0000)]
[SETUPLIB] Adapt the code in osdetect.c to make it use the new features of bldrsup.c committed in 27603a10 (r74952).

svn path=/branches/setup_improvements/; revision=74953

5 years ago[SETUPLIB] Introduce a lot of (Work in progress) functions to manipulate boot entries...
Hermès Bélusca-Maïto [Wed, 7 Jun 2017 15:58:44 +0000 (15:58 +0000)]
[SETUPLIB] Introduce a lot of (Work in progress) functions to manipulate boot entries from different boot "stores".

This concerns so far, only freeldr.ini and to an extent, boot.ini, but planning in the future to add support for registry-oriented BCD
as well as possibly direct (u)EFI entries, using the corresponding NT functions.
This code is so far only used in osdetect.c, but will be soon used by usetup's bootsup.c (note that some helper functions: CreateCommonFreeLdrSections()
and (Un)protectBootIni() are already taken from it and used in bldrsup.c).
- In EnumerateNTOSBootEntries(), continue enumerating the boot entries until the user callback returns an status code that is not successful.
- Remove some old code from osdetect.c; use directly BootEntry->FriendlyName when building the display names of the available installations, since now
  BootEntry->FriendlyName is a PCWSTR (and not a UNICODE_STRING anymore).

svn path=/branches/setup_improvements/; revision=74943

[SETUPLIB] Make the NTOS_BOOT_ENTRY structure more generic, so that it can wrap around either actual NTOS boot entry options, or FreeLdr-like boot-sector options.

In a sense, the NTOS_BOOT_ENTRY structure now looks much more like the NT structure "BOOT_ENTRY".
- Adapt the code in bldrsup.c to these modifications, and re-enable FreeLdr-like boot-sector-file support code that was commented out.
More code cleanup will follow later.

svn path=/branches/setup_improvements/; revision=74952

5 years ago[USETUP] Diverse fixes for path handling.
Hermès Bélusca-Maïto [Wed, 31 May 2017 02:19:08 +0000 (02:19 +0000)]
[USETUP] Diverse fixes for path handling.

- Convert almost all swprintf() into StringCchPrintfW() and wcscpy() into StringCchCopyW();
- Explicitly add a trailing path separator to the "\Device\HarddiskX\PartitionY(\)" paths
  when they refer to FS directories (and not to partition objects);
- Remove useless (and half-buggy) "Remove trailing backslash" code.

With that, it is possible to install ReactOS in e.g. C:\ReactOS (as usual), C:\ReactOS\dir1\dir2 (as many dirs as you wish), and also in C:\ (yes yes!).
But in that latter case, a strange bug related to the registry arises...

Additionally:
- Adjust some comments;
- Add some debugging DPRINTs;
- The SetInstallPathValue() is part of the big hack I've mentioned in f51faa4a (r74709).

svn path=/branches/setup_improvements/; revision=74717