Commit Graph

447 Commits

Author SHA1 Message Date
Igor Pissolati
7fef4ebc24 Handle TokenGroups in NtQueryInformationToken 2025-04-23 18:22:06 -03:00
Igor Pissolati
44fcc9970d Fix failing checks 2025-04-23 01:51:37 -03:00
Igor Pissolati
134b45d1e8 Fix vm crash when teb.ThreadLocalStoragePointer is null 2025-04-23 01:16:31 -03:00
Igor Pissolati
39d40a7f2f Simplify TimeZone query fix 2025-04-23 01:14:35 -03:00
Igor Pissolati
8dfcf2755c Add stub for NtAreMappedFilesTheSame and modify NtSetInformationKey to return success 2025-04-23 01:03:42 -03:00
Igor Pissolati
16e7cac48a Retry loading using normal path when wow6432node path is not found 2025-04-23 01:00:30 -03:00
robert-yates
b2296930d3 prepare 32bit support with name and class inheritance modifications 2025-04-22 12:01:40 +02:00
Maurice Heumann
1b9e114737 Improvements to locale syscalls, fix TimeZone query and add more syscalls (#223)
This PR aims to do the following:
- Add the `NtUserGetAtomName` syscall.
- Add stub handlers for `NtUserSetWindowsHookEx`,
`NtUserUnhookWindowsHookEx`, and `NtUserCreateWindowEx`.
- Implement `NtGetNlsSectionPtr` (for Code Pages), add
`NtQueryDefaultUILanguage`, and improve `NtQueryInstallUILanguage`.
- Handle `SystemTimeZoneInformation`,
`SystemCurrentTimeZoneInformation`, and
`SystemDynamicTimeZoneInformation` in `NtQuerySystemInformation`.
- Skip `ThreadAffinityMask` in `NtSetInformationThread`.
- Fix `NtConnectPort` to allow TimeZone queries to work properly. This
is probably the most problematic change here because it required messing
with the shared section and hardcoding an offset (2504). Initializing
the data in this offset seems necessary for calls like
`GetTimeZoneInformation` to succeed, so maybe there's no other way
around it.
2025-04-22 09:08:42 +02:00
Igor Pissolati
8970c4b1e6 Fix x86 build (again) 2025-04-22 03:54:13 -03:00
Igor Pissolati
b5abcce65d Fix NtUserGetAtomName signature 2025-04-22 03:45:52 -03:00
Igor Pissolati
657bf6121a Apply suggested changes 2025-04-22 03:44:45 -03:00
Igor Pissolati
5f2c15e642 Fix x86 build 2025-04-22 02:51:19 -03:00
Igor Pissolati
bd8818c335 Fix failing checks 2025-04-22 02:35:54 -03:00
Igor Pissolati
7e93f5d7f6 Improvements to locale syscalls and fix TimeZone query 2025-04-22 01:48:52 -03:00
Igor Pissolati
08098da538 Skip ThreadAffinityMask in NtSetInformationThread 2025-04-22 01:25:15 -03:00
Igor Pissolati
039b276fb7 Add 3 new syscall stubs 2025-04-22 01:23:27 -03:00
Igor Pissolati
6deefb932f Add NtUserGetAtomName syscall 2025-04-22 01:19:05 -03:00
Igor Pissolati
927d7fcd27 Merge branch 'pr/3' of https://github.com/Igoorx/emulator into pr/3 2025-04-21 21:53:38 -03:00
Igor Pissolati
b40cfa2bed Apply suggested changes 2025-04-21 21:52:40 -03:00
Igor Pissolati
c59002e263 Fix null dereference issue 2025-04-20 18:34:20 -03:00
Igor Pissolati
7dbf498ea9 Fix clang-tidy warning (attempt 2) 2025-04-20 17:08:54 -03:00
Igor Pissolati
5eba6d5e8d Fix clang-tidy warning 2025-04-20 16:44:12 -03:00
Igor Pissolati
140d1dd5b3 Fix failing checks 2025-04-20 16:26:08 -03:00
Igor Pissolati
763b8fc760 Improvements to registry syscalls 2025-04-20 16:09:04 -03:00
Igor Pissolati
317d90d7d8 Merge branch 'main' into pr/1 2025-04-20 01:34:06 -03:00
Igor Pissolati
e74b1dad5a Fix formatting (attempt 2) 2025-04-19 17:23:03 -03:00
Igor Pissolati
8e48793f47 Fix formatting 2025-04-19 17:12:41 -03:00
Igor Pissolati
d8f8bd07f9 Fix failed check 2025-04-19 17:12:27 -03:00
Igor Pissolati
c702bedaee Add 3 new syscall handlers 2025-04-19 16:33:34 -03:00
Igor Pissolati
5d19803020 Fix NtOpenSection 2025-04-19 16:29:47 -03:00
Igor Pissolati
88a744a756 Hopefully fix formatting 2025-04-19 15:29:17 -03:00
Igor Pissolati
09b25d8c89 Fix NtDeleteAtom signature 2025-04-19 15:18:26 -03:00
Igor Pissolati
6b1df674ab Fix non-windows builds 2025-04-19 15:07:12 -03:00
Igor Pissolati
3dfad0f789 Add more atom-related syscalls 2025-04-19 13:52:13 -03:00
momo5502
baca3ce0f9 Always print errors 2025-04-18 11:29:40 +02:00
momo5502
31906fef2d Throw detailed exception 2025-04-18 08:30:41 +02:00
momo5502
4ac8d853a6 Always use static socket factory for emscripten 2025-04-18 08:15:17 +02:00
momo5502
c1553ad2ec Fixes for emscripten 2025-04-17 19:40:20 +02:00
momo5502
1959f94c39 Support logging for emscripten 2025-04-17 18:54:16 +02:00
momo5502
68022ef501 Fixes 2025-04-14 20:16:24 +02:00
Maurice Heumann
91c7ce43a1 Fix reading unicode strings 2025-04-14 15:03:16 +02:00
Maurice Heumann
f3caea91de Fix remaining structs 2025-04-14 15:03:05 +02:00
Maurice Heumann
0e9cffa5cb More 32 bit fixes 2025-04-14 14:34:06 +02:00
Maurice Heumann
00084e8ad0 Some fixes 2025-04-14 13:57:56 +02:00
Maurice Heumann
a6dd9251b8 Prepare 32 bit support 2025-04-14 13:57:54 +02:00
RektInator
acae9ff610 fix: fix parameters for NtQueryVirtualMemory in syscalls.cpp 2025-04-14 13:05:40 +02:00
RektInator
af26c8de61 fix: resolve comments, comment unused parameter in section.cpp 2025-04-14 13:00:36 +02:00
RektInator
e41a3be497 fix: comment unused parameter names 2025-04-14 12:56:09 +02:00
RektInator
6379370a50 fix(syscalls): fix VirtualQuery return size, ignore unimplemented APC flags and log a warning. 2025-04-14 12:43:11 +02:00
RektInator
7bf0b67167 wip 2025-04-14 12:23:08 +02:00