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

Sort by: Updated
1 answer

PowerManager.EnergySaverStatus not working properly in Windows 11 Pro

UWP PowerManager.EnergySaverStatus always returns 'Off' in Windows 11 when battery is above 20% I am encountering an issue where the PowerManager.EnergySaverStatus UWP API incorrectly reports the energy saver state on Windows 11 devices when the battery…

Windows development | Windows API - Win32
asked 2025-10-09T00:28:24.6333333+00:00
JohannesK71083 0 Reputation points
commented 2026-02-20T06:15:52.6366667+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

NCryptSetProperty returns error 0x80090026 while deriving session keys using NCryptDeriveKey

I am trying to use NCryptDeriveKey to derive session encryption and authentication keys using HKDF. I can generate ephemeral key-pair NCryptCreatePersistedKey and return the key handle and public key. In another function for deriving session keys I am…

Windows development | Windows API - Win32
asked 2026-02-10T18:39:42.0166667+00:00
Sourabh 20 Reputation points
accepted 2026-02-19T14:09:54.91+00:00
Sourabh 20 Reputation points
2 answers

How to silently fail an I/O operation intercepted in minifilter driver

We are attempting to intercept copy-paste events on our cloud drive mount, which is built using the Cloud Filter API (CfAPI) and a minifilter driver. Our objective is to intercept the I/O request, reject it at the driver level, and pass the source path…

Windows development | Windows API - Win32
asked 2026-02-19T05:05:53.01+00:00
Shakti Swarup Panda 0 Reputation points
answered 2026-02-19T07:25:39.5+00:00
Jack Dang (WICLOUD CORPORATION) 12,405 Reputation points Microsoft External Staff Moderator
1 answer

How can I use cfapi.h and/or Windows.Storage.Provider to get sync status of existing sync root engines like OneDrive?

I want to get current sync status of OneDrive client (whether it is syncing, paused, error or offline etc.) as well as sync state of files in OneDrive folder (whether a file is synced or being synced or there is an error etc.). I need to do it from…

Windows development | Windows API - Win32
Microsoft 365 and Office | OneDrive | For business | Windows
asked 2023-07-27T11:38:59.0966667+00:00
Jeet Jain 0 Reputation points
answered 2026-02-18T18:15:52.77+00:00
Monica Joseph 0 Reputation points
1 answer

IGraphicsCaptureItemInterop::CreateForMonitor fails on Windows 11 build 26100 update .7623 but works on .3775

I have a Win32 app using Windows.Graphics.Capture to capture both monitors and individual windows. On my dev machine (Windows 11 build 26100 update .3775) everything works fine, but on the target machine (Windows 11 build 26100 update .7623) calls to…

Windows development | Windows API - Win32
asked 2026-02-12T07:31:27.9+00:00
Cohen, Benny [BWIIL] 0 Reputation points
commented 2026-02-18T08:51:28.9666667+00:00
Jack Dang (WICLOUD CORPORATION) 12,405 Reputation points Microsoft External Staff Moderator
3 answers

I received the error "Unable to find an OpenAPI description" while running the API tutorial at https://learn.microsoft.com/en-us/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api

https://learn.microsoft.com/en-us/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api When connecting to localhost using httprepl and https, I received the error "Unable to find an OpenAPI description". I am using…

Windows development | Windows API - Win32
asked 2024-05-10T14:06:11.3866667+00:00
Stanley, Eugene 15 Reputation points
commented 2026-02-12T05:50:13.43+00:00
shahab farahani 0 Reputation points
1 answer One of the answers was accepted by the question author.

Windows 11 changing wallpaper in the settings app does not broadcast WM_SETTINGCHANGE

I wrote an app that listens for wallpaper changes using the WM_SETTINGCHANGE window message and check the wParam == SPI_SETDESKWALLPAPER. It's a top-level window. It works perfectly fine on Windows 10. But not on Windows 11. After debugging, I found…

Windows development | Windows API - Win32
asked 2026-02-11T07:09:16.8633333+00:00
peter li 26 Reputation points
commented 2026-02-11T10:19:20.6333333+00:00
David Lowndes 2,750 Reputation points MVP
1 answer One of the answers was accepted by the question author.

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 160 Reputation points
commented 2026-02-11T03:35:49.7666667+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Change file association for .PDF programmatically

i want to show user this dialog so that my user can select my application to make it default app for pdf, plz help. my application is in c#

Windows development | Windows API - Win32
asked 2026-02-10T13:13:53.8633333+00:00
Santosh Menon 20 Reputation points
accepted 2026-02-10T15:12:24.18+00:00
Santosh Menon 20 Reputation points
1 answer One of the answers was accepted by the question author.

HResult 0x80090029 - error NTE_NOT_SUPPORTED issue for ML-KEM NCryptCreatePersistedKey

Hello Team, I am enrolled and using in Windows Insider# Window OS 26H1 (OS build 28020.1546) Getting HResult 0x80090029 is NTE_NOT_SUPPORTED (“The requested operation is not supported”) when I tried to create ML-KEM key using Key Storage Provider -…

Windows development | Windows API - Win32
asked 2026-02-09T03:40:56.5233333+00:00
Saurabh_4 Gupta_4 20 Reputation points
accepted 2026-02-09T03:41:35.7433333+00:00
Saurabh_4 Gupta_4 20 Reputation points
1 answer One of the answers was accepted by the question author.

