reactos.git
19 months ago[FLTMGR] Remove duplicated export
Pierre Schweitzer [Mon, 29 Oct 2018 16:28:01 +0000 (17:28 +0100)]
[FLTMGR] Remove duplicated export

19 months ago[FLTMGR] Add a bit more basic code layout for filter registration
Ged Murphy [Mon, 29 Oct 2018 17:03:11 +0000 (17:03 +0000)]
[FLTMGR] Add a bit more basic code layout for filter registration
Needs implementing

19 months ago[FLTMGR] Remove duplicated export
Pierre Schweitzer [Mon, 29 Oct 2018 16:28:01 +0000 (17:28 +0100)]
[FLTMGR] Remove duplicated export

19 months ago[FLTMGR] Callers must have registered an unload routine to be allowed to unload
Ged Murphy [Mon, 29 Oct 2018 11:28:10 +0000 (11:28 +0000)]
[FLTMGR] Callers must have registered an unload routine to be allowed to unload

19 months ago[FLTMGR] Delete unused file
Ged Murphy [Mon, 29 Oct 2018 11:17:21 +0000 (11:17 +0000)]
[FLTMGR] Delete unused file

19 months ago[FLTMGR] Stub FltReleaseFileNameInformation()
Pierre Schweitzer [Sun, 28 Oct 2018 10:24:36 +0000 (11:24 +0100)]
[FLTMGR] Stub FltReleaseFileNameInformation()

19 months ago[FLTMGR] Stub FltGetDestinationFileNameInformation()
Pierre Schweitzer [Sun, 28 Oct 2018 10:23:08 +0000 (11:23 +0100)]
[FLTMGR] Stub FltGetDestinationFileNameInformation()

19 months ago[FLTMGR] Stub FltAttachVolume()
Pierre Schweitzer [Sun, 28 Oct 2018 10:20:29 +0000 (11:20 +0100)]
[FLTMGR] Stub FltAttachVolume()

19 months ago[FLTMGR] Export FltCreateCommunicationPort() and FltCloseCommunicationPort()
Pierre Schweitzer [Sun, 28 Oct 2018 10:18:21 +0000 (11:18 +0100)]
[FLTMGR] Export FltCreateCommunicationPort() and FltCloseCommunicationPort()

19 months ago[FLTMGR] Stub FltGetFileNameInformation()
Pierre Schweitzer [Sun, 28 Oct 2018 10:15:44 +0000 (11:15 +0100)]
[FLTMGR] Stub FltGetFileNameInformation()

19 months ago[FLTMGR] Implement FltGetVolumeName()
Pierre Schweitzer [Sun, 28 Oct 2018 10:12:45 +0000 (11:12 +0100)]
[FLTMGR] Implement FltGetVolumeName()

19 months ago[FLTMGR] Stub FltDetachVolume()
Pierre Schweitzer [Sun, 28 Oct 2018 09:37:00 +0000 (10:37 +0100)]
[FLTMGR] Stub FltDetachVolume()

19 months ago[FLTMGR] Implement FltCreateFile()
Pierre Schweitzer [Sun, 28 Oct 2018 09:31:53 +0000 (10:31 +0100)]
[FLTMGR] Implement FltCreateFile()

19 months ago[FLTMGR] Stub FltCreateFileEx()
Pierre Schweitzer [Sun, 28 Oct 2018 09:26:37 +0000 (10:26 +0100)]
[FLTMGR] Stub FltCreateFileEx()

19 months ago[FLTMGR] Export FltCloseClientPort()
Pierre Schweitzer [Sun, 28 Oct 2018 08:35:17 +0000 (09:35 +0100)]
[FLTMGR] Export FltCloseClientPort()

19 months ago[FLTMGR] Stub FltGetFileNameInformationUnsafe()
Pierre Schweitzer [Sun, 28 Oct 2018 08:34:39 +0000 (09:34 +0100)]
[FLTMGR] Stub FltGetFileNameInformationUnsafe()

19 months ago[FLTMGR] Implement FltEnumerateVolumes()
Pierre Schweitzer [Sun, 28 Oct 2018 08:26:12 +0000 (09:26 +0100)]
[FLTMGR] Implement FltEnumerateVolumes()

19 months ago[FLTMGR] Export FltObjectDereference() and FltSendMessage()
Pierre Schweitzer [Sun, 28 Oct 2018 08:10:40 +0000 (09:10 +0100)]
[FLTMGR] Export FltObjectDereference() and FltSendMessage()

19 months ago[USETUP] Refactor the cabinet handling code to place all the global state variables...
Hermès Bélusca-Maïto [Mon, 14 Aug 2017 17:11:50 +0000 (17:11 +0000)]
[USETUP] Refactor the cabinet handling code to place all the global state variables into a CABINET_CONTEXT structure.

Place also all the private cabinet definitions into the .c, keeping
into the header file only the "public" structures and function prototypes.

