3,015 questions with Windows development | Windows API - Win32 tags
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
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
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…
Windows development | Windows API - Win32
Why is it impossible to set a password for a user longer than 63 characters using the “NetUserChangePassword” function?
When attempting to set a password for a user longer than 63 characters using the NetUserChangePassword function, an error occurs: NET_API_STATUS=1325 (Unable to update the password. The value provided for the new password does not meet the length,…
Windows development | Windows API - Win32
Supported architecture for offline phone-biometric Windows interactive logon without password/PIN replay
I am developing a security-focused prototype called FingerBridge that uses an Android phone's strong biometric authentication as an authorization factor for Windows. The goal is to determine whether Windows provides a supported production architecture…
Windows development | Windows API - Win32
GattServiceProvider::CreateAsync is blocked for as long as 7 minutes and 32 seconds.
HI, I Use GattServiceProvider::CreateAsync to create a gatt service and start advertising, Below is the simplified version of our code. I recently observed an issue where the call to GattServiceProvider::CreateAsync gets hung. Steps where the issue…
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
programming for windows
dear people, there were win-pascal1.5, bloodshed dev, borland 7 for windows. but now there is only life in embarcadero 11. but i have the GREAT PROBLEM, that all my programs crashing down, if i make less keyboard or mouse input, and that on not the…
Windows development | Windows API - Win32
How to perform Offline Installation of IRDA Feature on Windows 11 25H2
I am going to preface my post with some information before getting into the details. Yes, I am aware that the IRDA stack is deprecated in Microsoft Windows as it is old technology. I am also equally aware that newer technologies exist. I work with a…
Windows development | Windows API - Win32
parameters for DLL sendstate
i need to know what the parameters for THE DLL sendstate MEAN
Windows development | Windows API - Win32
windows 11 classic context menu weird handling of IExplorerCommand
My app registered the file and folder context menu by implementing IExplorerCommand interface. On my own PC, it worked well. The menu is shown in both the new windows 11 and the classic menu (the windows 10 style menu when you click "Show more…
Windows development | Windows API - Win32
How correctlly use InternetReadFileEx() with IRF_NO_WAIT flag
Hi By Wininet, currently I using InternetReadFile() in sync mode, but problem is, it is blocks some times, I want replaced it by Ex version. My question is when data is not ready and function returns should call it again in a loop or should use Sleep()…
Windows development | Windows API - Win32
How do resolve the type-conflict (CS0436) when using CsWin32 in dependent projects?
I have a project that uses CsWin32, it uses a shared project reference that also uses CsWin32. I'm getting green squiggles under PInvoke... The type PInvoke conflicts with the imported type. How do I resolve this issue? Suggestions: Use a fully…
Windows development | Windows API - Win32
Information of dirty virtual memory pages
To advise the memory manager to know better which pages should be preferred for paging I need to know which pages are dirty. Obviously I can get a lot of information QueryWorkingSet and QueryWorkingSetEx but what I do not get is if the page is dirty or…