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

Sort by: Updated
1 answer

Will using RegisterHotKey in a WinUI 3 packaged app pass Microsoft Store certification?

Hello, I am currently developing a WinUI 3 packaged app that I plan to distribute through the Microsoft Store. My app would benefit from global keyboard shortcuts, and I am considering using the Win32 API RegisterHotKey to implement this…

Windows development | Windows API - Win32
asked 2025-12-06T13:05:03.7066667+00:00
Grape Juice 0 Reputation points
answered 2025-12-06T13:05:13.7233333+00:00
Q&A Assist
0 answers

How can I implement macOS-style modifier + trackpad zoom (system-wide magnifier) on Windows using Win32/C#?

I am trying to recreate the macOS accessibility zoom feature on Windows. On macOS, holding Control and performing a two-finger scroll on the trackpad triggers a system-wide zoom: The entire screen zooms The zoom centers on the mouse cursor Moving the…

Windows development | Windows API - Win32
asked 2025-12-06T06:38:33.41+00:00
ketan sharma 0 Reputation points
1 answer

How can I enable my software to trigger cloud filter placeholder retrieval?

I have a cloud filter provider which is running just fine, however I have noticed that if I programmatically traverse directories, the placeholders aren't fetched - it's only when doing it using explorer or command line. Is there something I can do to…

Windows development | Windows API - Win32
asked 2025-12-03T02:34:54.3666667+00:00
sysadmin 40 Reputation points
commented 2025-12-04T22:44:59.15+00:00
sysadmin 40 Reputation points
2 answers

how to get the special process GPU usage with the PDH API

Hello all I want to get the special process GPU usage, how could I conbine the counter path. I have tried the "\GPU Engine(%s#%d)\Utilization Percentage", %s is the process name, the %d is the process id or instance index. but all of these…

Windows development | Windows API - Win32
asked 2025-12-01T03:28:27.0666667+00:00
Chief Guo 21 Reputation points
commented 2025-12-04T10:55:55.6966667+00:00
Danny Nguyen (WICLOUD CORPORATION) 5,065 Reputation points Microsoft External Staff Moderator
1 answer

Help Parsing Long Integer from Input in Win32 API (Possible Error?)

System.InvalidOperationException: Operation failed with error code 18884001969 at MyApp.Controllers.PaymentController.ProcessRequest() in /src/Controllers/PaymentController.cs:line 229 System.InvalidOperationException: Operation failed with error code…

Windows development | Windows API - Win32
asked 2025-11-25T15:58:51.32+00:00
Lekisha Abeita 0 Reputation points
commented 2025-12-04T10:53:49.9966667+00:00
Danny Nguyen (WICLOUD CORPORATION) 5,065 Reputation points Microsoft External Staff Moderator
2 answers

Is There a Practical Size/Page Limit for Print Spooling in Win32 Printing?

I'm building a WinUI2 (WinRT/C++) application that includes a custom printing workflow. Instead of relying on the system-provided Printer Dialog, we're generating our own UI and sending print jobs directly using Win32 APIs. To print, I'm obtaining the…

Windows development | Windows API - Win32
asked 2025-12-04T07:12:48.4233333+00:00
Shyam Butani 425 Reputation points
answered 2025-12-04T10:44:18.9066667+00:00
Jay Pham (WICLOUD CORPORATION) 3,060 Reputation points Microsoft External Staff Moderator
2 answers

Protected registry keys?

Hello, I prepared some Windows customization scripts to save time on each install, recently, some registry keys seem to get protected, while they are not sensitive security areas, simply desktop customization keys per user, few…

Windows development | Windows API - Win32
asked 2025-11-27T23:37:49.7266667+00:00
Halifax Crosby 80 Reputation points
commented 2025-12-04T08:36:29.55+00:00
Jack Dang (WICLOUD CORPORATION) 4,945 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-12-04T06:42:19.9033333+00:00
Tom Tran (WICLOUD CORPORATION) 3,120 Reputation points Microsoft External Staff Moderator
1 answer

D2D DWrite encountered error 0x88985001 while loading a custom font. Repeated debugging attempts failed to pinpoint the issue. Please help me.

I am attempting to add a TTC font to an IDWriteFontCollection and have chosen to register a custom loader using RegisterFontCollectionLoader(collectionLoader);. The font file is located within a resource file (.rc). The font file format is .ttf, but…

Windows development | Windows API - Win32
asked 2025-08-27T06:42:25.4966667+00:00
RL Chen 260 Reputation points
answered 2025-12-04T03:38:06.6966667+00:00
RL Chen 260 Reputation points
2 answers

