3,205 questions

Sort by: Updated
1 answer

Why does MB_RTLREADING mirror a MessageBox on my English Windows?

Hi, I'm showing an error with MessageBoxW and want it to look right for RTL Language users. The docs say MB_RTLREADING "Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems", so I assumed it would do…

Windows development | Windows API - Win32
asked 2026-11-27T13:05:18.75+00:00
Rohan Pande 535 Reputation points
commented 2026-11-28T11:09:06.5666667+00:00
Viorel 127.2K Reputation points
0 answers

Kan een Windows-launcher garanderen dat pwsh -File exact het vooraf gecontroleerde scriptbestand opent?

Ik onderzoek een Windows-launcher die PowerShell 7.6.5 via CreateProcessW start met pwsh -File. Het scriptbestand staat op een lokaal NTFS-volume. Vóór CreateProcessW opent de launcher het script voor lezen, met FILE_SHARE_READ als enige shareflag. Hij…

Windows development | Windows API - Win32
asked 2026-11-27T17:50:57.5066667+00:00
Vincent Hurenkamp 0 Reputation points
1 answer

Is there a supported way to map a Windows Sandbox ID to its host window or client process?

I’m building a local Windows tool that needs to identify the host-side remote desktop window for a specific Windows Sandbox session. My environment is Windows 11 on ARM64 with Windows Sandbox package version 0.8.114.0. The CLI documentation says that wsb…

Windows development | Windows API - Win32
asked 2026-11-27T16:50:41.3666667+00:00
Vancsisin László 0 Reputation points
answered 2026-11-27T16:51:49.8933333+00:00

AI answer

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-11-27T14:53:27.75+00:00
俊賢 何 0 Reputation points
0 answers

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 265 Reputation points
edited the question 2026-11-27T13:53:24.1066667+00:00
RL Chen 265 Reputation points
1 answer

WM_DDE_INITIATE not forwarded by DefSubclassProc to 32-bit ANSI window procedure

On Windows 11 25H2 build 26200.9974, a controlled test with two 32-bit ANSI windows shows different handling of WM_DDE_INITIATE when SetWindowSubclass is used. Reproduction: Create two otherwise equivalent ANSI windows in a 32-bit process and subclass…

Windows development | Windows API - Win32
asked 2026-11-23T17:35:56.63+00:00
Christophe Carron 0 Reputation points
commented 2026-11-27T11:46:28.2633333+00:00
Christophe Carron 0 Reputation points
0 answers

Windows 11 Win32: can the actual process primary token have a protected DACL at creation?

For a third-party Win32 service running as LocalSystem under the Service Control Manager (SCM) on Windows 11 x64, I am looking for a supported way to give both a controller process and its actual assigned primary access token explicit DACLs marked…

Windows development | Windows API - Win32
asked 2026-11-27T11:31:41.0733333+00:00
Win32 API Developer 0 Reputation points
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-11-27T10:40:17.03+00:00
Taki Ly (WICLOUD CORPORATION) 5,885 Reputation points Microsoft External Staff Moderator
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-11-27T10:40:16.3966667+00:00
Taki Ly (WICLOUD CORPORATION) 5,885 Reputation points Microsoft External Staff Moderator
1 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
asked 2026-11-20T17:40:53.0966667+00:00
ilan golan 0 Reputation points
commented 2026-11-27T10:03:18.8+00:00
ilan golan 0 Reputation points
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
answered 2026-11-27T09:15:51.3966667+00:00
Harry Nguyen (WICLOUD CORPORATION) 945 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
commented 2026-11-27T08:55:06.5466667+00:00
Gatlin Le (WICLOUD CORPORATION) 1,595 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-11-27T08:55:00.41+00:00
Gatlin Le (WICLOUD CORPORATION) 1,595 Reputation points Microsoft External Staff Moderator
1 answer

Windows TPM 2.0 Platform Crypto Provider — Enforcing Fresh User Consent for Every RSA-PSS Signature

Technical context I am designing a security-sensitive transaction authorization mechanism using a local Windows workstation and a TPM-backed signing key. The signed transactions will be independently verified by Linux-based workloads using standard JWS…

Windows development | Windows API - Win32
asked 2026-11-26T19:20:37.42+00:00
Mohanad Al Soloh 0 Reputation points
edited an answer 2026-11-27T04:02:18.2666667+00:00
Percy Nguyen (WICLOUD CORPORATION) 320 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
edited an answer 2026-11-27T03:42:02.22+00:00
Zack Nguyen (WICLOUD CORPORATION) 485 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-11-27T03:33:12.4566667+00:00
Nguyen Dam (WICLOUD CORPORATION) 1,830 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-11-27T03:30:54.1966667+00:00
Tony Thach (WICLOUD CORPORATION) 1,465 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-20T06:26:12.3233333+00:00
GOVIND SINGH 0 Reputation points
commented 2026-11-27T02:21:25.32+00:00
Gatlin Le (WICLOUD CORPORATION) 1,595 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-11-19T22:30:22.3233333+00:00
Jeremiah ‎DiPilato 0 Reputation points
commented 2026-11-27T02:05:36.0433333+00:00
Gatlin Le (WICLOUD CORPORATION) 1,595 Reputation points Microsoft External Staff Moderator
1 answer

Supported Windows 11 integration for remote assistance at the physical console lock screen

We develop a signed Windows desktop app for remote assistance. An administrator installs its service and explicitly enables unattended access on the device. An authorized operator connects to the physical console through an outbound Internet connection.…

Windows development | Windows API - Win32
asked 2026-11-23T12:41:12.69+00:00
Javi Piqueras 0 Reputation points
commented 2026-11-27T00:08:49.8633333+00:00
Nancy Vo (WICLOUD CORPORATION) 8,240 Reputation points Microsoft External Staff Moderator