Supported TPM 2.0 NV counter provisioning and attestation on Windows
Environment: Windows 10 Home 22H2, build 19045.6466 Intel PTT / TPM 2.0 OSManagedAuthLevel = 5 Standard, non-elevated Windows user TBS communication and TPM2_GetCapability successfully verified We are developing an application that requires…
Windows development | Windows API - Win32
Can a Windows launcher guarantee that pwsh -File opens exactly the pre-checked script file?
I am investigating a Windows launcher that starts PowerShell 7.6.5 via CreateProcessW using pwsh -File. The script file is located on a local NTFS volume. Before CreateProcessW, the launcher opens the script for read, with FILE_SHARE_READ as the only…
Windows development | Windows API - Win32
IPortableDeviceManager::GetDevices output guarantees after a failing HRESULT
I am implementing read-only WPD enumeration on Windows 11 on Arm. This question concerns the native COM contract for IPortableDeviceManager::GetDevices with a caller-managed pointer array. For the fill call, the caller passes a zero-initialized LPWSTR…
Windows development | Windows API - Win32
Windows CloseHandle confirmation and safe release of a file handle before a rename operation
I'm researching Windows file-handle lifecycle semantics for a C++ application that uses a persistence backend. The proposed workflow involves: Creating a file using a Windows handle. Writing data and flushing it to the operating system. Closing the…
Windows development | Windows API - Win32
Windows 11 Authenticode: ESSCertIDv2 binding and RFC 3161 timestamp anomalies in mscorlib.resources.dll
Hello Microsoft engineers and community experts, Microsoft Support referred me to this community for assistance with an independent cryptographic verification of a Windows system component. System information Windows 11 Home Version: 26H2 OS Build:…
Windows development | Windows API - Win32
Windows API Engineering Escalation — CreateDirectory2W reportedly creates directories at redirected destinations despite returning failure
Title: Windows API Engineering Escalation — CreateDirectory2W reportedly creates directories at redirected destinations despite returning failure Priority: Security-sensitive API contract clarification Dear Windows Developer Support Team, I am requesting…
Windows development | Windows API - Win32
Microsoft Software KSP: NCryptOpenKey returns NTE_BAD_KEYSET after successful NCryptFinalizeKey with protected DACL
I am investigating a Windows CNG key-access issue using the Microsoft Software Key Storage Provider on Windows 11. Problem A non-production ECDSA P-256 machine key is successfully created, configured, finalized, and read back using its original key…
Windows development | Windows API - Win32
RealTimeStylus touch contact width and height use different units on different touch screens
I'm building a native Win32 ink application that uses the RealTimeStylus (RTS) COM API (IRealTimeStylus + IStylusSyncPlugin, MultiTouchEnabled = TRUE, SetAllTabletsMode(TRUE)). We also support Windows 7, so we need the touch contact size from RTS itself,…
Windows development | Windows API - Win32
What is the status of subsequent pages in virtual alloc?
I am aware of the fact that VirtualAlloc allocation is aligned to 64kb allocation granularity and it will commit pages of 4kb size. My questions is concerned about what happens to the remaining 15 pages? What is the state of those pages?…
Windows development | Windows API - Win32
Authoritative clarification required — CreateDirectory2W API return semantics and security contract
Title: Authoritative clarification required — CreateDirectory2W API return semantics and security contract Dear Microsoft Windows API Support Team, I am requesting authoritative clarification of the Win32 CreateDirectory2W API contract for a…
Windows development | Windows API - Win32
Can CreateProcessW with PROC_THREAD_ATTRIBUTE_JOB_LIST leave a child outside its job if creation fails or the creator terminates?
We are designing a fail-closed Windows process launcher using CreateProcessW, STARTUPINFOEXW, and PROC_THREAD_ATTRIBUTE_JOB_LIST. Our objective is to ensure that a failed or interrupted process launch cannot leave a surviving child process outside its…
Windows development | Windows API - Win32
MSVC 14.51 runtime compatibility and redistribution for Microsoft Store MSIX desktop apps
We are preparing a commercial x64 Python 3.14 desktop application built with PyInstaller for Microsoft Store distribution using MSIX. Our application has been successfully tested on Windows 10. Our findings: 36 native binaries inspected. Python…
Windows development | Windows API - Win32
Request for Official Supportability Determination — Windows TPM/PCP Per-Signature Human Authorization
Product area: Windows Cryptography Next Generation (CNG), Platform Crypto Provider (PCP), TPM-backed keys and smart card key storage providers. Request type: Security architecture and supported cryptographic behavior clarification. Background We are…
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
Windows 11 Pro 26300.9974 AMD64 – garantiert DuplicateHandle die erste und einzige Installation im Zielprozess?
Guten Tag, wir bitten um eine technische Auskunft zur unterstützten Windows-Plattformsemantik für Windows 11 Pro 26H2, OS-Build 26300.9974, KB5132061, nativ AMD64. Bitte leiten Sie die Anfrage bei Bedarf an den für Windows Object Manager und…
Windows development | Windows API - Win32
Supported completion barrier for interrupted CreateProcessW with PROC_THREAD_ATTRIBUTE_JOB_LIST
Hello, I am seeking authoritative clarification about Windows process-creation and Job Object semantics, specifically when a process creator exits or becomes unavailable while CreateProcessW is in progress. Background We are designing a native Windows…
Windows development | Windows API - Win32
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
NtCreateFile: Is FILE_DIRECTORY_FILE with FILE_OPEN_REPARSE_POINT supported for secure handle-relative directory creation?
Hello Microsoft Windows Filesystem / Object Manager experts, I am designing a security-sensitive directory creation workflow on Windows 11 using native Windows filesystem APIs. Technical context The workflow must create two nested directories beneath an…
Windows development | Windows API - Win32
Supported least-privilege ACL contract for persisted ECDSA keys in Microsoft Software KSP
Environment An isolated Hyper-V Windows test guest, using a LocalService service with its specific enabled/restricted service SID. Machine-scoped persisted ECDSA P-256 key; Microsoft Software Key Storage Provider; Signing usage; ExportPolicy.None. The…
Windows development | Windows API - Win32
Authoritative Windows API clarification requested: can a VOLUME_NAME_NT root path be reopened by user-mode NtCreateFile?
I am seeking an authoritative Windows API contract clarification rather than observed behavior on one machine. For a user-mode Windows desktop application on a local fixed NTFS or ReFS volume: CreateFileW opens the filesystem root directory using the…