CreateProcessW with JOB_LIST: guaranteed outcome if creator dies before PROCESS_INFORMATION is returned?
Environment: Windows Server 2025 x64 (AMD64), Win32 desktop APIs. I am looking for clarification of the supported Windows API contract when a process creating another process terminates unexpectedly inside CreateProcessW, before receiving a return value…
Windows development | Windows API - Win32
Job object CPU rate control HARD_CAP: scheduling interval length and how to observe interval boundaries
I am trying to verify, with evidence, that a job object configured with JOB_OBJECT_CPU_RATE_CONTROL_ENABLE | JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP and CpuRate = 2500 never uses more than 25% of processor cycles in any scheduling interval. The job has no…
Windows development | Windows API - Win32
Supported user-mode NtCreateFile handle-relative directory traversal with reparse rejection and ancestor stability
Background I am evaluating a read-only user-mode Windows file acquisition mechanism for a fixed allowlist of regular files on a local NTFS volume. The objective is to open each pathname component relative to a previously validated directory handle,…
Windows development | Windows API - Win32
AI answer
Does Windows 11 26H2 allow TPM2_NV_Extend through TBS for a virtual service account?
On Windows 11 26H2 (OS build 26300.10075, tpm.sys file version 10.0.26100.9549), the TPM lists TPM2_NV_Extend (0x00000136) in its TPM2_GetCapability response for TPM_CAP_COMMANDS. I am considering a Windows service running under its own virtual account,…
Windows development | Windows API - Win32
Windows 11 PSEC API returns 0x80070002 under session-0 batch logon — request for Windows engineering guidance.
Hello, I'm requesting technical guidance regarding the native Windows CreateProcessSecurityEnvironment API, exported by processmodel.dll. We previously submitted a detailed investigation to the Microsoft MXC…
Windows development | Windows API - Win32
Does user-mode NtCreateFile support OBJ_DONT_REPARSE with RootDirectory for secure directory creation on Windows 11?
Dear Microsoft Windows Developer Support Team, We are designing a local Windows service architecture that requires secure creation of a new directory inside an existing, verified filesystem directory. Our target environment is Windows 11 Home 26H2, x64,…
Windows development | Windows API - Win32
Which OS version the system started pushing this WM_SETTINGCHANGE window message
When our app runs on a tablet, it is displayed in full-screen mode. The tablet comes with a docking station, and users can detach the tablet from the dock during use. Recently, due to changes in a specific OS version, the system pushes a WM_SETTINGCHANGE…
Windows development | Windows API - Win32
Supported Windows PowerShell 5.1 bootstrap in zero-capability LPAC with a private read-only registry view
We need to run the existing, unmodified x64 Windows PowerShell executable and its native PowerShell child inside LPAC with zero capabilities. The LPAC process exits before our script begins, reporting: “Cannot open registry key…
Windows development | Windows API - Win32
Windows 11: TBS service missing with Error 1060 while TPM 2.0 is healthy
I am developing a Windows ERP security component that requires supported TPM 2.0 NV read/increment operations for monotonic anti-rollback protection. The TPM itself is healthy and ready, but: sc.exe qc TBS returns Error 1060: The specified service does…
Windows development | Windows API - Win32
GetTokenInformation(TokenIsLessPrivilegedAppContainer) returns error 87 on Windows 11 26H2
I'm investigating how to verify that a newly created child process is running as a Less Privileged AppContainer (LPAC) before calling ResumeThread. Environment Windows 11 26H2, build 26300.9457, running in a Hyper-V guest. Standard non-elevated…
Windows development | Windows API - Win32
Defender MpScanStart and proof of exact-file inspection and scan settlement
For an unelevated Windows desktop application scanning one harmless staged local file with Microsoft Defender Antivirus, is there a supported API or event that establishes which file revision was inspected and whether inspection was complete or the item…
Windows development | Windows API - Win32
Windows 11: Job Object inheritance when the creator terminates inside CreateProcessW
We are reviewing the supported Win32 process lifecycle guarantees for the following scenario. A trusted process S is already a verified member of an outer Job Object J_G before it is permitted to create untrusted child processes. J_G has…
Windows development | Windows API - Win32
CreateProcessW + JOB_LIST: child lifetime if the caller terminates before the API returns
I am seeking clarification of the supported Windows API contract for one process-lifetime scenario. No orphaned process has been observed or reproduced; this is a documentation question. Assume the following valid setup: A user-mode caller creates an…
Windows development | Windows API - Win32
Does Windows 11 support exact-version activation for full-trust desktop MSIX?
On Windows 11 x64, a normal non-elevated desktop caller independently authorizes PackageFullName A and a manifest Application ID for a registered full-trust desktop MSIX staged in Windows-managed storage, with package integrity enforcement intended. The…
Windows development | Windows API - Win32
Is there a documented or configurable timeout for blocking Win32 print spooler APIs (OpenPrinter, WritePrinter, etc.) with network printers?
We use the Win32 print spooler APIs (OpenPrinter / OpenPrinter2W, StartDocPrinter, WritePrinter, GetPrinter, EnumPrinters, ClosePrinter) in a desktop application that works with network printers. The OpenPrinter documentation says that calls to a remote…
Windows development | Windows API - Win32
Windows 11 NTFS: SE_SACL_PROTECTED stays enabled after removing audit rule
Environment Windows 11, build 26300, NTFS. Elevated Windows PowerShell 5.1. SeSecurityPrivilege available in the elevated session. Security auditing enabled for File System. Problem I need to restore the original SACL inheritance protection state of an…
Windows development | Windows API - Win32
Why does Windows decode AVIF 4:4:4 with matrix_coefficients=0 correctly at 8 bpc but incorrectly at 10/12 bpc?
Question Why does the Windows AVIF decoder handle matrix_coefficients = 0 (MC_IDENTITY, full range) correctly at 8 bits per channel, but produce wrong colours at 10 and 12 bpc? Is the identity path above 8 bpc simply not implemented, or is there a…
Windows development | Windows API - Win32
Is a classic kernel Process End timestamp guaranteed to be no later than the process becoming signaled?
I am reviewing a preserved trace from a synthetic process lifecycle experiment. Does Windows provide a documented guarantee that the raw ETW Process End timestamp is no later than the instant when the corresponding process object becomes signaled? Please…
Windows development | Windows API - Win32
GetTokenInformation(TokenHasRestrictions): supported output type, valid bytes and applicability on Windows 11 25H2 x64 build 26200.9457
We are seeking an authoritative API-contract clarification, not asking to bypass a failed security check. The TOKEN_INFORMATION_CLASS documentation describes TokenHasRestrictions (class 21) as returning a DWORD. An existing saved invocation on the target…
Windows development | Windows API - Win32
Which Defender API confirms inspection of a specific file revision and when callbacks have finished?
For Microsoft Defender Antivirus platform 4.18.26100.4-0, which supported local API can an unelevated Windows desktop app use to determine whether Defender inspected the exact file revision it submitted? MpScanStart documents scan completion,…