How do I effectively and secure start an async-Task in .NET 8.0 C# Application?

I want to run my function below async in my Windows-Forms C# .NET 8.0 Application. Anyone knows how to do that? My async function looks the following: static async Task Getlocpermission() { //Bla Bla } Besides my brain which is relying on AI for…

Windows development | Windows API - Win32
asked 2026-02-08T13:48:32.25+00:00
Fabio Baensch 20 Reputation points
commented 2026-02-08T15:00:16.34+00:00
Fabio Baensch 20 Reputation points
1 answer

Enable on demand population of a cloud filter folder causes its custom icon to disappear

I tried logging a ticket about this, but support had trouble understanding. We have a cloud filter (cfapi.h) enabled app, everything is working perfectly, except we have noticed that the custom icons we apply to folders (this is done by creating a…

Windows development | Windows API - Win32
asked 2026-02-02T22:36:16.9366667+00:00
sysadmin 60 Reputation points
answered 2026-02-05T08:10:01.7933333+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to make a Windows Service detect Switch User events?

Hello! I'm developing a Windows Service using C# with a Worker and a BackgroundService running in System context. I've tried to use WTSRegisterSessionNotification() creating a invisible window to receive session changed notifications, but it's not…

Windows development | Windows API - Win32
asked 2026-02-03T14:30:37.54+00:00
Diogo Costa Maranhao Rodrigues 60 Reputation points
accepted 2026-02-04T11:16:59.8633333+00:00
Diogo Costa Maranhao Rodrigues 60 Reputation points
3 answers One of the answers was accepted by the question author.

Window development

I want to Microsoft, aaps store for Android mobile

Windows development | Windows API - Win32
asked 2026-02-02T11:21:59.8233333+00:00
Saleem Singh 20 Reputation points
answered 2026-02-02T11:38:33.0066667+00:00
Saleem Singh 20 Reputation points
1 answer One of the answers was accepted by the question author.

How does DISM validate repair source integrity when using /RestoreHealth and /Source?

When DISM is used with /RestoreHealth and an explicit /Source (for example, a mounted install.wim or install.esd or .iso), what integrity validation does DISM perform on that (local) source? Thanks.

Windows development | Windows API - Win32
asked 2026-02-01T19:26:08.4+00:00
Nicholas Peyton 20 Reputation points
commented 2026-02-01T19:46:29.34+00:00
Nicholas Peyton 20 Reputation points
2 answers One of the answers was accepted by the question author.

Why does CommunityToolkit.Uwp.Controls.Primitive use namespace CommunityToolkit.WinUI.Controls?

Nuget package Microsoft.Toolkit.Uwp.UI.Controls has been deprecated. I followed VS suggestion to replace it with CommunityToolkit.Uwp.Controls.Primitives. I cannot find components with Microsoft.Toolkit.Uwp.*. It seems that package…

Windows development | Windows API - Win32
asked 2026-01-28T15:25:34.92+00:00
Hong 1,481 Reputation points
accepted 2026-01-30T12:34:11.2+00:00
Hong 1,481 Reputation points
2 answers

CoreAudio WASAPI Loopback on Windows 11 ARM: IAudioCaptureClient::GetNextPacketSize always returns 0

Environment: OS: Windows 11 ARM64 (version xxxx) Device: Snapdragon / ARM-based PC Audio API: WASAPI (Shared Mode, Loopback) Compiler: MSVC / VS2019 / VS2022 Architecture: ARM64 native (not x64…

Windows development | Windows API - Win32
asked 2026-01-06T08:06:22.35+00:00
武林 汪 0 Reputation points
answered 2026-01-30T09:50:58.09+00:00
Akhil 5 Reputation points
1 answer

How to program to get PCIE 64-Bytes Configuration Header Space(PCIE2SATA) amd Read&Write BAR Address space for windows user mode

For PCIE2SATA Device,RW-everything can help me to get PCIE 64-Bytes Configuration Header Space. However,I wan to program by myself to get that. I not know how to do it. Furthermore,How to read & write BAR address for windows user mode. C++ or C# is…

Windows development | Windows API - Win32
asked 2026-01-08T02:32:12.73+00:00
PENG TONG 50 Reputation points
commented 2026-01-28T10:55:40.3633333+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
2 answers

How to update the firmware of PCIE2USB Device for windows users mode?

I need to programm to update the firmware of pcie2usb for windows user mode,but I not know how to do it. For VL805,it has a windows tool to do it. Anyone know how the tool can do it and what role of WinIo32.dll play?

Windows development | Windows API - Win32
asked 2026-01-08T02:41:49.81+00:00
PENG TONG 50 Reputation points
commented 2026-01-28T10:54:26.3366667+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
3 answers

How to use c++ code to become basic CMOS information

Dear All, I just started in C++ programming and my main goal is to get basic BIOS information e.g. installed CPU, installed HDD and other information. I do not want to use WMI or other DLL files for my goal. Is there anyone who could give me a hint or…

Windows development | Windows API - Win32
asked 2026-01-27T18:13:35.3633333+00:00
Mirko 0 Reputation points
answered 2026-01-28T08:54:19.1633333+00:00
Jack Dang (WICLOUD CORPORATION) 12,405 Reputation points Microsoft External Staff Moderator