6,729 questions

Sort by: Updated
1 answer

Windows AppContainer process fails to start with error 0xC0000142

I need help diagnosing a Windows application startup problem. A Python process exits with error 0xC0000142 (STATUS_DLL_INIT_FAILED) before it produces any output. A simple Python startup test fails with the same error in both an ordinary AppContainer and…

Windows development | Windows API - Win32
asked 2026-11-05T17:57:43.16+00:00
answered 2026-11-05T17:58:59.63+00:00

AI answer

1 answer

NtCreateFile: Supported API contract for secure handle-relative file and directory creation with reparse-point protection

Hello, I am designing a reusable security-sensitive Windows filesystem component and would appreciate clarification from Microsoft Windows Filesystem / Object Manager specialists regarding the officially supported API contract for creating files and…

Windows development | Windows API - Win32
asked 2026-11-03T17:23:47.5566667+00:00
Pavel Poliak 0 Reputation points
commented 2026-11-05T15:18:25.1433333+00:00
Pavel Poliak 0 Reputation points
2 answers

Supported external association between active IME composition and its rendering window

Question We are building an external window-sharing tool. Which supported API combination associates a selected application's current input/composition context with its separate Microsoft IME preedit rendering HWND (or equivalent capturable surface),…

Windows development | Windows API - Win32
asked 2026-10-31T09:46:13.0133333+00:00
paopao 0 Reputation points
commented 2026-11-05T13:33:19.99+00:00
paopao 0 Reputation points
1 answer

Windows 11 26H2 (26300.9818): GetTcpTable2 returns state 0 for a verified listening socket

Windows_TCP_SyntheticResult.txtWindows 11 26H2 build 26300.9818: native IPv4 TCP tables report state 0 for a demonstrably listening synthetic socket Summary I observed an inconsistency between a socket owned by a small standalone Python program and the…

Windows development | Windows API - Win32
asked 2026-11-04T18:05:29.1+00:00
Pask Pask 0 Reputation points
edited a comment 2026-11-05T10:04:35.5533333+00:00
Harry Nguyen (WICLOUD CORPORATION) 525 Reputation points Microsoft External Staff Moderator
2 answers

Windows NTFS — Supported user-mode primitive for no-replace publication of an existing file

I'm researching a Windows application that writes and flushes a staged file, closes its handle, and then publishes the completed file under a destination pathname. The requirements are: Never replace an existing destination. Prevent competing publishers…

Windows development | Windows API - Win32
asked 2026-10-28T14:00:40.3366667+00:00
SkullyHIT Rios 0 Reputation points
commented 2026-11-05T09:42:48.1766667+00:00
Zack Nguyen (WICLOUD CORPORATION) 405 Reputation points Microsoft External Staff Moderator
2 answers

SignTool in SDK BuildTools 10.0.28000.2957: cache-only verification and result evidence

Please identify existing, version-applicable documentation or an independently reviewed implementation record for SignTool distributed through Microsoft.Windows.SDK.BuildTools 10.0.28000.2957. We need clarification on two points before recommending…

Windows development | Windows API - Win32
asked 2026-10-31T02:25:28.4366667+00:00
Peter Zhang 0 Reputation points
commented 2026-11-05T09:40:02.4433333+00:00
Zack Nguyen (WICLOUD CORPORATION) 405 Reputation points Microsoft External Staff Moderator
2 answers

Microsoft Software KSP: exact CNG signing ACE masks and protected DACL enforcement

We need provider-specific technical clarification for the Microsoft Software Key Storage Provider (Software KSP) regarding access control on persisted CNG signing keys. Scenario We intend to provision two separate LocalMachine ECDSA P-256 signing keys,…

Windows development | Windows API - Win32
asked 2026-10-30T16:41:51.5+00:00
Goce Terziev 0 Reputation points
commented 2026-11-05T09:39:19.64+00:00
Zack Nguyen (WICLOUD CORPORATION) 405 Reputation points Microsoft External Staff Moderator
0 answers

How to quickly create asynchronous inks into an InkEdit window based on screen mouse coordinates ?