How Do I Retarget a C++ Application?

Hello Folks: Developing on Windows 10 Pro on the Extended Security Update program, VS 2019 Community Version 16.11.53, all C++. I'm getting the following error. error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be…

Windows development | Windows API - Win32
asked 2025-12-02T16:49:16.36+00:00
Larry 20 Reputation points
edited a comment 2025-12-04T03:13:24+00:00
Jay Pham (WICLOUD CORPORATION) 3,060 Reputation points Microsoft External Staff Moderator
1 answer

[CFAPI] file handle from CfGetWin32HandleFromProtectedHandle cannot be used to read data.

Hi, I'm trying to implement a sync logic to upload local change to cloud. In this case I need to open local file for read, but it does not work as expected: Get a protected handle protected_handle from CfOpenFileWithOplock, works fine; Get a win32…

Windows development | Windows API - Win32
asked 2025-12-03T09:20:21.8733333+00:00
Aaron Liu 0 Reputation points
commented 2025-12-03T12:15:59.5433333+00:00
Viorel 125.6K Reputation points
2 answers

Update app from code

Hello https://learn.microsoft.com/en-us/windows/msix/store-developer-package-update Is it possible to check if an update is available, and download/install it in .Net Framework WinForms apps? (full trust store packaged) Thanks in advance.

Windows development | Windows API - Win32
asked 2025-12-02T13:27:03.8766667+00:00
Halifax Crosby 80 Reputation points
answered 2025-12-03T11:00:32.31+00:00
Michael Le (WICLOUD CORPORATION) 6,020 Reputation points Microsoft External Staff Moderator
1 answer

Is CAsyncSocket thread-safe when used with one thread for reading and one for writing?

Hello, We've been using CAsyncSocket in a multithreaded setup for some time — one thread dedicated to reading, and one handling writing. However, we've encountered an issue where the PumpMessage method occasionally stops receiving SELECT messages,…

Windows development | Windows API - Win32
asked 2025-10-13T07:18:57.3433333+00:00
commented 2025-12-03T09:14:48.0866667+00:00
2 answers

How to download CertPurge?

Hello I need to download the CertPurge: https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/pki-basics-how-to-manage-the-certificate-store/259419 But I get AuthorizationFailure error, how to get it? Thanks in advance.

Windows development | Windows API - Win32
asked 2025-12-02T13:21:01.2166667+00:00
Halifax Crosby 80 Reputation points
edited an answer 2025-12-03T04:13:09.45+00:00
Michael Le (WICLOUD CORPORATION) 6,020 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
commented 2025-12-03T03:15:51.6266667+00:00
Harry Vo (WICLOUD CORPORATION) 3,505 Reputation points Microsoft External Staff Moderator
0 answers

Help Parsing Long Integer from Input in Win32 API (Possible Error?)

System.InvalidOperationException: Operation failed with error code 18885920258 at MyApp.Controllers.PaymentController.ProcessRequest() in /src/Controllers/PaymentController.cs:line 229 System.InvalidOperationException: Operation failed with error code…

Windows development | Windows API - Win32
asked 2025-09-04T19:26:46.3066667+00:00
aditi sharma 75 Reputation points
commented 2025-12-02T06:59:14.5533333+00:00
Harry Vo (WICLOUD CORPORATION) 3,505 Reputation points Microsoft External Staff Moderator
0 answers

DirectComposition HW protected swap chain: Capture APIs return black in Windows 24H2

I’m creating a DirectComposition swap chain with DXGI_SWAP_CHAIN_FLAG_HW_PROTECTED, and the call succeeds. The protected surface displays correctly, but on Windows 24H2 the OS capture APIs (PrintScreen, Windows.Graphics.Capture, DWM capture) now return a…

Windows development | Windows API - Win32
asked 2025-09-08T19:13:32.3733333+00:00
Tolgahan 0 Reputation points
commented 2025-12-02T06:41:16.68+00:00
Harry Vo (WICLOUD CORPORATION) 3,505 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
commented 2025-12-02T04:56:39.0933333+00:00
Danny Nguyen (WICLOUD CORPORATION) 5,065 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-12-01T09:36:32.5766667+00:00
Harry Vo (WICLOUD CORPORATION) 3,505 Reputation points Microsoft External Staff Moderator
2 answers

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
commented 2025-12-01T09:26:44.1433333+00:00
alan henry 0 Reputation points