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

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Windows Task Scheduler: sichere temporäre XML-/SDDL-Wiederherstellung nach unbestätigtem Readback

Wir verwenden Windows Task Scheduler über die COM-API für eine einzelne, vorhandene deaktivierte Aufgabe. Vor einer temporären, eng begrenzten Testdefinition sichern wir die Original-XML und SDDL. Nach RegisterTask(Update) kann der anschließende Readback…

Windows development | Windows API - Win32
asked 2026-09-14T15:21:08.4633333+00:00
My Music Lab 0 Reputation points
accepted 2026-09-15T19:12:27.1766667+00:00
My Music Lab 0 Reputation points
3 answers

Windows SCM: Is there a supported integration point for policy-based rejection of service-creation requests?

Microsoft DocHelp directed my SCM documentation inquiry to Microsoft Q&A. I am evaluating a Windows application design requiring an independently protected, fixed policy to constrain service creation through the existing Windows Service Control…

Windows development | Windows API - Win32
asked 2026-09-14T22:42:13.8266667+00:00
Chris Terrell 20 Reputation points
commented 2026-09-15T17:15:17.26+00:00
Chris Terrell 20 Reputation points
1 answer

conhost.exe command line changes from "0xffffffff -ForceV1" to "0x4" in the same process

I am implementing read-only process monitoring on Windows. Microsoft consumer support referred me to Microsoft Q&A for clarification of this Windows API behavior. I observed a change in the command line returned for the same conhost.exe process,…

Windows development | Windows API - Win32
asked 2026-09-11T05:29:05.5133333+00:00
Kohei Tagami 0 Reputation points
commented 2026-09-15T11:02:24.9466667+00:00
RLWA32 52,831 Reputation points
2 answers One of the answers was accepted by the question author.

How detect disk drive media type in win32

hi In Win32 API, how get drive media types? I need to know thecdrive is hdd or ssd, AI said use seek penalty property is it only way? Also how detect each drive belong to whitch physical disk Thanks

Windows development | Windows API - Win32
asked 2026-09-15T09:35:17.07+00:00
drjackool 1,016 Reputation points
edited an answer 2026-09-15T10:49:33.77+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
1 answer

NtCreateFile: supported type-neutral metadata-only open with no-follow and no-recall flags?

Could Microsoft clarify the supported contract and acquisition-time guarantees for this exact user-mode NtCreateFile call? Parameters: DesiredAccess = 0x00100080: FILE_READ_ATTRIBUTES | SYNCHRONIZE CreateOptions = 0x00600020:…

Windows development | Windows API - Win32
asked 2026-09-13T09:25:01.0733333+00:00
Doug Oweczkin 0 Reputation points
edited a comment 2026-09-15T10:35:22.1233333+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
2 answers

NtCreateFile: Does a RootDirectory handle granted only FILE_READ_ATTRIBUTES need additional rights?

@Anonymous , this question follows your request for a separate thread addressing the RootDirectory granted-mask issue. Question For user-mode NtCreateFile, does an existing filesystem-directory handle used as RootDirectory require any additional right…

Windows development | Windows API - Win32
asked 2026-09-14T20:59:26.9933333+00:00
Chris Terrell 20 Reputation points
commented 2026-09-15T09:52:13.2466667+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

GetTokenInformation(TokenHasRestrictions=21) returns ReturnLength=1 despite DWORD documentation

Subject: GetTokenInformation(TokenHasRestrictions=21) returns ReturnLength=1 despite DWORD documentation Hello Microsoft Support, We are requesting clarification regarding the documented contract for GetTokenInformation with TOKEN_INFORMATION_CLASS =…

Windows development | Windows API - Win32
asked 2026-09-11T09:20:56.7333333+00:00
靖智 蘇 20 Reputation points
accepted 2026-09-15T04:26:23.31+00:00
靖智 蘇 20 Reputation points
2 answers

how to hydrate a projected file system file (Projfs)

I have a implementation of a projfs provider but i am trying to implement a hydrate function that converts a placeholder to the a Hydrated placeholder. https://learn.microsoft.com/en-us/windows/win32/projfs/projfs-functions There does not appear to…

Windows development | Windows API - Win32
asked 2026-08-20T23:42:38.4766667+00:00
Pribele, Joe 0 Reputation points
commented 2026-09-14T23:13:35.5066667+00:00
Pribele, Joe 0 Reputation points
1 answer

Is OBJ_DONT_REPARSE supported by user-mode NtCreateFile with a directory-relative name?

This brief concerns published API contracts for an initial file acquisition before content inspection. It requests clarification of documentation, without asserting anything about a particular host. The proposed inspection requires an independently…

Windows development | Windows API - Win32
asked 2026-09-13T07:07:27.6633333+00:00
Chris Terrell 20 Reputation points
commented 2026-09-14T10:43:27.35+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
1 answer

Win32/SCM: Is there a supported way to enforce an exact service environment before any service loader/runtime execution?

I am evaluating a native Win32 service where the initial process environment must be explicitly specified and validated before any environment-dependent loader/runtime execution occurs. StartServiceW does not expose an environment argument. In the path I…

Windows development | Windows API - Win32
asked 2026-09-13T02:51:24.2966667+00:00
Nico Messerlian 0 Reputation points
edited an answer 2026-09-14T04:12:56.2566667+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
1 answer

Supported private-registry reference for an unchanged zero-capability LPAC caller

