Commit graph

76671 commits

Author SHA1 Message Date
Doug Lyons acec69a1d7 [PRINTING] Improve Stubs for GetPrinterA and GetPrinterDeviceA (#2274) 2020-01-26 16:21:39 +01:00
Mark Jansen 53c9a6deaa
[WIN32K] Don't trust the BITMAPINFOHEADER size
This is not entirely correct yet, but less wrong than before
CORE-16621
2020-01-26 13:08:53 +01:00
Timo Kreuzer 42d2d5ec9c [ROSTESTS] fix x64 build and fix/disable warnings 2020-01-26 11:50:37 +01:00
Eric Kohl 6a67450893 [NETID] Implement DNS suffix and NetBIOS computer name support
- Load and store the non volatile host, domain and computer names instead of the volatile ones.
- Validate the domain name before it is stored.
- Update the full computer name whenever the host or domain name changes.
2020-01-26 10:04:44 +01:00
Mark Jansen 8381e29467
[NTDLL] Add policy kill-switch for manifest based automatic shimming
CORE-16631
2020-01-25 13:23:54 +01:00
Mark Jansen ea35843c30
[COMCTL] Use DIALOG instead of DIALOGEX resources
This is needed, because property sheets can modify the dialog resource,
and example code (and some existing applications) expect DIALOG.
One such application is the VB6 setup.
CORE-16650
2020-01-25 12:58:27 +01:00
Hermès Bélusca-Maïto 15bc263b07
[MSPAINT] Shorten the license string that is displayed in ShellAbout() dialog. CORE-12356
[MPLAY32][REGEDIT][TASKMGR][WORDPAD][BROWSEUI]
Use NULL for empty handles / string pointers in ShellAbout() calls.
2020-01-24 23:40:32 +01:00
Katayama Hirofumi MZ cefc378b0d [USERENV] Add 'See also' comments for translators 2020-01-24 21:48:22 +09:00
Serge Gautherie b3badc0451 [CMAKE] Remove a remnant comment related to 'dll/cpl/console' (#2267)
'#Warning: console\\/lang/cs-CZ.rc:143: unrecognized escape sequence'
2020-01-24 13:38:53 +01:00
Katayama Hirofumi MZ aacb9f0ccd [SHELL32] Improve comments of shell folder paths 2020-01-24 21:32:25 +09:00
Katayama Hirofumi MZ 85474211a1 [SHELL32][USERENV] Update Japanese special folder names 2020-01-24 21:27:50 +09:00
Hervé Poussineau 99f979d6e9 [WIN32SS] Replace inline by FORCEINLINE, as in other files of the module 2020-01-22 20:57:42 +01:00
Hervé Poussineau 043ce2c832 [SETUPLIB] Fix possible out-of-bound buffer if BootStore->Type is unknown/invalid 2020-01-22 20:57:38 +01:00
Hervé Poussineau 698e1a3782 [SDK] Use HEX macro, like elsewhere in the file 2020-01-22 20:57:04 +01:00
Hervé Poussineau 8314c8eeba [NTOS] Move FORCEINLINE specifier where appropriate 2020-01-22 20:57:01 +01:00
Hervé Poussineau 46fdc89e4f [FREELDR] Comment out useless variable 2020-01-22 20:56:51 +01:00
Katayama Hirofumi MZ 5f692ed1f0
[EXPLORER][INCLUDE] Fix wrong title on taskbar about ampersand (&) (#2266)
Co-authored-by: Mark Jansen <mark.jansen@reactos.org>
Based on @learn-more's CORE-11619.patch. CORE-11619
2020-01-22 09:58:43 +09:00
Katayama Hirofumi MZ 257a701e9b
[BOOTDATA][USERENV] Improve and fix user profile info (#2265)
The international user profile info was inconsistent; thus TEMP and TMP environment variables were wrong. CORE-16635
2020-01-22 08:19:39 +09:00
jimtabor ef8c9239d7 [Win32nt|ApiTests] Add Exclude, Intersect and Offset Clip Region tests. 2020-01-20 13:11:09 -06:00
James Tabor 4927905eeb [NtGdi] Fix clip region merging.
Use a new region while merging from the original. See CORE-16626.
2020-01-20 12:49:11 -06:00
Serge Gautherie 367a94211b [ATL] Re-enable MSVC warning C4477 (#2010)
Follow-up to e410a122.
2020-01-20 14:24:06 +01:00
Katayama Hirofumi MZ 8dc90a4c7e [WIN32SS][USERSRV] Add CSR API_NUMBER comments 2020-01-20 08:06:40 +09:00
Bișoc George 2bf4180c80 [USETUP] Implement resource ID text based strings for MUI (#2193)
CORE-12683

Supersedes PR #612.

* [USETUP] Implement the internal MUI routines for text manipulation based on its ID and implement text resource based IDs

USETUP (the 1st stage text mode setup module) bases upon MUI (Multilingual User Interface) sub-component of USETUP which is responsible for the ability into translating the MUI pages (each page having corresponding properties like X, Y coordinates, text flags and text string buffer) in various languages.
The only problem, as of now, is that whenever you want to modify a certain property of a page, such as removing a text from the said page in the screen, you've got to rely on using CONSOLE_* specific functions and calling with hardcoded parameters, namely the coordinates.

This can become a problem as not every localized (translated) MUI page has the same properties for each language and this could lead to various issues. Therefore, assigning each entry with an ID you can remove a text by only giving its ID (and the entry page number) without having the need to specify the coordinates
as the internal MUI routine, MUIGetEntry(), automatically retrieves the entry with respective data fields.

The following commit implements:

- MUIGetEntry()
- MUIClearText()
- MUIClearStyledText()
- MUISetText()
- MUISetStyledText()
- Now the X and Y coordinate members of MUI_ENTRY are of SHORT integer type, for the sake of the general code as most of the coordination values, even the COORD structure itself, has the coordination points as SHORTs and not BYTEs.

The following MUI functions will be used to manipulate text based resources depending on their ID from the corresponding MUI entry.

* [USETUP] Make CONSOLE_ClearTextXY function public so that we can use across other files.

* [USETUP] Implement the IDs for each text MUI entry in locale files.

This mechanism follows the same principle of resource IDs in Win32 applications. Static text is merely a resource that doesn't get changed programmatically for whole of its lifetime whereas dynamic resources can change during the lifetime of the program depending on the algorithm (for example, hide that piece of text and set another one, etc.).

* [USETUP] Remove the "Press ENTER to continue" message prompt when the partition formatting begins.
2020-01-19 17:58:13 +01:00
Jose Carlos Jesus 8dfd2338f1 [TRANSLATION] Update Portuguese translation (#2257)
Improvements/updates for sysdm.cpl, devmgr.dll, hhctrl.ocx, netid.dll,
and add new Portuguese translation for shimgvw.dll .
2020-01-19 15:45:06 +01:00
Eric Kohl 9e2ae9b05c [SYSSETUP] When the physical host name is set, also set an empty physical domain name 2020-01-19 13:34:32 +01:00
Eric Kohl c645660384 [KERNEL32] Improvements to Get/SetComputerNameExW
- The ComputerNamePhysicalDnsDomain name type gets or sets the 'NV Domain' registry value.
- The ComputerNamePhysicalDnsHostname name type gets or sets the 'NV Hostname' registry value.
- IsValidComputerName: Enforce name length restrictions according to the name type.
2020-01-19 13:34:31 +01:00
Eric Kohl 0f4827edde [NETEVENT] Netevent.dll does not have an entry point because it is a resource-only dll. 2020-01-19 13:34:29 +01:00
Dmitry Borisov 065afd93fd [FREELDR] Add FAT12 file system boot sector for NEC PC-98 series (#2025)
The first part of PC-98 Port - https://reactos.org/wiki/PC-98

- Add FAT12 file system boot sector for NEC PC-98 series.
- Add a new build target for a PC-98 bootable floppy disk.
- Add a new sub-architecture into config.cmake.
2020-01-18 19:16:23 +01:00
Serge Gautherie 63cf8625a0 [WBEMPROX] Always free 'new_path' (#2056)
Cherry-pick
a45dfea99a

CORE-13391
2020-01-18 18:53:11 +01:00
Stanislav Motylkov af7ec17ce1 [HALXBOX] Don't use Xbox partitions if MBR signature found (#2253)
* [HALXBOX] Formatting only.

* [HALXBOX] Don't use Xbox partitions if MBR signature found.

- Fixes BSOD 0x7B when booting from a HDD that have both MBR and BRFR signatures.
- It happens when you format Xbox (BRFR) disk as MBR.
  After that "BRFR" signature is still located at sector 3.
- Also fix pre-existing leaks.

CORE-16216 CORE-16329
2020-01-18 18:41:32 +01:00
Eric Kohl 0a274da7cd [DNSAPI] DnsQuery_W: Check names for invalid characters before querying the dns resolver. 2020-01-18 15:03:12 +01:00
Timo Kreuzer e2560a5cad [XDK] Fix x64 version of KeGetCurrentProcessorNumber() and add KeGetCurrentProcessorIndex() 2020-01-18 14:56:17 +01:00
Thomas Faber 9215413a68
[FLTMGR] Safely query object name in FltpGetObjectName. CID 1420811 2020-01-18 13:19:22 +01:00
Thomas Faber aee6cbc50a
[SHELL] Add SHOpenFolderAndSelectItems to shlobj.h. 2020-01-18 13:10:35 +01:00
Hermès Bélusca-Maïto e410a12242
[ATL30] Fix m_szAutoName definition and construction in Wine's ATL30 dll.
- Make the format actually MS-compatible: "ATL" followed by colon,
  followed by hexadecimal digits of pointer.

- The MS counterpart of this DLL was delivered with Visual C++ 6.0 and
  Windows 98+, so obviously it always was 32-bit and they never had a
  64-bit version for it. But we do. So make the size of the m_szAutoName
  buffer cross-compatible.

- See previous commit dbddd878 and the discussion in PR #2010.
2020-01-15 01:21:25 +01:00
Hermès Bélusca-Maïto 1a231e1e70
[SDK:ATL] Fix the size of the ATL_WNDCLASSINFOW::m_szAutoName member according to the actual MS-compatible auto-generated window class name.
The autogenerated name has the format:
    "ATL:<hexadecimal_digits_of_pointer><NULL-terminator>"

and the number of hex digits in 0xABCD1234 (for 32-bit == 4-byte)
pointers (without the '0x') is 8 == 4*2, and for 64-bit == 8-byte
pointers (e.g. 0xABCDEF0123456789) is 16 == 8*2.
2020-01-15 01:14:03 +01:00
Stanislav Motylkov f9e36df4d6 [CMAKE] Add proper global definition for Xbox port (#2250)
CORE-16216
2020-01-14 22:15:18 +01:00
Stanislav Motylkov afdb42023c [FREELDR][XBOXVMP] Check only low 28 bits for framebuffer address (#2249)
Fixes framebuffer detection on real hardware Xbox.
2020-01-14 20:20:22 +01:00
Serge Gautherie 8f72618453 [SYSDM] general.c: Make 2 global variables 'static' (#2060)
And 1 'const' too.

This allows reducing confusion about scope/use.
2020-01-14 18:54:17 +01:00
7OMI 66f6d051eb [TRANSLATION] Add/update Hungarian translation for shell32, ieframe, browseui (#2127) 2020-01-14 18:52:38 +01:00
Serge Gautherie 82d2f13cea [FLOPPY_NEW] WindowsSync to 8fb512a (#2238)
* [FLOPPY_NEW] Make 6 '#ifdef' explicit about '__REACTOS__'

* [FLOPPY_NEW] RtlStringCbPrintf?() need bytes, not chars

Import
8fb512ac67
2020-01-14 18:50:19 +01:00
disean e5c0052466 [HAL][FREELDR] Fix system timer oscillator frequency on a Xbox (#2245)
See https://xboxdevwiki.net/Porting_an_Operating_System_to_the_Xbox_HOWTO#Timer_Frequency
2020-01-14 18:47:36 +01:00
disean 7c93350e05 [FREELDR] Cache INT13h drive data in pcdisk.c (#2097)
* [FREELDR] Cache the drive geometry in the PcDiskReadLogicalSectorsCHS()

Speed up the loading time a bit.

* [FREELDR] Generalize the cache to all the geometry data + INT 13h extensions-supported status.

The data structure used is "PC_DISK_DRIVE".

- Adapt the associated functions;
- Make DiskGetExtendedDriveParameters() private to pcdisk.c

- Introduce PcDiskDriveNumberToDrive(), that is similar to the XBOX
  function XboxDiskDriveNumberToDeviceUnit(), that retrieves a valid
  pointer to the cached disk corresponding to the given BIOS DriveNumber.
  If needed the cached data gets initialized.

- Make XboxDiskDriveNumberToDeviceUnit() simpler by just returning the
  pointer to the corresponding drive, of NULL if there is none.

Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-01-14 04:08:53 +01:00
Katayama Hirofumi MZ 11851e1a81
[MSGINA] Improve Japanese status dialog (#2248)
Improve Japanese translation (IDD_STATUS).
2020-01-13 23:01:39 +09:00
Katayama Hirofumi MZ 61737d1b3f
[SHELL32] Improve Japanese folder property sheet (#2247)
Improve Japanese translation.
2020-01-13 22:47:26 +09:00
Katayama Hirofumi MZ bd5681c027
[SHELL32][SHLWAPI] Improve Japanese file property sheet (#2246)
- Improve file property dialog (IDD_FILE_PROPERTIES).
- Translate shlwapi resource into Japanese.
2020-01-13 22:33:50 +09:00
Dmitry Borisov 9a12473280
[FREELDR] Add ATA/ATAPI driver. (#2167)
CORE-16220 CORE-16216

* Create a new driver.
* Use the functions from the library in xboxdisk.c

Driver now supports PC, Xbox and NEC PC-98.

Co-Authored-By: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2020-01-12 21:18:07 +01:00
Eric Kohl 7789ce1ebc [DNSAPI] Answer queries for ip addresses before they are passed to the resolver cache. 2020-01-12 15:15:55 +01:00
Eric Kohl 2c6cba1fc8 [NETCFGX] Notify the installer of changes to the properties 2020-01-12 15:15:54 +01:00
Katayama Hirofumi MZ b41299470b
[WIN32SS][WINSRV] Fullwidth character handling Part 2 (#2240)
Follow-up of #2231. Also fix FillConsoleOutputAttribute, WriteConsoleOutputCharacterW and WriteConsoleOutputAttribute functions.
CORE-12451
2020-01-12 22:04:57 +09:00