19 months ago[SETUPLIB][REACTOS][USETUP] Re-organize the setup state variables and some helpers.
Hermès Bélusca-Maïto [Fri, 5 Jan 2018 01:51:51 +0000 (02:51 +0100)]
[SETUPLIB][REACTOS][USETUP] Re-organize the setup state variables and some helpers.

- Move a great deal of global variables into the USETUP_DATA structure
  (the SetupInf, the SetupFileQueue, the generic lists...).

- Place the common setup initialization code into an InitializeSetup()
  routine, and the cleanup code into FinishSetup().

- Implement the setup-code part support for the TXTSETUP.SIF setup
  source path override variables "SetupSourceDevice" and "SetupSourcePath"
  (see CORE-9023); support for them in SETUPLDR will be added later.

19 months ago[SETUPLIB] Silence noisy DPRINTs.
Hermès Bélusca-Maïto [Sun, 28 Oct 2018 22:33:29 +0000 (23:33 +0100)]
[SETUPLIB] Silence noisy DPRINTs.

19 months ago[KMTESTS:CC] Introduce a macro to test public BCB
Pierre Schweitzer [Sun, 28 Oct 2018 21:37:59 +0000 (22:37 +0100)]
[KMTESTS:CC] Introduce a macro to test public BCB

For now, it's local, but it may be moved to some header
to be shared between tests.

19 months ago[NTOSKRNL] Fix refcounting for BCBs
Pierre Schweitzer [Sun, 28 Oct 2018 19:48:01 +0000 (20:48 +0100)]
[NTOSKRNL] Fix refcounting for BCBs

Now, we make sure that we update ref count and BCB list membership
with the BCB lock held, in a row.
This will avoid race conditions where the BCB was removed from the
list, then referenced again, leading to inconsistencies in memory
and crashes later on.
This could notably be triggered while building ReactOS on ReactOS
(one would call this a regression).

CORE-15235

19 months ago[USRMGR] Fix a truncated text on French resource
Bișoc George [Sun, 28 Oct 2018 17:56:45 +0000 (18:56 +0100)]
[USRMGR] Fix a truncated text on French resource

CORE-15267

19 months ago[SETUP:REACTOS] Populate the list of existing installations.
Hermès Bélusca-Maïto [Fri, 29 Dec 2017 18:37:28 +0000 (19:37 +0100)]
[SETUP:REACTOS] Populate the list of existing installations.

- In the 1st-stage GUI setup, display the list of existing discovered
  NTOS installations, with its name, installation path and vendor name,
  and an associated icon.

19 months ago[SETUP:REACTOS] Add a wizard page to select which existing OS installation to upgrade.
Hermès Bélusca-Maïto [Mon, 25 Dec 2017 23:50:01 +0000 (00:50 +0100)]
[SETUP:REACTOS] Add a wizard page to select which existing OS installation to upgrade.

19 months ago[SETUP:REACTOS] Adapt the 1st-stage GUI setup to compile with the setuplib.
Hermès Bélusca-Maïto [Mon, 14 Aug 2017 17:06:19 +0000 (17:06 +0000)]
[SETUP:REACTOS] Adapt the 1st-stage GUI setup to compile with the setuplib.

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

[SETUP:REACTOS] More interfacing of the 1st-stage GUI installer with the setuplib.

- Add a ConvertNtPathToWin32Path() helper function that allows converting
  NT paths like: \Device\CdRom0\i386\txtsetup.sif file into a Win32 path
  that the Win32 versions of the SetupApi functions (e.g. SetupOpenInfFileW)
  can accept.
  Note that RtlNtPathNameToDosPathName() cannot be used here because this
  function only works for NT paths within the \DosDevices\ (or \??\) NTObj
  directory, and not in other directories.

- Use this helper function in the implementation of SetupOpenInfFileExW.
  Now the txtsetup.sif function can be loaded by setuplib *when being used*
  by the 1st-stage GUI installer!

- Remove deprecated code.

svn path=/branches/setup_improvements/; revision=75668
svn path=/branches/setup_improvements/; revision=75721
svn path=/branches/setup_improvements/; revision=75750

19 months ago[SETUPLIB][USETUP] Move the remaining (directory-creation) functions from usetup...
Hermès Bélusca-Maïto [Fri, 5 Jan 2018 00:56:23 +0000 (01:56 +0100)]
[SETUPLIB][USETUP] Move the remaining (directory-creation) functions from usetup's filesup to setuplib.

They will be used later in the library.

19 months ago[FREELDR] Silence a debug print.
Hermès Bélusca-Maïto [Sun, 28 Oct 2018 14:11:23 +0000 (15:11 +0100)]
[FREELDR] Silence a debug print.

19 months ago[SCHEDSVC] Reschedule a job after it was started
Eric Kohl [Sun, 28 Oct 2018 17:12:55 +0000 (18:12 +0100)]
[SCHEDSVC] Reschedule a job after it was started

