2,878 questions with Windows development | Windows API - Win32 tags
Cloud File API FAQ
Based on the introduction from Windows official documentation at https://learn.microsoft.com/en-us/windows/win32/cfapi/build-a-cloud-file-sync-engine and the Cloud Mirror Sample, we attempted to develop a SyncEngine independently. However, we…
Windows development | Windows API - Win32
How to implement Server Sent Events using Win32 APIs correctly?
Hello, I'm working on WinRT/C++ application and trying to implement Server Sent Event(SSE) using Win32 HTTP APIs. My current code looks like: https://gist.github.com/ShyamB-TW/b39392dbbf745933a59d837f4606b051 In this, I'm able to receive the request…
Windows development | Windows API - Win32
GameInput broke on an update (device enumeration fails). How do I fix it?
A game I'm developing uses GameInput. This has worked flawlessly for probably a year but broke on September 23rd. By "broke" I mean my device enumeration callback function registered with gameInput->RegisterDeviceCallback(..) no longer…
Windows development | Windows API - Win32
How to register out-of-proc winRT components from a windows service installed with INF
I'm working on a Windows service that hosts an out-of-process WinRT component. The service itself is installed via an INF file (not an MSI or AppX installer) as a Software Components. The problem is with registering the out-of-proc WinRT component.…
Windows development | Windows API - Win32
I am using D365 POS application , but i need to use the app as kiosk , and if not possible task bar need to hide permanently as par security aspects.
Hi , Its Me Ramesh Murugan, working MAF retail as IT support , Recently we launched D365 Retail Commerce POS systems, and here we required to this desktop APP as kiosk mode under domain User login, and if is not possible we need to be hidden the task…
Windows development | Windows API - Win32
Automatic launch of non-UWP application in kiosk mode with autologon
I created an executable (app.exe) that needs to be started automatically on a kiosk-mode workstation with autologon enabled. Issues encountered: app.exe does not run correctly under non-administrator accounts: the launch fails or the application freezes…
Windows development | Windows API - Win32
Windows Protected Print Mode – Silent PDF output with “Microsoft Print to PDF” no longer possible
Hello, In our application (C++win32) we use Microsoft Print to PDF to generate PDF files silently. With WPPM disabled, the flow works: With GDI we provide the output stream using StartDocW. With Direct2D/XPS we use…
Windows development | Windows API - Win32
Powershell Script not working on Server 2022
I have a powershell script that is working fine on Windows Server 2016 but throwing Error on Windows 2022. Get-AzADGroup : Cannot bind argument to parameter 'DisplayName' because it is an empty string. At E:\Scripts\PAIR_RC.ps1:186 char:52 ... …
Windows development | Windows API - Win32
Check if certificate is self signed?
Hi experts, When reading certificates, I need to detect if a certificate is self-signed, I didn't find an accurate code to do so. Or if the issuer if not found in the list of Microsoft certified CAs Finally: If MyCertificate.Subject =…
Windows development | Windows API - Win32
Is there any technical documentation on the internal logic of the MS IME for Japanese?
As I am still struggling to improve application compatibility with Japanese keyboard users, I find that the widely posted end user guides for "how to type Japanese" lack enough exactness to allow me to programmatically track the state of the…
Windows development | Windows API - Win32
What is the correct way to Schedule the display to sleep and wake it up afterwards?
Hi let suppose today is 31 November 2025 I am scheduling a windows to sleep today at 10:00 pm and it will wake up at 10:00 am tomorrow. This behavior I want to repeat every day except on some custom dates (3 November(holiday)) and days (all Sundays). …
Windows development | Windows API - Win32
Self connect (socket client)
Hello everybody, Context I create a client socket (not blocking) in calling the two functions…
Windows development | Windows API - Win32
Settings displays "Best Performance" but API retrieves "Better Battery" – Is this a display bug?
Hi there, I’m encountering an inconsistency between the power mode displayed in Windows Settings and the value returned by the PowerGetEffectiveOverlayScheme API. Here are the details: When I enable the Energy saver -> Always use energy save…
Windows development | Windows API - Win32
Is the MsRdpClient11NotSafeForScripting::SendKeys() method broken or disabled on Windows11? All the other API calls work except this one. I am bit encoding the fields for the lParam, and have tried both bool and VARIANT_BOOL to indicate keys up/down.
I am using the MsRdpClient11NotSafeForScripting class to write a C++ RDP client. All the other needed functions/methods work except SendKeys(). I need to know if it is known broken / disabled on Windows 11 method broken or disabled on Windows11? I use a…
Windows development | Windows API - Win32
How to disable Unified Audio Endpoints?
Whenever an application tries to use my headset it can not hear the audio from it. This is because Windows is forcing the device into Headphone mode instead of headset. The Headphone mode does not have a microphone input channel. Please just give us the…
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
Cloud Filter API folders with StorageProviderHydrationPolicy.Full sometimes take more than one double click to open in Explorer
We have developed cloud filter API software (cfapi.h) to allow users to browse their enterprise documents. Because there are potentially millions of documents in millions on folders, we use CF_HYDRATION_POLICY_FULL…
Windows development | Windows API - Win32
Loading simple RTF containing an image does not release memory on subsequent loads
Consider this code it uses the MSFTEdit Richedit 50 control, every time you click the caption it will load the oom.rtf which contains an image, it displays the private bytes used by the process, (you can Task manager or Process explorer to the see the…
Windows development | Windows API - Win32
What does the .fptable section represent in an executable file?
After upgrading the Windows SDK to 10.0.26100.0, I noticed a new section named .fptable when dumping sections using dumpbin [executable file path]. This section did not appear before and is absent when switching back to 10.0.19041.0. I could not find any…
Windows development | Windows API - Win32
Not getting PBT_APMSUSPEND event on putting Windows laptop to Sleep
I have a Windows service that subscribes to OS events related to shutdown/restart/hibernate/sleep functions. When the events (SERVICE_CONTROL_PRESHUTDOWN, PBT_APMSUSPEND) are received, the service sends a notification to a remote server. The service is…
Windows development | Windows API - Win32