3,093 questions with Windows development | Windows API - Win32 tags

Sort by: Updated
1 answer

What generic access-rights mapping applies to NCrypt keys in the Microsoft Software Key Storage Provider?

Subject: Generic access-rights mapping for NCrypt persisted keys in Microsoft Software Key Storage Provider I am implementing security-descriptor verification for a user-scoped RSA signing key persisted through the Microsoft Software Key Storage…

Windows development | Windows API - Win32
asked 2026-10-25T01:10:50.1866667+00:00
Mathieu Carlson 0 Reputation points
answered 2026-10-25T01:11:57.9166667+00:00

AI answer

0 answers

CfUpdatePlaceholder returns 0x80070179 with a positive UpdateUsn despite matching observed USN and IN_SYNC

I am developing a Windows Cloud Files API provider and need a supported way to identify which check rejects a remote update of an already hydrated, clean placeholder. The update supplies a positive original file USN to preserve the race protection…

Windows development | Windows API - Win32
asked 2026-10-24T19:49:13.1366667+00:00
Adrian Llames 0 Reputation points
0 answers

CreateAppContainerProfile under cross-user impersonation fails at firewall registration with 0x80070005

We are developing a Windows application that uses AppContainer to run application workloads with fewer permissions. We are testing the documented provisioning APIs in an isolated VM under our control, using synthetic local accounts. Our goal is to…

Windows development | Windows API - Win32
asked 2026-10-24T14:07:27.8466667+00:00
1 answer

Does Windows Job Object termination provide a documented finite cleanup bound and reliable completion barrier?

Title: Does Windows Job Object termination provide a documented finite cleanup bound and reliable completion barrier? Hello Windows API Engineering Community, I am evaluating Windows Job Objects for a security-sensitive process-containment architecture…

Windows development | Windows API - Win32
asked 2026-10-24T09:02:38.5466667+00:00
mehdi ravan 0 Reputation points
answered 2026-10-24T09:04:21.6266667+00:00

AI answer

2 answers

CIMWin32 query timeout: how can we correlate provider completion with client receipt?

We are investigating a local CIMWin32 query timeout using PowerShell 7.6.5 on Windows. Query configuration: Cmdlet: Get-CimInstance Namespace: root/cimv2 Class: Win32_Process Filter: ProcessId=<target PID>, with the numeric PID supplied by our…

Windows development | Windows API - Win32
asked 2026-10-21T06:14:22.6133333+00:00
Firas 0 Reputation points
commented 2026-10-24T04:58:58.27+00:00
Firas 0 Reputation points
2 answers

Can WER LocalDumps be disabled for one executable without affecting other applications?

I need to establish, before running x64 MSVC cl.exe on Windows 11, that WER LocalDumps will not collect a dump for it. A completed read-only inspection of the 64-bit registry view found: HKLM\SOFTWARE\Microsoft\Windows\Windows Error…

Windows development | Windows API - Win32
asked 2026-10-23T20:03:39.2833333+00:00
ClientCueAI 0 Reputation points
answered 2026-10-24T01:29:44.5766667+00:00
ClientCueAI 0 Reputation points
2 answers

Dokumentierter ETW-Nachweis für Named-Pipe-Handle, Endpoint und I/O-Completion unter Windows 11 x64 — begrenzte Frage zu FileIo / OpEnd

Guten Tag, für eine isolierte Windows-QA-Umgebung prüfen wir einen begrenzten Nachweisweg für die Named-Pipe-Kommunikation genau festgelegter Testprozesse. Wir möchten keine Vollüberwachung des Betriebssystems und keine undokumentierten Hooks, sondern…

Windows development | Windows API - Win32
asked 2026-10-23T08:45:24.11+00:00
Jann Heck 0 Reputation points
answered 2026-10-23T17:10:16.2933333+00:00
Jann Heck 0 Reputation points
1 answer

Converts pen hovering mode to pen in contact and pen down mode globally

PC lenovo thinkpas yoga l380 windows 10 64-bit. I search a way to converts pen hovering mode to pen in contact/pen down mode. That means, pen works like a touch mode while it's hovering on the screen. No need to make contact with the screen to click or…

Windows development | Windows API - Win32
asked 2026-10-23T16:01:15.2133333+00:00
R FranCam 0 Reputation points
answered 2026-10-23T16:02:57.01+00:00

AI answer

1 answer

Task Scheduler folder authorization and CreateFolder existing-target guarantees

I am seeking documented Windows Task Scheduler API behavior for an existing folder, using this neutral example. The existing folder is \ExampleProtectedFolder. Its owner is Builtin Administrators (BA), group Local System (SY), and its protected DACL…

Windows development | Windows API - Win32
asked 2026-10-23T13:49:20.7566667+00:00
Bin Qiang 0 Reputation points
answered 2026-10-23T13:51:11.51+00:00

AI answer

3 answers

CreateDirectory2W: is failure indicated by NULL or INVALID_HANDLE_VALUE?

I am reviewing a Win32 interop declaration for CreateDirectory2W and need to know the authoritative failure return value, before writing any code that acts on its returned handle. Microsoft Learn's CreateDirectory2W page declares a HANDLE return type and…

Windows development | Windows API - Win32
asked 2026-10-11T08:59:46.7366667+00:00
Massimo 0 Reputation points
commented 2026-10-23T11:24:54.8366667+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
2 answers

