2,933 questions with Windows development | Windows API - Win32 tags
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
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
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
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
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
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
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
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
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
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
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
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
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
Window development
I want to Microsoft, aaps store for Android mobile
Windows development | Windows API - Win32
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
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
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
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
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
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…