2,874 questions with Windows development | Windows API - Win32 tags
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
Windows 11 (and 10) shutdown producing standby event instead of preshutdown
Hi, I am writing a windows service that needs to listen for shutdown/restart/sleep/hibernate events on Windows client (Windows 10, 11) and server (2016, 2019) OS systems and notify an external server before the system goes down. The service is working…
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
How to use a .exe in kiosk mode (only for that user) with Windows Configuration Designer (WCD)
I am using windows11 enterprise. I am using windows configuration designer and I create my .ppkg. when I log into kiosk I have black display(my app is not visible and since I changed the shell it won't show anything. If I log into my normal account I…
Windows development | Windows API - Win32
Query regarding how windows loads an executable.
Hi, I have a query regarding the process of how windows loads an executable into memory. Suppose there is an exe file, with having some config data in its Alternate Data Stream. When Windows, loads the executable in memory, are the ADS streams also…
Windows development | Windows API - Win32
Find property for Touch-/ Trackpad by RawInputDeviceInfo to distinguish independent of the model/ manufacturer in registry
Hello, I want to recognize, if the input is coming from the touch-/ trackpad independent of the Laptop model/ manufacturer. Is it possible? I'm getting the devicename by RawInputDeviceInfo and i see that there is the possibility to compare it with…
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
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
How to show some message to user in Explorer for VFS apps based on CloudFile APIs
Creating a prototype app similar to OneDrive, where we need to show some user action message to the User when app is not running or when user has signed-out from VFS app, similar to what is shown by OneDrive. Can someone suggest how we can achieve it?
Windows development | Windows API - Win32
how to custom the control of the win32?
how to custom the control in the win32 ? I want to custom it
Windows development | Windows API - Win32
EnableEUDC API call slows down over time on Windows Server 2022 / Windows 11
I created an executable that calls the Windows GDI API function EnableEUDC (※). ※https://learn.microsoft.com/ja-jp/windows/win32/gdi/enableeudc When this executable is run repeatedly, the execution speed of the EnableEUDC function gradually becomes…
Windows development | Windows API - Win32
Search dialog box is coming in background
Hi, Our application runs on Windows 11 and uses an HP printer. When the HP printer driver is not installed and a user attempts to use the printer, the driver search process dialog box runs in the background. Is there any API or method available to bring…
Windows development | Windows API - Win32
What are the identifiers and prevalance for the Japanese ImeOn/ImeOff keyboard layout
The Windows DDK documentation mentions an unusual variant of Japanese keyboards under the headline "ImeOn / ImeOff implementation" at https://learn.microsoft.com/en-us/windows-hardware/design/component-guidelines/keyboard-japan-ime (This is 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
Handle leak in LSASS.exe and LsaIso.exe when using WMI
Hi there, I am currently puzzled by an issue where a piece of software we develop behaves wildly different when Credential guard is enabled or not. If credential guard is disabled, the WMI queries are responsive and the lsass-process is mostly running…
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
[Prism] Does emulated DXVA2 and DXVA11 video decoding get ANY hardware acceleration on ARM?
I have an existing win32 app that uses DXVA2 and DXVA11 hardware acceleration to decode H264 and H265 video on Windows 11. I understand that DXVA2 and DXVA11 should work on Windows on Arm / Qualcomm under the Prism emulator. However, does this work…
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
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
[CFAPI] How can I know if a folder is loaded with placeholders under CF_POPULATION_POLICY_FULL mode?
Hi, We're using CFAPI to build a file sync client, we choose CF_POPULATION_POLICY_FULL so that file list under child folders can be loaded on-demand. Is there a way to know if a given folder is initialized and loaded with placeholders or not? We have a…