How to quickly create asynchronous inks into an ActiveX InkEdit window based on screen mouse coordinates ? I am looking for a way to convert the handwriting data coordinates into text and send it to inputs. I managed to capture the coordinates during…

Windows development
Windows development

A set of tools and technologies that enable developers to build, optimize, and deploy applications and services within the Windows ecosystem.

9 questions
asked 2026-11-05T06:26:10.44+00:00
R FranCam 0 Reputation points
2 answers

SetFileInformationByHandle FileRenameInfo returns WinError 87 for same-parent rename

I'm investigating a Windows Win32 file-rename operation using Python 3.13 ctypes. SetFileInformationByHandle with FileRenameInfo (class 3) returns 0, with immediate cached Windows error 87 (ERROR_INVALID_PARAMETER). The goal is to rename an inert…

Windows development | Windows API - Win32
asked 2026-10-30T14:12:41.5433333+00:00
Kyle Russell 0 Reputation points
commented 2026-11-05T06:22:03.7866667+00:00
Percy Nguyen (WICLOUD CORPORATION) 240 Reputation points Microsoft External Staff Moderator
2 answers

Does user-mode NtCreateFile support OBJ_DONT_REPARSE with a directory RootDirectory handle?

I am developing a user-mode Windows application that needs to safely resolve file-system directory entries relative to a trusted parent directory handle, without following unapproved reparse points. I found a potential ambiguity between two Microsoft…

Windows development | Windows API - Win32
asked 2026-10-31T09:12:07.5066667+00:00
동석 이 0 Reputation points
commented 2026-11-05T06:21:01.0866667+00:00
Percy Nguyen (WICLOUD CORPORATION) 240 Reputation points Microsoft External Staff Moderator
3 answers

GetTcpTable2 returns state 0; listener-only GetExtendedTcpTable returned FIN_WAIT_1 on Windows 11 26H2

On Windows 11 Pro 26H2 (previously observed build 26300.9818), x64, I cannot establish a consistent native TCP LISTEN ownership observation for Ollama 0.40.13 at 127.0.0.1:11434. I am asking about supported API semantics, not claiming a proven Windows or…

Windows development | Windows API - Win32
asked 2026-10-30T23:32:17.3+00:00
Arman Nehzomi 0 Reputation points
commented 2026-11-05T06:17:37.88+00:00
Percy Nguyen (WICLOUD CORPORATION) 240 Reputation points Microsoft External Staff Moderator
1 answer

CFAPI / Shell: IFileOperation returns S_OK but leaves empty parent directories after deleting offline placeholders

Summary Deleting a populated cloud-placeholder directory tree through IFileOperation can return S_OK with GetAnyOperationsAborted == FALSE while leaving empty parent directories on disk. Files and leaf directories are removed, but several ancestors…

Windows development | Windows API - Win32
asked 2026-11-04T12:52:40.1733333+00:00
229 ho 60 Reputation points
answered 2026-11-05T04:10:36.4266667+00:00
Gatlin Le (WICLOUD CORPORATION) 1,385 Reputation points Microsoft External Staff Moderator
2 answers

Can Windows Filtering Platform independently verify outbound firewall blocking without network traffic?

We are investigating a supported, read-only method to independently verify Windows Defender Firewall's effective outbound policy for a specific executable. We understand that Get-NetFirewallRule -PolicyStore ActiveStore provides the applicable firewall…

Windows development | Windows API - Win32
asked 2026-10-25T09:54:06.01+00:00
אסף מנגוני 0 Reputation points
commented 2026-11-05T04:04:25.65+00:00
Tony Thach (WICLOUD CORPORATION) 1,445 Reputation points Microsoft External Staff Moderator
2 answers

Supported user-mode NTFS directory flush and durability of newly published name bindings

Subject: Supported user-mode NTFS directory flush and durability of newly published name bindings We are evaluating the durability requirements of a local Windows application running as a standard, non-administrative user on NTFS. The application…

