2140 Commits

Author SHA1 Message Date
Johnny Shaw bd06420275 smooth scrolling tree cell graphs 2026-11-11 11:51:41 -07:00
Johnny Shaw 59b90405d1 smooth anti-aliased graph rendering 2026-11-10 22:19:22 -07:00
dmex aa430b2a46 Update hndlprp.c 2026-11-10 03:15:49 +11:00
dmex 9234172751 Improve UI scaling and DPI-aware list fonts 2026-11-09 20:47:07 +11:00
valère didon 837a50b78b Add current directory column (#3125) 2026-11-08 15:58:15 +11:00
dmex ed3ba96578 Fix version string macro expansion
Stringize the expanded dotted version as a single macro argument so the version components resolve consistently.
2026-11-07 14:05:35 +11:00
dmex 3410f38c05 std::utility 2026-11-05 23:08:39 +11:00
dmex 367816645e Update memsrch.h 2026-11-05 23:00:17 +11:00
dmex 285b9d9856 Update memsrch.h 2026-11-05 23:00:14 +11:00
dmex 09f65160e6 Update phsettings.h 2026-11-05 22:43:24 +11:00
dmex 0a4975a476 Improve thread stack, shadow stack and token UI 2026-11-05 06:34:38 +11:00
dmex cf5c4c28ec Update runas.c 2026-11-04 21:03:52 +11:00
dmex dfd7d916e3 Scale memory results font with DPI 2026-11-04 20:18:03 +11:00
dmex 06b7760969 Replace volatile with explicit acquire/release in memsrch
Remove volatile qualifiers per project rules and use explicit acquire/release accessors for cross-thread reads and writes of the cancel flag, progress counters, result count, window handle and close-dialog flag. This follows the project convention of not using volatile in definitions.
2026-11-04 20:17:33 +11:00
dmex 0bee8b4364 Fix memmod dialog lifetime and add DPI-aware font
Reuse ProcessItem->QueryHandle instead of opening and closing a separate process handle, so the dialog no longer owns the handle.

Fix context teardown ordering: unregister the symbol callback and remove the window context before the final dereference, which may free the context. Use acquire/release accesses for the Destroying flag.
2026-11-04 20:15:47 +11:00
dmex e80dd0a3f0 Fix double startkey and sqlite cleanup
Finalize all statements and close the database so the informer DB is treated as unavailable instead of running partially initialized.

Add sqlite3_finalize/sqlite3_close dynamic imports and PhpInformerCloseDatabase. Rename the misspelled PhpInfomerLoadSQLite to PhpInformerLoadSQLite.

Also remove the extra ProcessStartKey added in PhInformerGetProcessStartKeys for handle messages.
2026-11-04 20:13:55 +11:00
dmex 368c01bf29 Update phapp.h 2026-11-04 20:05:47 +11:00
dmex 6c03982482 Update netsup.h 2026-11-04 16:02:17 +11:00
dmex e72d294085 Update sessprp.c 2026-11-04 02:08:51 +11:00
dmex 0ba9b8293f Update RunAs command parsing
Skip ACEs for inactive logon sessions when updating desktop and window station DACLs, using LsaEnumerateLogonSessions. Grant access to the logon SID instead of the user SID, and treat GENERIC_ALL as already granted for window stations.

PhRunAsExecutionAlias now returns STATUS_NOT_IMPLEMENTED for aliases and STATUS_NOT_FOUND otherwise, so aliases are rejected instead of falling through. Always request PROCESS_QUERY_LIMITED_INFORMATION when opening the parent process.

Replace manual command line splitting and quoting in the run-as-interactive-user and TrustedInstaller paths with PhParseCommandLineFuzzy and PhQuoteCommandLine.
2026-11-04 02:08:09 +11:00
dmex fc47ae13a4 Add thread shadow stack action 2026-11-04 01:58:01 +11:00
dmex 39337befd8 Refresh process current directory 2026-11-04 01:56:40 +11:00
dmex 0c1ec538dc Update netsup.c 2026-11-03 21:30:28 +11:00
dmex 13de1b87fe Fix TCP protocol check in network state sort 2026-11-03 21:29:41 +11:00
dmex 9482a2a069 Update netprv.h 2026-11-03 02:53:34 +11:00
dmex d93fea2343 Update CMakeLists.txt 2026-11-02 22:58:57 +11:00
dmex 16ed916415 Refactor netsup into header; add 7z BCJ2 packaging
SystemInformer: move NSI/NETIO declarations, types and enums from netsup.c into new include/netsup.h (added to vcxproj and filters) prefixed macros/types to Ph*, and make helpers like PhNetioGetAddress, PhNsiDeviceIoControl and PhNsiFillRouteEntry public.

Convert ICMP, RPC connect, adapter order map and compartment scope APIs to return NTSTATUS with out parameters instead of last-error/NULL. Use RtlSIZETMult/RtlULongAdd for overflow checks, PhAllocateZeroSafe with NO_MEMORY handling, and RtlZeroMemory. Add NSI object security SDDL dump. Update netprv.h signatures: Bound TCP table functions now take only an output pointer.

CustomBuildTool: 7z archives now use 7-Zip (BCJ2 for x86/x64 PE images) when available, falling back to archiveint.dll libarchive (LZMA), then SharpCompress (LZMA). Minor cleanups in Utils.cs.
2026-11-02 21:04:42 +11:00
dmex f3aa0ca893 Fix column set saving and treenew params 2026-10-30 18:51:32 +11:00
dmex 65836ceac4 Reuse process item query handle in handle menu 2026-10-30 02:15:14 +11:00
dmex 6fd5746920 Fix thread leak 2026-10-30 02:11:16 +11:00
dmex 0ac6a5b5f2 Fix thread safety and mapped image handling 2026-10-27 22:50:21 +11:00
dmex 048d99232c Fix races, handle reuse, and mapped image faults
H
2026-10-27 22:11:18 +11:00
dmex 3bf6ca1609 Use process item query handle for handle duplication
This avoids an extra open and close of the process handle.
2026-10-27 18:30:07 +11:00
dmex ee58711f59 Fix mapped image header reads with STATUS_IN_PAGE_ERROR
Fix required memory could not be paged in because of an I/O error.
2026-10-27 18:29:09 +11:00
dmex ed85ae435f Fix treenode window and image updates
Drop the cached main window handle when the HWND is no longer valid or no longer belongs to the process, since HWNDs are recycled. The next query then picks up the new main window and clears the stale hung state.
2026-10-27 18:26:47 +11:00
dmex daebf40f7f Update runas.c 2026-10-27 17:52:53 +11:00
nohuto 298c5525ce Fix thread boost state & UserNote boost rule saving (#3078) 2026-10-27 13:24:55 +11:00
dmex 2e896aff36 Add real progress bar to minidump dialog 2026-10-27 12:19:59 +11:00
dmex fdf2a3631a Fix missing NSI netsup cases and enable stubbed code 2026-10-27 11:51:21 +11:00
dmex 11295c6dd9 Fix minidump cancellation synchronization
Move the cancellation flag out of the bitfield and use acquire/release access when reading and writing it. Show the current progress percentage in the cancellation message.
2026-10-27 09:05:22 +11:00
dmex fc73ef0dc5 Reuse cached process QueryHandle in property pages
Replace redundant PhOpenProcess calls in the process properties pages (general, job, threads, token) and run-as dialog with the process item's existing QueryHandle/IsHandleValid, referencing the item where needed. This avoids extra open/close cycles and failure paths.

Also tidy the general page: avoid leaking/auto-releasing the Win32 file name by using PhMoveReference/PhClearReference, disable the secondary open/inspect buttons (IDC_OPENFILENAME2/IDC_INSPECT2) alongside the primary ones, and always focus the permissions button initially.
2026-10-27 08:43:40 +11:00
dmex 37fef06512 Fix process prop sheet wait context lifetime
Deregister the process wait before releasing the owner's reference, so the wait callback can no longer run against a context being deleted. The delete procedure now only asserts that the wait handle is already NULL.

Queued wait entries now hold their own reference, released when the flush processes them. The property sheet teardown also flushes the queue so no entries linger.
2026-10-27 08:38:09 +11:00
dmex e30ed4e05d Reuse cached query handle for priority menu checks 2026-10-27 08:35:49 +11:00
dmex a6f255ec82 Update SystemInformer.def 2026-10-27 05:22:58 +11:00
dmex d40e6e0441 Set VCProjectVersion to 18.0
Define VCProjectVersion as 18.0 in the shared Directory.Build.props so all projects use the same Visual C++ project version.
2026-10-26 13:05:37 +11:00
dmex c27c2eff1a Update mainwndp.h 2026-10-26 13:02:42 +11:00
dmex 8bc474c462 Improve menu, DPI, and UI handling
Improve DirectComposition menu cancellation and shadow behavior, apply suggested window bounds on DPI changes, and process queued main-thread invokes in order. Also centralize window-overlap detection, harden composition-attribute lookup, and register search filters only after the search box is created.
2026-10-26 10:36:31 +11:00
Johnny Shaw e1622f46a2 fix master 2026-10-24 10:51:12 -06:00
Johnny Shaw b059589e4d fix master 2026-10-24 10:10:43 -06:00
Johnny Shaw 9f257e3b76 fix master 2026-10-24 09:59:24 -06:00