- Remove a non-recurring job from the job list after starting it.
- Remove a recurring job from the start list, calculate its next start time and insert it again.
- Calculate the timeout for the next job.

19 months ago[ACPICA] Update to version 20181003. CORE-15222 975/head
Thomas Faber [Thu, 25 Oct 2018 10:11:45 +0000 (12:11 +0200)]
[ACPICA] Update to version 20181003. CORE-15222

19 months ago[ACPICA] Update to version 20180531. CORE-15222
Thomas Faber [Thu, 25 Oct 2018 10:07:40 +0000 (12:07 +0200)]
[ACPICA] Update to version 20180531. CORE-15222

19 months ago[ACPICA] Update to version 20180105. CORE-15222
Thomas Faber [Thu, 25 Oct 2018 10:00:28 +0000 (12:00 +0200)]
[ACPICA] Update to version 20180105. CORE-15222

19 months ago[ACPICA] Update to version 20171215. CORE-15222
Thomas Faber [Thu, 25 Oct 2018 09:31:02 +0000 (11:31 +0200)]
[ACPICA] Update to version 20171215. CORE-15222

19 months ago[SETUPLIB][USETUP] Remove the deprecated GenericListHasSingleEntry() function and...
Hermès Bélusca-Maïto [Sun, 28 Jan 2018 22:14:16 +0000 (23:14 +0100)]
[SETUPLIB][USETUP] Remove the deprecated GenericListHasSingleEntry() function and use instead GetNumberOfListEntries().

- Few FIXMEs get fixed in the process.
- Add some diagnostic ASSERTs.

19 months ago[SETUPLIB] Properly cleanup the temporary registry keys created for setting up the...
Hermès Bélusca-Maïto [Tue, 9 Jan 2018 01:56:00 +0000 (02:56 +0100)]
[SETUPLIB] Properly cleanup the temporary registry keys created for setting up the registry.

This includes also to remove the created symlinks.
Symlinks deletion is special, as one has to open first the symlink
itself (and not its target), then remove the "SymbolicLinkTarget" value
before really deleting the key. Of course everything must be done under
proper access rights.

Additional changes:
- Change prototype BOOLEAN CmpLinkKeyToHive(...) to NTSTATUS CreateSymLinkKey(...).
- Silence few DPRINTs.
- Document some FIXMEs that I need to inspect later on ReactOS.
- HKEY --> HANDLE.

19 months ago[SETUPLIB][USETUP] Move the registry-update procedure into setuplib.
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 16:17:27 +0000 (16:17 +0000)]
[SETUPLIB][USETUP] Move the registry-update procedure into setuplib.

- It can therefore be also used by the 1st-stage GUI setup.
- Rename some function parameters to clarify what they should be.

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

19 months ago[USETUP] Introduce some -V functions for CONSOLE_ConOutPrintf, CONSOLE_SetStatusText...
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 16:03:21 +0000 (16:03 +0000)]
[USETUP] Introduce some -V functions for CONSOLE_ConOutPrintf, CONSOLE_SetStatusText and CONSOLE_SetStatusTextX.

Additions:
- Use explicit __cdecl calling convention for variadic functions.
- Fix also the whitespace in consup.h.

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

