3,212 questions

Sort by: Updated
2 answers

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
asked 2026-11-26T15:39:40.6766667+00:00
俊賢 何 0 Reputation points
commented 2026-12-02T06:07:22.4533333+00:00
Nguyen Dam (WICLOUD CORPORATION) 1,910 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

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
asked 2026-11-27T17:50:57.5066667+00:00
Vincent Hurenkamp 20 Reputation points
commented 2026-12-02T03:51:48.21+00:00
Harry Nguyen (WICLOUD CORPORATION) 1,025 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-11-26T22:31:54.37+00:00
Vancsisin László 0 Reputation points
commented 2026-12-02T03:49:52.14+00:00
Zack Nguyen (WICLOUD CORPORATION) 565 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-12-01T15:13:02.12+00:00
SkullyHIT Rios 0 Reputation points
answered 2026-12-02T03:36:05.7433333+00:00
Harry Nguyen (WICLOUD CORPORATION) 1,025 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-27T07:33:31.3766667+00:00
丞翔 11王 0 Reputation points
edited a comment 2026-12-02T03:30:03.0266667+00:00
Harry Nguyen (WICLOUD CORPORATION) 1,025 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-12-02T00:54:14.74+00:00
Shahrullah bin Solpian 0 Reputation points
edited an answer 2026-12-02T03:22:54.7566667+00:00
Gatlin Le (WICLOUD CORPORATION) 1,760 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-24T17:43:12.7033333+00:00
Agnel Vanjare 0 Reputation points
commented 2026-12-02T03:02:18.1333333+00:00
Gatlin Le (WICLOUD CORPORATION) 1,760 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

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
asked 2026-11-26T08:24:31.72+00:00
RL Chen 285 Reputation points
accepted 2026-12-01T23:59:47.89+00:00
RL Chen 285 Reputation points
2 answers

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
asked 2025-08-20T13:17:53.9966667+00:00
Gurkirat Singh 60 Reputation points
answered 2026-12-01T13:34:25.07+00:00
Gurkirat Singh 60 Reputation points
2 answers

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
asked 2026-12-01T09:44:56.3133333+00:00
Shahrullah bin Solpian 0 Reputation points
answered 2026-12-01T10:58:11.71+00:00
Gatlin Le (WICLOUD CORPORATION) 1,760 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-12-01T04:52:54.15+00:00
Jigar 0 Reputation points
answered 2026-12-01T07:19:14.03+00:00
Harry Nguyen (WICLOUD CORPORATION) 1,025 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-29T21:26:34.8866667+00:00
Danzell Cloete 0 Reputation points
edited an answer 2026-12-01T06:12:09.53+00:00
Percy Nguyen (WICLOUD CORPORATION) 320 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-11-30T08:52:08.08+00:00
Mohanad Al Soloh 0 Reputation points
edited an answer 2026-12-01T06:10:21.0766667+00:00
Harry Nguyen (WICLOUD CORPORATION) 1,025 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-11-20T15:36:53.13+00:00
DJones 0 Reputation points
commented 2026-12-01T04:13:56.4933333+00:00
Gatlin Le (WICLOUD CORPORATION) 1,760 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-11-23T20:38:03.8666667+00:00
daniel täuber 0 Reputation points
edited a comment 2026-12-01T04:06:53.2266667+00:00
Gatlin Le (WICLOUD CORPORATION) 1,760 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-24T09:56:04.5566667+00:00
CiS 0 Reputation points
commented 2026-12-01T03:17:46.7433333+00:00
Tony Thach (WICLOUD CORPORATION) 1,545 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

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
asked 2026-11-21T00:13:23.83+00:00
ThanhTrung 20 Reputation points
accepted 2026-12-01T02:41:51.8166667+00:00
ThanhTrung 20 Reputation points
1 answer

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
asked 2026-11-23T16:17:05.4666667+00:00
Joseph Kiyengui 0 Reputation points
commented 2026-12-01T02:38:02.01+00:00
Taki Ly (WICLOUD CORPORATION) 5,885 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-22T00:32:17.4+00:00
Marco Silveira 0 Reputation points
commented 2026-12-01T02:37:52.2366667+00:00
Taki Ly (WICLOUD CORPORATION) 5,885 Reputation points Microsoft External Staff Moderator
2 answers

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…

Windows development | Windows API - Win32
asked 2026-11-18T06:15:16.2933333+00:00
Ashish Sharma 0 Reputation points
commented 2026-12-01T01:37:00.0233333+00:00
Nguyen Dam (WICLOUD CORPORATION) 1,910 Reputation points Microsoft External Staff Moderator