2,874 questions with Windows development | Windows API - Win32 tags

Sort by: Updated
1 answer

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
asked 2025-11-09T05:11:52.03+00:00
Amresh Prasad 0 Reputation points
answered 2025-11-09T05:12:00.9333333+00:00
Q&A Assist
4 answers One of the answers was accepted by the question author.

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
asked 2025-11-08T05:59:27.5266667+00:00
Amresh Prasad 0 Reputation points
accepted 2025-11-09T05:03:55.04+00:00
Amresh Prasad 0 Reputation points
1 answer

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
asked 2025-11-08T23:10:33.55+00:00
dev 0 Reputation points
answered 2025-11-08T23:10:45.6733333+00:00
Q&A Assist
1 answer

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
asked 2025-11-08T11:43:12.41+00:00
dev 0 Reputation points
edited a comment 2025-11-08T20:47:36.13+00:00
dev 0 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2025-11-05T06:53:01.59+00:00
Anwar 60 Reputation points
edited the question 2025-11-07T19:25:40.7333333+00:00
Erland Sommarskog 128K Reputation points MVP Volunteer Moderator
2 answers

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
asked 2021-03-14T13:12:24.02+00:00
youki 1,021 Reputation points
edited a comment 2025-11-07T12:06:26.3166667+00:00
Alx24 0 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 2025-11-07T11:21:09.7+00:00
Danny Nguyen (WICLOUD CORPORATION) 3,840 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2025-11-06T12:01:18.1633333+00:00
MSDN_userSince1994_newaccount2023 0 Reputation points
edited an answer 2025-11-07T09:45:26.0666667+00:00
Tom Tran (WICLOUD CORPORATION) 2,305 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

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
asked 2025-07-23T11:06:48.45+00:00
Vivek Kumar 20 Reputation points
accepted 2025-11-07T09:41:06.1433333+00:00
Vivek Kumar 20 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2025-11-05T14:37:13.4866667+00:00
mc 6,156 Reputation points
commented 2025-11-07T09:18:56.5833333+00:00
Raymond Huynh (WICLOUD CORPORATION) 2,410 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-09-03T01:46:42.7466667+00:00
T.S 0 Reputation points
commented 2025-11-07T08:38:22.5633333+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-09-05T09:56:02.7566667+00:00
Halder, Krishnendu 90 Reputation points
commented 2025-11-07T08:35:53.1333333+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-10-23T14:56:17.7566667+00:00
MSDN_userSince1994_newaccount2023 0 Reputation points
commented 2025-11-07T08:17:47.7733333+00:00
Raymond Huynh (WICLOUD CORPORATION) 2,410 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-11-03T19:28:41.2766667+00:00
Taulquist, Andrew 0 Reputation points
edited a comment 2025-11-07T07:00:09.4533333+00:00
Tom Tran (WICLOUD CORPORATION) 2,305 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-07-31T14:54:32.2833333+00:00
Brent 0 Reputation points
commented 2025-11-07T04:29:26.58+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-11-05T06:46:05.5233333+00:00
R Hartley 0 Reputation points
commented 2025-11-07T02:46:40.16+00:00
Tom Tran (WICLOUD CORPORATION) 2,305 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

[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
asked 2025-11-03T15:23:51.0566667+00:00
appleton 20 Reputation points
accepted 2025-11-06T23:50:41.6766667+00:00
appleton 20 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2025-11-03T03:51:45.8033333+00:00
Xiao, Yuting 25 Reputation points
commented 2025-11-06T11:24:07.99+00:00
Viorel 125.2K Reputation points
1 answer

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
asked 2025-10-31T07:21:53.6366667+00:00
Ramesh Murugan (UAE) 0 Reputation points
commented 2025-11-06T10:40:01.03+00:00
Raymond Huynh (WICLOUD CORPORATION) 2,410 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

[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…

Windows development | Windows API - Win32
asked 2025-11-03T11:54:03.9566667+00:00
Aaron Liu 20 Reputation points Microsoft Employee
accepted 2025-11-06T10:26:51.34+00:00
Aaron Liu 20 Reputation points Microsoft Employee