3,093 questions with Windows development | Windows API - Win32 tags
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
AI answer
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
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
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
AI answer
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
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
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
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
AI 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
AI answer
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
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
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
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
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
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
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
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
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
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
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…