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

Sort by: Updated
1 answer

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
asked 2025-06-28T02:40:29.4833333+00:00
alan henry 0 Reputation points
edited a comment 2025-11-13T03:50:31.0266667+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

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
asked 2025-11-11T04:50:53.4433333+00:00
Shyam Butani 420 Reputation points
accepted 2025-11-13T02:53:53.0333333+00:00
Shyam Butani 420 Reputation points
0 answers

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
asked 2025-09-25T17:55:52.6433333+00:00
Todd Wasson 0 Reputation points
commented 2025-11-12T23:31:55.0466667+00:00
Todd Wasson 0 Reputation points
1 answer

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
asked 2025-11-12T10:29:00.78+00:00
Aurélien Tollard 0 Reputation points
answered 2025-11-12T10:29:16.28+00:00
Q&A Assist
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
edited a comment 2025-11-12T09:59:54.52+00:00
Raymond Huynh (WICLOUD CORPORATION) 2,500 Reputation points Microsoft External Staff Moderator
2 answers

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-12T08:12:14.41+00:00
Danny Nguyen (WICLOUD CORPORATION) 3,930 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-09-26T09:04:44.5066667+00:00
Patrick Poly 0 Reputation points
commented 2025-11-12T06:54:25.4866667+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2025-11-10T20:24:56.4533333+00:00
Jeff Kartechner 0 Reputation points
answered 2025-11-12T06:51:50.0633333+00:00
Tom Tran (WICLOUD CORPORATION) 2,380 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2025-11-11T23:27:00.4666667+00:00
StewartBW 1,905 Reputation points
answered 2025-11-12T05:20:24.0566667+00:00
Jay Pham (WICLOUD CORPORATION) 2,495 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
commented 2025-11-12T03:22:00.4466667+00:00
Tom Tran (WICLOUD CORPORATION) 2,380 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-11-03T06:56:08.79+00:00
Vishal2 Bansal 285 Reputation points
edited a comment 2025-11-11T10:39:42.3766667+00:00
Vishal2 Bansal 285 Reputation points
1 answer

Self connect (socket client)

Hello everybody, Context I create a client socket (not blocking) in calling the two functions…

Windows development | Windows API - Win32
asked 2025-10-27T16:39:53.3233333+00:00
PALAZON Philippe 0 Reputation points
recommended 2025-11-11T03:42:17.89+00:00
Lynn Dang (WICLOUD CORPORATION) 0 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-11-06T02:49:43.4566667+00:00
charles yu 1 Reputation point
commented 2025-11-11T02:49:47.14+00:00
Tom Tran (WICLOUD CORPORATION) 2,380 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-11T02:14:23.4566667+00:00
Tom Tran (WICLOUD CORPORATION) 2,380 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
commented 2025-11-11T02:13:37.74+00:00
Tom Tran (WICLOUD CORPORATION) 2,380 Reputation points Microsoft External Staff Moderator
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
commented 2025-11-10T08:15:41.5233333+00:00
명훈 이 0 Reputation points
2 answers

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
asked 2025-10-27T03:31:46.2466667+00:00
sysadmin 40 Reputation points
commented 2025-11-10T08:09:48.0533333+00:00
Jack Dang (WICLOUD CORPORATION) 3,405 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-08-05T09:42:18.5566667+00:00
roy nelson 5 Reputation points
commented 2025-11-10T06:38:26.96+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
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-10T04:55:10.6866667+00:00
Harry Vo (WICLOUD CORPORATION) 3,385 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

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 40 Reputation points
commented 2025-11-10T03:17:39.52+00:00
RLWA32 51,011 Reputation points