This is a documentation question about a proposed Windows desktop containment design. No deployed configuration or runtime behavior is asserted. Does Microsoft support GetAppContainerRegistryLocation obtaining the caller's exact private registry root…

Windows development | Windows API - Win32
asked 2026-09-11T04:05:26.2333333+00:00
Spencer Wagemann 0 Reputation points
edited an answer 2026-09-11T09:06:17.93+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
1 answer

WebAuthNPluginPerformUserVerification2: binding between pwszDisplayHint, pbBufferToSign, and returned response

We are evaluating WebAuthNPluginPerformUserVerification2 / WEBAUTHN_PLUGIN_USER_VERIFICATION_REQUEST_2 for a high-assurance human transaction-confirmation workflow. The current Microsoft documentation states that: pwszDisplayHint is the text hint…

Windows development | Windows API - Win32
asked 2026-09-04T04:47:26.65+00:00
Nguyễn Văn Toàn 0 Reputation points
commented 2026-09-11T03:16:22.86+00:00
Tony Thach (WICLOUD CORPORATION) 1,120 Reputation points Microsoft External Staff Moderator
1 answer

Correct GENERIC_MAPPING for process and thread objects in AccessCheck

I am designing a native x64 C diagnostic tool and would like to clarify the supported use of GENERIC_MAPPING with AccessCheck for process and thread objects. Planned environment: - Windows 11 Pro 25H2 x64, build 26200.9168 - Windows SDK…

Windows development | Windows API - Win32
asked 2026-09-08T00:10:38.1266667+00:00
yohei watanabe 0 Reputation points
commented 2026-09-11T02:32:09.4133333+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
2 answers

WinHTTP over an HTTPS forward proxy - CRL problem

Problem A native Windows client uses WinHTTP with a secure (HTTPS) forward proxy — i.e. the connection to the proxy is itself TLS, specified as a named proxy with an https:// scheme: https://mysecureproxy.duckdns.org:3129 The proxy presents a normal,…

Windows development | Windows API - Win32
asked 2026-08-30T06:56:01.5466667+00:00
Izaf 0 Reputation points
commented 2026-09-10T03:43:42.6433333+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Can a USB diagnostic device launch an uninstalled app through AutoPlay?

I'm developing AEGIS, a legitimate USB-based PC diagnostic/repair tool. I want a technician to plug the USB into an arbitrary Windows 10/11 PC and receive a visible, user-consented prompt that launches the AEGIS application stored on the USB. The…

Windows development | Windows API - Win32
asked 2026-09-08T17:57:53.2433333+00:00
Arixx 20 Reputation points
accepted 2026-09-09T17:47:38.22+00:00
Arixx 20 Reputation points
1 answer One of the answers was accepted by the question author.

Native TSF IME pure MSIX deployment

I am developing Myanglish, a native third-party Windows TSF IME. The classic Win32 installer works correctly: TSF profile registration succeeds TSF categories register successfully InstallLayoutOrTip succeeds Myanglish appears in Win+Space Typing…

Windows development | Windows API - Win32
asked 2026-09-06T17:28:50.6133333+00:00
Maung Kaung 30 Reputation points
commented 2026-09-08T09:53:19.7066667+00:00
Maung Kaung 30 Reputation points
2 answers

Detecting the IME status of other windows

The following code works correctly on Windows 10. HWND forehwnd = GetForegroundWindow(); HWND ime = ImmGetDefaultIMEWnd(forehwnd); LRESULT ret = SendMessageA(ime, WM_IME_CONTROL, 0x05, 0); I checked using ret, but it always…

Windows development | Windows API - Win32
asked 2025-11-07T09:30:35.84+00:00
명훈 이 0 Reputation points
answered 2026-09-05T09:24:32.98+00:00
zdn 0 Reputation points
0 answers

What should I do about this Windows Authoring Guide infinite login loop?

I’m trying to contribute to this GitHub repository: https://github.com/MicrosoftDocs/win32. Its CONTRIBUTING.md file says: You can find guidance on using this repo in the Windows Authoring Guide. Whenever I click on that Windows Authoring Guide link,…

Windows development | Windows API - Win32
asked 2025-04-20T23:24:53.2266667+00:00
Jayman 110 Reputation points
commented 2026-09-03T16:13:17.27+00:00
Jayman 110 Reputation points
3 answers One of the answers was accepted by the question author.

Windows TSF: ActivateProfile returns S_OK, but GetActiveLanguageProfile returns S_FALSE and the Text Service DLL is not loaded into a new Notepad process

I am developing a Windows input assistance application using a native C++ Text Service based on the Windows Text Services Framework (TSF). I am currently encountering behavior related to Text Service activation after a Windows restart that I do not fully…

Windows development | Windows API - Win32
asked 2026-08-29T01:34:41.3033333+00:00
soso 20 Reputation points
accepted 2026-09-02T07:10:54.2033333+00:00
soso 20 Reputation points
3 answers

Official CPDK Version 8.0 download (Download Center item 30688) currently returns HTTP 404

Hello, I am reporting an apparent problem with the current official Microsoft acquisition path for the Cryptographic Provider Development Kit Version 8.0 (CPDK). Microsoft Learn still directs developers of CNG cryptographic algorithm providers and key…

Windows development | Windows API - Win32
asked 2026-08-22T05:26:17.35+00:00
Elena 0 Reputation points
commented 2026-08-31T02:32:26.5+00:00
Taki Ly (WICLOUD CORPORATION) 4,450 Reputation points Microsoft External Staff Moderator