Windows development | Windows API - Win32
asked 2026-11-02T06:30:09.2+00:00
pepe papo 0 Reputation points
commented 2026-11-05T04:03:44.39+00:00
Tony Thach (WICLOUD CORPORATION) 1,445 Reputation points Microsoft External Staff Moderator
2 answers

Supported non-administrative NTFS namespace durability after file replacement and directory creation

Supported non-administrative NTFS namespace durability after file replacement and directory creation Technical clarification request — Windows Filesystem / NTFS Dear Microsoft Windows Filesystem Engineering Team, We are developing a local, offline…

Windows development | Windows API - Win32
asked 2026-11-02T07:27:25.8833333+00:00
pepe papo 0 Reputation points
commented 2026-11-05T04:03:06.0933333+00:00
Tony Thach (WICLOUD CORPORATION) 1,445 Reputation points Microsoft External Staff Moderator
1 answer

Supported Windows DNS Client instrumentation for caller-to-result correlation

On supported Windows 11 releases, is there a documented extension point or provider contract that lets a diagnostic tool correlate a DNS request from an existing desktop process with the result returned through the shared Windows DNS Client resolver? Is…

Windows development | Windows API - Win32
asked 2026-11-04T16:22:48.5366667+00:00
落合 卓也 0 Reputation points
answered 2026-11-05T03:35:14.7366667+00:00
Gatlin Le (WICLOUD CORPORATION) 1,385 Reputation points Microsoft External Staff Moderator
1 answer

CFAPI: CfCreatePlaceholders returns S_OK but creates corrupt placeholders (error 363)

Summary CfCreatePlaceholders can return S_OK, report all entries as processed, and set every per-item Result to S_OK while creating a placeholder that cannot subsequently be opened. CreateFileW then fails with ERROR_CLOUD_FILE_METADATA_CORRUPT (363 /…

Windows development | Windows API - Win32
asked 2026-11-01T06:03:55.5266667+00:00
229 ho 60 Reputation points
edited a comment 2026-11-05T03:26:08.6333333+00:00
Harry Nguyen (WICLOUD CORPORATION) 525 Reputation points Microsoft External Staff Moderator
2 answers

Supported five-DLL VCLibs deployment contract for a PyInstaller/PySide6 desktop MSIX

Hello, What is Microsoft's supported deployment contract for these five runtime DLLs in an x64, full-trust desktop MSIX containing two PyInstaller executables? msvcp140.dll msvcp140_1.dll msvcp140_2.dll vcruntime140.dll vcruntime140_1.dll Our proposed…

Windows development | Windows API - Win32
asked 2026-10-31T15:58:41.1733333+00:00
Prosanta Roy 0 Reputation points
commented 2026-11-05T03:22:42.81+00:00
Harry Nguyen (WICLOUD CORPORATION) 525 Reputation points Microsoft External Staff Moderator
1 answer

Is NtCreateFile with RootDirectory race-safe against concurrent NTFS directory replacement?

We are developing a Windows backup application and need clarification regarding the supported security guarantees of directory-relative file opening on local NTFS volumes. Problem reproduced Our current implementation validates the source directory…

Windows development | Windows API - Win32
asked 2026-11-03T00:46:37.38+00:00
Pedro Miguel 0 Reputation points
commented 2026-11-05T03:21:58.62+00:00
Harry Nguyen (WICLOUD CORPORATION) 525 Reputation points Microsoft External Staff Moderator
1 answer

Supported Win32 LPAC token verification before ResumeThread – Windows 11 26H2 (build 26300.9818)

Title: Supported Win32 LPAC token verification before ResumeThread – Windows 11 26H2 (build 26300.9818) Hello Microsoft Windows Development team, We are developing a security-sensitive Windows process-isolation controller and need to verify that a newly…

Windows development | Windows API - Win32
asked 2026-11-03T11:25:05.4833333+00:00
Pål Bernhardsen 0 Reputation points
commented 2026-11-05T03:18:20.6366667+00:00
Harry Nguyen (WICLOUD CORPORATION) 525 Reputation points Microsoft External Staff Moderator