19 months ago[README] Update to README File for git (#990)
Phosphorus Moscu [Sun, 28 Oct 2018 12:21:09 +0000 (09:21 -0300)]
[README] Update to README File for git (#990)

When I click the logo it will redirect to the website.

19 months ago[SHELL32] Fix broken control definition
Mark Jansen [Sun, 28 Oct 2018 12:06:27 +0000 (13:06 +0100)]
[SHELL32] Fix broken control definition

19 months ago[SETUPAPI] Fix broken control definition.
Mark Jansen [Sun, 28 Oct 2018 12:06:08 +0000 (13:06 +0100)]
[SETUPAPI] Fix broken control definition.

19 months ago[WIN32SS] Disable scrollbars when SIF_DISABLENOSCROLL is used 963/head
Mark Jansen [Sun, 21 Oct 2018 17:09:09 +0000 (19:09 +0200)]
[WIN32SS] Disable scrollbars when SIF_DISABLENOSCROLL is used
CORE-13918

19 months ago[KERNEL32] Directly use UnhandledExceptionFilter in BaseProcessStartup 953/head
Mark Jansen [Sat, 20 Oct 2018 13:38:21 +0000 (15:38 +0200)]
[KERNEL32] Directly use UnhandledExceptionFilter in BaseProcessStartup

19 months ago[KERNEL32] Use the default UnhandledExceptionFilter in BaseThreadStartup.
Mark Jansen [Thu, 18 Oct 2018 20:07:37 +0000 (22:07 +0200)]
[KERNEL32] Use the default UnhandledExceptionFilter in BaseThreadStartup.
This should allow unhandled exceptions in a thread to trigger our crash reporter,
instead of killing the process directly.

19 months ago[DRWTSN32] Improve stack dumping 962/head
Mark Jansen [Sun, 21 Oct 2018 12:46:44 +0000 (14:46 +0200)]
[DRWTSN32] Improve stack dumping

19 months ago[SETUPLIB] Store the vendor name for each discovered NTOS installation.
Hermès Bélusca-Maïto [Fri, 29 Dec 2017 18:37:28 +0000 (19:37 +0100)]
[SETUPLIB] Store the vendor name for each discovered NTOS installation.

Take also the opportunity to simplify a little bit the code.

19 months ago[USETUP] Add new file-operation-related messages for deletion, moving and renaming.
Hermès Bélusca-Maïto [Fri, 5 Jan 2018 00:49:09 +0000 (01:49 +0100)]
[USETUP] Add new file-operation-related messages for deletion, moving and renaming.

19 months ago[SETUPLIB] Remove a deprecated error number (that gets merged with ERROR_TXTSETUP_SEC...
Hermès Bélusca-Maïto [Sat, 30 Dec 2017 17:21:42 +0000 (18:21 +0100)]
[SETUPLIB] Remove a deprecated error number (that gets merged with ERROR_TXTSETUP_SECTION).

[USETUP] Improve usage of ERROR_TXTSETUP_SECTION and ERROR_CABINET_SECTION error codes, correctly display associated error message, and remove a deprecated string.

19 months ago[USETUP] Remove now-redundant file (already used with SETUPLIB).
Hermès Bélusca-Maïto [Sat, 30 Dec 2017 17:09:37 +0000 (18:09 +0100)]
[USETUP] Remove now-redundant file (already used with SETUPLIB).

19 months ago[SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies...
Hermès Bélusca-Maïto [Fri, 29 Dec 2017 18:09:56 +0000 (19:09 +0100)]
[SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies, + other code adaptations.

- Apart from allowing a UI cache variable that may be used when
  displaying GENERIC_LIST_ENTRY-ies, do not store any display strings
  associated to these list entries. They should be instead computed only
  when initializing a list UI (or a combo-box or list control if the
  code is used in Win32 environment).
  For this matter a callback is provided to InitGenericListUi() that
  does the job of computing the displayed string corresponding to a
  given GENERIC_LIST_ENTRY.

- Simplify the calls to InitGenericListUi(), and refactor the
  RestoreGenericListUiState() function.

- Use for-loops for iterating over GENERIC_LIST items.

- Adapt the storage data format for lists of settings items.

- The txtsetup.sif INF format specified in LoadSetupInf() should not be
  INF_STYLE_WIN4 (to be investigated...).

19 months ago[SETUPLIB][USETUP] Bring some suggestions from PR #59 in.
Hermès Bélusca-Maïto [Sat, 23 Dec 2017 19:17:38 +0000 (20:17 +0100)]
[SETUPLIB][USETUP] Bring some suggestions from PR #59 in.

- Use OBJ_CASE_INSENSITIVE when initializing object attributes
  (no actual reason why to keep case sensitivity there).

- Check the success of a RtlStringCchPrintfW call in EnumerateReactOSEntries().

- Explicitly check for returned STATUS_NOT_SUPPORTED from ChkdskPartition()
  or FormatPartition(), and display an appropriate error message.

- Remove some left-over comments but also explain why I kept some
  commented code (mainly for future reference).

19 months ago[SETUPLIB] Improve the bootloader 'validity' checks -- Addendum to f06734e5 (r74512).
Hermès Bélusca-Maïto [Sun, 24 Dec 2017 21:37:19 +0000 (22:37 +0100)]
[SETUPLIB] Improve the bootloader 'validity' checks -- Addendum to f06734e5 (r74512).

Adapted from PR #89 by Serge Gautherie.
This should improve the situation described in CORE-12672 and CORE-4870.

19 months ago[SETUPLIB] Improve an alternate code implementation.
Hermès Bélusca-Maïto [Fri, 22 Dec 2017 22:28:53 +0000 (23:28 +0100)]
[SETUPLIB] Improve an alternate code implementation.

Comment about the status of two '#if 0'.

[SETUPLIB] Fix some uninitialized variables (caught by clang-cl).
Also, initialize NtName->Length in return paths in ResolveArcNameManually().

19 months ago[USETUP] Move the SetupExtractFile() function to where it is (only) used.
Hermès Bélusca-Maïto [Mon, 4 Sep 2017 20:00:22 +0000 (20:00 +0000)]
[USETUP] Move the SetupExtractFile() function to where it is (only) used.

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

19 months ago[SETUPLIB][USETUP] Use NT RTL String Safe functions instead of Win32-oriented ones...
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 20:05:11 +0000 (20:05 +0000)]
[SETUPLIB][USETUP] Use NT RTL String Safe functions instead of Win32-oriented ones (and remove usage of HRESULT too).

Based on:
svn path=/branches/setup_improvements/; revision=75755
svn path=/branches/setup_improvements/; revision=75757

19 months ago[SETUPLIB][USETUP] Make the GENERIC_LIST store the items display text in UNICODE...
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 19:46:26 +0000 (19:46 +0000)]
[SETUPLIB][USETUP] Make the GENERIC_LIST store the items display text in UNICODE (and not in ANSI).

Only convert to ANSI when needed (e.g. in the display code for usetup).
The 1st-stage GUI setup will however use the UNICODE strings directly.

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

19 months ago[USETUP] Whitespace fixes only.
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 19:31:36 +0000 (19:31 +0000)]
[USETUP] Whitespace fixes only.

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

19 months ago[SETUPLIB][USETUP] Move the floppy-disk accessibility check into InstallFatBootcodeTo...
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 16:19:59 +0000 (16:19 +0000)]
[SETUPLIB][USETUP] Move the floppy-disk accessibility check into InstallFatBootcodeToFloppy().

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

19 months ago[USETUP] Resources: fix a typo.
Hermès Bélusca-Maïto [Sun, 3 Sep 2017 12:08:39 +0000 (12:08 +0000)]
[USETUP] Resources: fix a typo.

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

19 months ago[SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib.
Hermès Bélusca-Maïto [Wed, 30 Aug 2017 11:28:52 +0000 (11:28 +0000)]
[SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib.

[SETUPLIB] Copy the mui* files from usetup into the setuplib for later usage, and add mui.c to build.

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

[SETUPLIB][USETUP] Start massaging the MUI files and split up what concerns only the usetup "resources",
and what concerns general language parameters (in the setuplib).

It may be interesting to retrieve the language parameters
from INF file (e.g. intl.inf) (suggested by Giannis).

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

[SETUPLIB] Add the necessary headers to mui.c to be able to compile.
[USETUP] Comment out the languages that don't have any resources.

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

[SETUPLIB][USETUP] Adjust MUI and settings code.

- Re-enable settings code concerning language, keyboards & layout
  in the setuplib, and remove the old code in usetup.

- Remove useless code in setuplib's mui.c.

- Rename usetup's MUI "LanguageList" into "ResourceList" so as to
  avoid colliding with the "LanguageList" of setuplib.

- Add the magic CMakeLists line "add_definitions(${I18N_DEFS})" that
  I forgot previously, that caused the "LanguageList" of setuplib to be empty!

The code compiles and works during my tests.

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

[SETUPLIB] Change some string pointer types & function prototypes so that the usetup-specific
"SelectedLanguageId" variable is not used in the library.

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

[SETUPLIB] Change some function prototypes so that the usetup-specific "SelectedLanguageId" variable is not used in the library.
Also, make AddEntriesFromInfSection(), DefaultProcessEntry() and the typedef PPROCESS_ENTRY_ROUTINE private again.

svn path=/branches/setup_improvements/; revision=75720
svn path=/branches/setup_improvements/; revision=75724

[USETUP] Code adaptations.

- Transform some do{}while() loops into while(){} ones, since the lists on which we work may only contain one single {NULL} element.
- Modify MUIGetOEMCodePage() call after r75719.
- Use PCWSTR where needed.

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

[USETUP] Adjust some MUI & settings calls, following the commits r75719, r75720 and r75721.

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

[INPUT.CPL] Adjust inclusion of "muifonts.h" (commit 3dbd44f) due to changes introduced in r75711 and r75715.

19 months ago[SCHEDSVC] Improvements to the scheduler service
Eric Kohl [Sat, 27 Oct 2018 22:02:18 +0000 (00:02 +0200)]
[SCHEDSVC] Improvements to the scheduler service

Use WaitForMultipleObjects in the mail scheduler loop:
- Use events to signal service stop and job update events to the main loop.
- Use the timeout timer to start the next job.

19 months ago[NTOSKRNL] Rewrite IoCheckEaBufferValidity() so that it's less magic
Pierre Schweitzer [Sat, 27 Oct 2018 19:54:55 +0000 (21:54 +0200)]
[NTOSKRNL] Rewrite IoCheckEaBufferValidity() so that it's less magic

And make its coding style consistent with our rules

19 months ago[WIN32SS][NTGDI] Refactoring PATH_WidenPath (#888)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 20:13:08 +0000 (05:13 +0900)]
[WIN32SS][NTGDI] Refactoring PATH_WidenPath (#888)

Preparation to support pen width.
Split IntGdiWidenPath function from PATH_WidenPath function.
IntGdiWidenPath is independent from DC.
CORE-2527, CORE-13534

19 months ago[SETUPLIB][USETUP] Move the settings code from usetup to setuplib.
Hermès Bélusca-Maïto [Mon, 28 Aug 2017 14:46:49 +0000 (14:46 +0000)]
[SETUPLIB][USETUP] Move the settings code from usetup to setuplib.

This code is moved ther since it'll be needed for 1st-stage GUI
installer as well.

The code dealing with keyboard layouts is however not moved yet,
since it uses MUI* functions from usetup.
I'll try to think how to include that in setuplib...

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

19 months ago[SETUPLIB] Move the files that implement utility functions into their own subdirector...
Hermès Bélusca-Maïto [Mon, 28 Aug 2017 11:28:08 +0000 (11:28 +0000)]
[SETUPLIB] Move the files that implement utility functions into their own subdirectory. The files remaining in the main directory implement setup procedures that use the utility functions.

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

19 months ago[USETUP][SETUPLIB] Move the bootsup.c code into the setuplib, and perform the necessa...
Hermès Bélusca-Maïto [Sat, 26 Aug 2017 11:42:32 +0000 (11:42 +0000)]
[USETUP][SETUPLIB] Move the bootsup.c code into the setuplib, and perform the necessary adjustments.

Move the bootsup.c code into the setuplib, as the code is generic
enough to be used by both USETUP and the 1st-stage GUI installer.

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

19 months ago[NTUSER] NtUserxSwitchToThisWindow 2nd argument is fAltTab (#989)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 18:27:49 +0000 (03:27 +0900)]
[NTUSER] NtUserxSwitchToThisWindow 2nd argument is fAltTab (#989)

Fix the 2nd parameter name of NtUserxSwitchToThisWindow. #988 similiarly.
CORE-15165

19 months ago[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 18:14:04 +0000 (03:14 +0900)]
[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-switchtothiswindow
CORE-15165

19 months ago[WIN32SS] Move SwitchToThisWindow codes to win32k (#987)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 17:56:16 +0000 (02:56 +0900)]
[WIN32SS] Move SwitchToThisWindow codes to win32k (#987)

- Implement user32!SwitchToThisWindow by NtUserCallTwoParam TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW.
- Improve user32!CloseWindow with using SetActiveWindow and ShowWindow (synchronized).
CORE-15165

19 months ago[NTOSKRNL] Properly handle "big" security descriptors in ObpCaptureObjectCreateInform...
Pierre Schweitzer [Sat, 27 Oct 2018 17:35:45 +0000 (19:35 +0200)]
[NTOSKRNL] Properly handle "big" security descriptors in ObpCaptureObjectCreateInformation()

19 months ago[NTOSKRNL] Implement SeComputeQuotaInformationSize()
Pierre Schweitzer [Sat, 27 Oct 2018 17:32:42 +0000 (19:32 +0200)]
[NTOSKRNL] Implement SeComputeQuotaInformationSize()

19 months ago[WKSSVC][IDL] Add names of unsupported functions
Eric Kohl [Sat, 27 Oct 2018 17:04:31 +0000 (19:04 +0200)]
[WKSSVC][IDL] Add names of unsupported functions

19 months ago[LSASRV][IDL] The first parameter of the Credr* functions is a PLSAPR_SERVER_NAME.
Eric Kohl [Sat, 27 Oct 2018 15:02:02 +0000 (17:02 +0200)]
[LSASRV][IDL] The first parameter of the Credr* functions is a PLSAPR_SERVER_NAME.

19 months ago[USETUP] Add an AddEntriesFromInfSection() helper that enumerates the entries of...
Hermès Bélusca-Maïto [Mon, 28 Aug 2017 14:01:30 +0000 (14:01 +0000)]
[USETUP] Add an AddEntriesFromInfSection() helper that enumerates the entries of a given INF section, and adds these into a (user-allocated) GENERIC_LIST after some pre-processing.

This helper is inspired by the reactos/reactos.c!LoadGenEntry() function.
Use this helper in the different Create*List() functions.

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

19 months ago[USETUP] Simplify code.
Hermès Bélusca-Maïto [Mon, 28 Aug 2017 13:51:25 +0000 (13:51 +0000)]
[USETUP] Simplify code.

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

19 months ago[USETUP] Formatting fixes only.
Hermès Bélusca-Maïto [Mon, 28 Aug 2017 13:50:40 +0000 (13:50 +0000)]
[USETUP] Formatting fixes only.

svn path=/branches/setup_improvements/; revision=75697
svn path=/branches/setup_improvements/; revision=75699

19 months ago[USETUP] Add few checks to forbid the user to attempt installing ReactOS in the insta...
Hermès Bélusca-Maïto [Fri, 25 Aug 2017 14:38:12 +0000 (14:38 +0000)]
[USETUP] Add few checks to forbid the user to attempt installing ReactOS in the installation source directory, or a subdirectory thereof, or to delete the partition containing the installation source.

This is needed because the ReactOS installer can also be present from within a HDD partition!

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

19 months ago[USETUP] Group constant strings together. In EventThread(), use RtlReAllocateHeap...
Hermès Bélusca-Maïto [Wed, 23 Aug 2017 13:40:43 +0000 (13:40 +0000)]
[USETUP] Group constant strings together. In EventThread(), use RtlReAllocateHeap() to resize the pnp-event buffer.

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

19 months ago[SETUPLIB] Diverse fixes (incl. initialization fixes).
Hermès Bélusca-Maïto [Fri, 25 Aug 2017 09:19:44 +0000 (09:19 +0000)]
[SETUPLIB] Diverse fixes (incl. initialization fixes).

- Compute the installation source paths based on the full path of the
  installer program that uses the setup library.
- Add INF_STYLE_OLDNT define in infsupp.h.
- Add some (silenced) diagnostic DPRINTs.

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

- Use correct inf style flags in SetupOpenInfFileEx() calls when opening
  txtsetup.sif and unattend.inf. Technically txtsetup.sif would be
  INF_STYLE_WIN4, but since we use "$ReactOS$" as its version signature,
  it would not work when opening it with setupapi.dll functions.
  Hence this flag is combined with INF_STYLE_OLDNT too.

- Don't fail if opening the \SystemRoot symbolic link doesn't work
  (usually due to incorrect access rights); in that case, just use the
  installer image file path as the installation source path.

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

19 months ago[SETUPLIB] Code formatting fix.
Hermès Bélusca-Maïto [Wed, 23 Aug 2017 17:47:39 +0000 (17:47 +0000)]
[SETUPLIB] Code formatting fix.

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

19 months ago[SETUPLIB] Introduce and use a UnMapAndCloseFile() macro that calls UnMapFile() and...
Hermès Bélusca-Maïto [Wed, 23 Aug 2017 12:20:15 +0000 (12:20 +0000)]
[SETUPLIB] Introduce and use a UnMapAndCloseFile() macro that calls UnMapFile() and NtClose() on handles returned by the OpenAndMapFile() function.

svn path=/branches/setup_improvements/; revision=75651
svn path=/branches/setup_improvements/; revision=75657

19 months ago[SETUPLIB][USETUP] Code refactoring: rename the old DoesPathExist() into DoesDirExist...
Hermès Bélusca-Maïto [Mon, 21 Aug 2017 19:41:40 +0000 (19:41 +0000)]
[SETUPLIB][USETUP] Code refactoring: rename the old DoesPathExist() into DoesDirExist(), and rename the new DoesPathExistEx() back into DoesPathExist().

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

19 months ago[SETUPLIB] Merge DoesPathExist() and DoesFileExist() into (temporarily called) DoesPa...
Hermès Bélusca-Maïto [Mon, 21 Aug 2017 19:14:33 +0000 (19:14 +0000)]
[SETUPLIB] Merge DoesPathExist() and DoesFileExist() into (temporarily called) DoesPathExistEx() function.

And turn the previous two functions into macros.

svn path=/branches/setup_improvements/; revision=75635
svn path=/branches/setup_improvements/; revision=75652

19 months ago[SETUPLIB] Factor out and introduce a ParseArcName() helper function that does its...
Hermès Bélusca-Maïto [Sun, 20 Aug 2017 21:30:13 +0000 (21:30 +0000)]
[SETUPLIB] Factor out and introduce a ParseArcName() helper function that does its job.

Used in exiting code and in later code in this file.

svn path=/branches/setup_improvements/; revision=75632
svn path=/branches/setup_improvements/; revision=75652

19 months ago[SETUPLIB] Code formatting.
Hermès Bélusca-Maïto [Sun, 20 Aug 2017 21:02:24 +0000 (21:02 +0000)]
[SETUPLIB] Code formatting.

svn path=/branches/setup_improvements/; revision=75631
svn path=/branches/setup_improvements/; revision=75652

19 months ago[SYSSETUP] Use a $winnt$.inf file to retrieve setup information for the 2nd-stage...
Hermès Bélusca-Maïto [Thu, 10 Aug 2017 19:21:08 +0000 (19:21 +0000)]
[SYSSETUP] Use a $winnt$.inf file to retrieve setup information for the 2nd-stage setup.

Following r75518, we use the $winnt$.inf file (created in System32
by the 1st-stage installer) as the setup information file for the
2nd-stage setup for:

- retrieving the installation source media path;
- retrieving the unattended information that was copied from the
  unattend.inf file from the installation source media.

The installation source media path is converted from NT format to
Win32 format for usage with Win32 functions and storage in the registry:
this is done by GetInstallSourceWin32(), which replaces the hackish
GetRosInstallCD() function.

The $winnt$.inf file is also updated, and the registry values "SourcePath"
and "ServicePackSourcePath" are created / updated in:
HKLM\Software\Microsoft\Windows\CurrentVersion\Setup .

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

19 months ago[USETUP][SETUPLIB] Code refactoring.
Hermès Bélusca-Maïto [Wed, 9 Aug 2017 20:39:45 +0000 (20:39 +0000)]
[USETUP][SETUPLIB] Code refactoring.

- Move several global setup variables into a structure "USETUP_DATA",
  similar to the syssetup structure "SETUPDATA" (or the WIP 1st-stage
  installer structure of the same name), so that these variables can be
  set easily by different helper setup functions;

- Move CheckUnattendedSetup() and GetSourcePaths() to setuplib and make
  CheckUnattendedSetup() use the USETUP_DATA structure;

- Add a LoadSetupInf() function that loads the txtsetup.sif file
  (factoring out the corresponding code in USETUP);

- Add a InstallSetupInfFile() function (that I'll probably rename later on)
  whose purpose is to create a valid "$winnt$.inf" setup installation file
  in the ReactOS\system32 directory, which should help the 2nd-stage installer
  to correctly retrieve the source installation media we used during 1st-stage,
  and contain the unattended setup lines copied from unattend.inf. This is
  done in a Windows-compatible way.

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

[USETUP] Close the txtsetup.sif file at the end of the operations.

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

19 months ago[IDL] Fix coding style and indentation
Eric Kohl [Sat, 27 Oct 2018 14:34:37 +0000 (16:34 +0200)]
[IDL] Fix coding style and indentation

19 months ago[IDL] Fix coding style and indentation
Eric Kohl [Sat, 27 Oct 2018 13:48:21 +0000 (15:48 +0200)]
[IDL] Fix coding style and indentation

19 months ago[WIN32SS][USER32] Simplify CloseWindow (#986)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 12:16:02 +0000 (21:16 +0900)]
[WIN32SS][USER32] Simplify CloseWindow (#986)

19 months ago[BROWSEUI] CInternetToolbar: fix whitespace
Giannis Adamopoulos [Sat, 27 Oct 2018 12:01:54 +0000 (15:01 +0300)]
[BROWSEUI] CInternetToolbar: fix whitespace

19 months ago[BROWSEUI] Simplify toggling the search band
Giannis Adamopoulos [Sat, 27 Oct 2018 11:01:20 +0000 (14:01 +0300)]
[BROWSEUI] Simplify toggling the search band
In windows the toolbar itself creates the search shell extension. In ros we send a command to the CShellBrowser to let it handle it itself. Use the same command for showing and hiding it.

19 months ago[BROWSEUI] Implement toggling the folders and search band with the toolbar and make...
Giannis Adamopoulos [Sat, 27 Oct 2018 08:52:04 +0000 (11:52 +0300)]
[BROWSEUI] Implement toggling the folders and search band with the toolbar and make their buttons appear pressed when they are shown.
CBaseBarSite: Ask the CBaseBar to close itself when the x button is pressed.
CBaseBar: Hide the bar and inform its site that it is closing when it gets the close command.
CShellBrowser: Cache the guid of the current vertical bar and use it to report correct command status to the toolbar.
Also implement toggling the Folders, Favorites, History and search commands.
CInternetToolbar: Query the Folders and Search command status from the site so that they can be properly be shown as pressed.

19 months ago[WIN32SS][USER32] Fix #984 (#985)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 11:32:51 +0000 (20:32 +0900)]
[WIN32SS][USER32] Fix #984 (#985)

Sorry, I had to wait the build checks.

19 months ago[WIN32SS][USER32] CloseWindow does minimize, doesn't close (#984)
Katayama Hirofumi MZ [Sat, 27 Oct 2018 11:21:55 +0000 (20:21 +0900)]
[WIN32SS][USER32] CloseWindow does minimize, doesn't close (#984)

In Windows, user32!CloseWindow minimizes the window. It doesn't close the window actually. This is not a joke. This bad function naming is responsible to MS.

19 months ago[BOOTDATA] Define the ObUnsecureGlobalNames registry key on setup
Pierre Schweitzer [Sat, 27 Oct 2018 10:00:35 +0000 (12:00 +0200)]
[BOOTDATA] Define the ObUnsecureGlobalNames registry key on setup

It contains values that are present on W2K3 and required to avoid
regressions in .NET

See: https://blogs.msdn.microsoft.com/toddca/2005/06/08/normal-users-on-terminal-server-fail-to-run-net-framework-applications/

19 months ago[NTOSKRNL] Add support for unsecure object names
Pierre Schweitzer [Sat, 27 Oct 2018 09:48:52 +0000 (11:48 +0200)]
[NTOSKRNL] Add support for unsecure object names

19 months ago[NTOSKRNL] Implement the ObpIsUnsecureName() helper function
Pierre Schweitzer [Sat, 27 Oct 2018 09:47:42 +0000 (11:47 +0200)]
[NTOSKRNL] Implement the ObpIsUnsecureName() helper function

19 months ago[NTOSKRNL] Add support for the ObUnsecureGlobalNames registry key
Pierre Schweitzer [Sat, 27 Oct 2018 09:44:19 +0000 (11:44 +0200)]
[NTOSKRNL] Add support for the ObUnsecureGlobalNames registry key

19 months ago[WIN32SS][NTUSER] Make offset only for menu bars (#983)
Stanislav Motylkov [Sat, 27 Oct 2018 09:45:21 +0000 (12:45 +0300)]
[WIN32SS][NTUSER] Make offset only for menu bars (#983)

CORE-15226