Commit Graph

4499 Commits

Author SHA1 Message Date
dmex b65500c470 Update symprv.c 2026-05-21 05:03:28 +10:00
dmex 7fd2fb1988 Update nativepipe.c 2026-05-21 04:45:12 +10:00
dmex a37f955d48 Add ReturnLength to file info query APIs 2026-05-21 04:44:45 +10:00
dmex 444e5e03e8 Add ARM64 random number helper 2026-05-19 02:09:11 +10:00
dmex 43186f04d8 Scope /Gz to C/C++ and add nativesession.c
Use a generator expression ($<$<COMPILE_LANGUAGE:C,CXX>:/Gz>) so the MSVC /Gz (stdcall) compiler flag is applied only for C and C++ compilations. This avoids injecting the option for other languages.
2026-05-18 15:11:04 +10:00
dmex 0b2104b7ed Multiple fixes, typos and enhancements 2026-05-18 13:22:48 +10:00
OrbisAI Security 12d69f4ee0 fix memcpy in phlib/nativefile.c (#2910) 2026-05-18 02:30:00 +10:00
dmex 1263ae4d44 Update guisup.c 2026-05-17 21:08:48 +10:00
dmex d6e26981da Add PhGetProcedureAddressT macro 2026-05-17 11:47:21 +10:00
dmex ec4e0d583e Use raw exit code in ExitProcess_Stub
Stop converting the DOS error to an NT status before calling PhExitApplication in ExitProcess_Stub; pass the original uExitCode directly. This removes the PhDosErrorToNtStatus conversion which could produce an incorrect value and aligns the call with PhExitApplication's expected parameter.
2026-05-17 11:44:15 +10:00
dmex 82e36a96b3 Update phbasesup.h 2026-05-16 16:24:10 +10:00
dmex fc2518bae7 Add support for PH_CREATE_PROCESS_SET_LOGON_ID flag 2026-05-16 16:11:50 +10:00
dmex 09d21bb3b1 Update graph.c 2026-05-16 16:09:21 +10:00
dmex 3ca091fd92 Add size_t conversion helpers 2026-05-16 02:50:15 +10:00
Johnny Shaw 96db9dbdd5 make _Enum_is_bitflag_ SAL placement consistent with SDK 2026-05-12 17:11:16 -06:00
dmex 045deecae4 Use DefaultPlatformToolset across projects 2026-05-12 13:19:46 +10:00
dmex edff23a5fc Add PhHttpDownloadUrl and callbacks 2026-05-12 07:17:24 +10:00
dmex 686a328413 Handle property-sheet WM_DPICHANGED and add tab-control layout helper 2026-05-11 18:46:14 +10:00
dmex f6aba94465 Add WindowDpi to treelist draw struct 2026-05-11 10:15:21 +10:00
dmex 96b6df5ff8 Cache per-graph fonts and handle DPI
Introduce per-graph cached fonts and DPI tracking to avoid global font handle replacement across windows. Replace the previous global queued-lock/lastDpi/iconTitleFont approach with per-drawinfo caching, and ensure graph contexts free their cached fonts on destroy. When copying draw-info between users, only copy the public prefix using FIELD_OFFSET to avoid copying cache fields. Also fix font height adjustments to use PhMultiplyDivideSigned.
2026-05-11 08:25:58 +10:00
dmex 0c92e9ec04 Use actual bitmap size when drawing menu icons 2026-05-10 15:04:45 +10:00
dmex 6debb84c88 Add Base64 encoder/decoder 2026-05-10 15:01:00 +10:00
dmex d4c5fa793a Add PhValidSecurityDescriptor 2026-05-10 14:39:10 +10:00
dmex 77e5428494 Fix painting region coordinates 2026-05-10 14:39:10 +10:00
dmex a41207921d Update phnative.h 2026-05-09 16:31:03 +10:00
dmex 251cd35c41 Add PhGetSystemDpiForProcess and DPI defaults 2026-05-09 16:27:06 +10:00
dmex decd0c9e93 Add nativesession.c to the phlib VS project 2026-05-09 15:32:06 +10:00
dmex 484960305c Replace WinStation with nativesession.c 2026-05-09 14:55:08 +10:00
dmex 155a1ea7ec Add dynamic import for SetCoalescableTimer 2026-05-09 14:52:39 +10:00
dmex be22f57f39 Add Alt-to-NT separators 2026-05-07 03:52:35 +10:00
dmex 2ef762fd90 #2904 2026-05-07 00:54:04 +10:00
dmex f7fb8a3657 Update guisup.h 2026-05-05 23:02:36 +10:00
dmex 607815f5a5 Add SAL annotations for PhGetLastError 2026-05-05 21:49:40 +10:00
dmex b4f29c6ed9 Add WinStation session wrappers 2026-05-05 21:37:44 +10:00
dmex 9326b3f85e Update native.c 2026-05-05 21:36:32 +10:00
dmex aa965164a2 Add PhEnableHighResolution and rename setting 2026-05-05 21:36:06 +10:00
dmex f9d77e5cb7 Assert non-negative oldRefCount
Add an assert in PhReferenceObjectEx to ensure the previous reference count (oldRefCount) is >= 0 after the interlocked add. This debug-time check helps detect reference-count underflow issues during development.
2026-05-05 21:08:20 +10:00
dmex c0cbbb8f84 Use InsertTailListNoFence when adding modules 2026-05-05 21:07:58 +10:00
dmex c2d350be3f Update extlv.c 2026-05-05 21:06:16 +10:00
dmex 6fcba3ff83 Update extlv.c 2026-05-05 21:06:16 +10:00
dmex 671509c799 Update guisup.c 2026-05-05 21:06:16 +10:00
Zack-src 24cc2560ac guisup: skip background erasure on combobox selection invalidation (#2900) 2026-05-05 20:57:04 +10:00
Zack-src a76541e6cf extlv: suppress repaints during column auto-size pass (#2899) 2026-05-05 20:56:23 +10:00
Zack-src b47d9f3bef filepool: replace PhAllocate+memset pairs with PhAllocateZero (#2898) 2026-05-05 20:55:39 +10:00
dmex d815832155 Update secwmi.h 2026-05-05 20:41:39 +10:00
dmex 7adde6c40f Use object-type enum for handle name resolution
Introduce a mapping from object type indices to PH_HANDLE_OBJECT_TYPE and lazy-initialize it (PhEnsureHandleObjectTypeTable). Add helpers PhGetHandleObjectType, PhIsObjectTypeIndex and PhGetObjectTypeNameEx. Refactor PhpGetBestObjectName to switch on the enum instead of doing repeated string comparisons, simplify per-type name resolution and update many type-specific query/duplication paths. Adjust PhGetObjectBasicInformation pointer/handle count corrections to account for Windows version differences, and update PhGetHandleInformationEx to accept/use ObjectTypeNumber for more reliable decisions when fetching names.
2026-05-05 20:41:05 +10:00
dmex 6a11529cc1 Refactor DPI/scalable settings and add MI support 2026-05-05 20:32:46 +10:00
dmex 2d2cd86060 Add MI-based WMI support and misc fixes 2026-05-05 20:27:26 +10:00
dmex c8dc047e69 Update util.c 2026-05-05 20:24:27 +10:00
dmex d565127f37 Fix variable name for defaulted SACL in PhGetSaclSecurityDescriptor 2026-05-04 19:12:05 +00:00