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