Is OBJ_DONT_REPARSE supported in OBJECT_ATTRIBUTES for user-mode NtCreateFile?

I am reviewing user-mode NtCreateFile calls for filesystem directories, including a single relative name supplied with an existing filesystem directory handle in OBJECT_ATTRIBUTES.RootDirectory. This is a specification question; no runtime tests have…

Windows development | Windows API - Win32
asked 2026-10-19T15:32:15.9966667+00:00
Norihiro Honda 0 Reputation points
commented 2026-10-23T10:44:04.3466667+00:00
Taki Ly (WICLOUD CORPORATION) 5,715 Reputation points Microsoft External Staff Moderator
2 answers

Is FILE_DIRECTORY_FILE compatible with FILE_OPEN_REPARSE_POINT in user-mode NtCreateFile?

I am reviewing the documented contract for opening filesystem directories from a Windows user-mode application. This is a specification question, not a report of an observed failure. No runtime tests have been performed, and the target environment has…

Windows development | Windows API - Win32
asked 2026-10-19T15:30:19.66+00:00
Norihiro Honda 0 Reputation points
commented 2026-10-23T10:44:01.5933333+00:00
Taki Ly (WICLOUD CORPORATION) 5,715 Reputation points Microsoft External Staff Moderator
1 answer

Windows NTFS: Supported user-mode directory flush after file deletion?

Dear Windows Filesystem Support Team, I am evaluating a local, offline Windows application that needs to fulfill SQLite's xDelete(syncDir=1) durability semantics with journal_mode=DELETE and synchronous=EXTRA. Environment Windows 11 x64, build…

Windows development | Windows API - Win32
asked 2026-10-19T17:33:47.92+00:00
Achim Schneider 0 Reputation points
commented 2026-10-23T10:07:50.4333333+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
2 answers

Does NtCreateFile support OBJ_DONT_REPARSE with RootDirectory in user mode, including intermediate reparse points?

Hello, I would appreciate clarification of the officially supported behavior of NtCreateFile, OBJECT_ATTRIBUTES.RootDirectory, and OBJ_DONT_REPARSE when used together by a user-mode Windows application. Context We are designing a read-only file identity…

Windows development | Windows API - Win32
asked 2026-10-19T11:30:19.36+00:00
Mauro Lino J Sousa 0 Reputation points
commented 2026-10-23T10:06:22.79+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
2 answers

Request for guidance: WER LocalDumps and AeDebug interaction on Windows

Hello, I need guidance configuring Windows Error Reporting (WER) LocalDumps to capture a future native crash of a Python-based ComfyUI process. The existing Windows configuration has the following characteristics: - AeDebug\Debugger references…

Windows development | Windows API - Win32
asked 2026-10-15T19:58:55.94+00:00
PRADEEP DABAS 0 Reputation points
commented 2026-10-23T03:32:29.4933333+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
2 answers

GetTokenInformation(TokenRestrictedDeviceGroups) returns ERROR_INVALID_PARAMETER (87)

Problem On Windows x64, I am investigating the supported user-mode contract for GetTokenInformation with TokenRestrictedDeviceGroups (TOKEN_INFORMATION_CLASS value 38). A primary access token is opened with TOKEN_QUERY. Calls to GetTokenInformation…

Windows development | Windows API - Win32
asked 2026-10-16T11:48:18.32+00:00
edited a comment 2026-10-23T03:30:13.89+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
2 answers

OpenProcessToken across accounts: is SeDebugPrivilege required with an existing process handle and token DACL access?

Please clarify the documented access requirements for OpenProcessToken, ideally with confirmation from the Windows API/documentation team. Reference:…

Windows development | Windows API - Win32
asked 2026-10-16T08:44:25.6733333+00:00
JC 0 Reputation points
commented 2026-10-23T03:21:24.5366667+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
3 answers

Supported way to run a locally built application with Smart App Control enabled

On Windows 11, a locally built, unsigned C++ application was blocked before its process started. CreateProcessW returned error 4551. CodeIntegrity event 3077 reported: Policy: VerifiedAndReputableDesktop Status: 0xC0E90002 Requested signing level: 2 …

Windows development | Windows API - Win32
asked 2026-10-15T19:18:01.7566667+00:00
Justin Youri Larocque 0 Reputation points
commented 2026-10-23T03:20:14.7833333+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
1 answer

Windows Job Object reports ActiveProcesses=1 after worker exit and an unexpected PID

I'm developing a paper/simulation-only Python research platform on Windows using CPython 3.13.15 and Win32 APIs. I'm investigating unexpected Windows Job Object membership and how to establish safe process termination and resource cleanup. Environment…

Windows development | Windows API - Win32
asked 2026-10-12T18:07:09.4633333+00:00
Carlos Garcia 0 Reputation points
commented 2026-10-23T03:18:35.37+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator
1 answer

Supported continuity of exact-target native WFP blocking across BFE failures

We seek an initial clarification of supported Windows platform semantics, not certification of a deployed application. No exact deployment is asserted; guest build and provider configuration remain unselected. The proposed mechanism uses committed…

Windows development | Windows API - Win32
asked 2026-10-16T15:59:57.0766667+00:00
Milsy18 0 Reputation points
commented 2026-10-23T03:14:09.66+00:00
Percy Nguyen (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff Moderator