2,907 questions with Windows development | Windows API - Win32 tags
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
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
Why WinMM timers API is obsolete?
Hello, In the docs for timeSetEvent function there is notification message: Note This function is obsolete. New applications should use CreateTimerQueueTimer to create a timer-queue timer. Well, I've tried the suggested function, but the minimum…
Windows development | Windows API - Win32
CredentialsChanged() is failing with error -2147019873 in CredentialProvider
We are using CredentialProvider in C++ for Windows, On calling OnCredentialsChanged(), Sometimes CredentialsChanged() is failing with HRESULT hr -2147019873.
Windows development | Windows API - Win32
4625- Security Microsoft Unified Security Protocol Provider SChannel
While calling sslStream.AuthenticateAsServer(this.serverCertificate, true, SslProtocols.Tls12, false) method throwing below Audit information error An account failed to log on. Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon…
Windows development | Windows API - Win32
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
The issue of ETW capturing WMI-related events triggered by WMIC
Hello, instructor. I collect the three types of events—filter, consumer, and binding—of WMI based on the ETW mechanism. When these three types of instances are created via PowerShell commands, the WMI-Activity provider in ETW can capture all three types…
Windows development | Windows API - Win32
My 'Send' command is not blocking when it should, and instead crashes the socket connection
My Client successfully connects to the Server and starts sending data using the 'Send' Winsock API. It continues sending data at a rate faster than the Server can process it. On Windows 10, the socket behaves as advertised, and the 'Send' blocks until…
Windows development | Windows API - Win32
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
How to change Color Prevalence (Showing of Accent Color on Taskbar and Start) using Win32 (Not Registry)?
Hello, I would like to know, if it's possible in any way to change Color Prevalence using Win32, it's needed to show Accent Color on Taskbar mainly. The Color Prevalence which I'm talking about is this one: public const string…
Windows development | Windows API - Win32
Does embedding a large binary as RCDATA in a Win32 EXE necessarily increase SizeOfImage, even if accessed on demand?
Hi, Objective: Our product goal is to ship a single executable file on Windows. To achieve this, we are evaluating embedding a DLL (or other large binary payload) directly into the EXE using Win32 resources, instead of distributing a separate DLL…
Windows development | Windows API - Win32
Can a DLL embedded in an EXE be loaded without writing it to a temporary file?
Hi, Our goal is to ship a single EXE that contains both the main executable and a DLL, while still using the standard Windows loader (LoadLibrary, GetProcAddress) for execution. We currently embed the DLL into the EXE as a resource (.rc / .rsrc) and then…
Windows development | Windows API - Win32
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
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
unable to create a full dump when more than 65532 runtime_functions have been registered to RtlAddFunctionTable
System: windows 11 24H2 Visual studio 2022 Run the following program to from Visual studio and put a breakpoint on the 'pause' statement. Use the create dump option to create a dump with heap information. Notice how it fails. a non heap minidump still…
Windows development | Windows API - Win32
Freeze and blocked in the ntdll!NtDeviceIoControlFile
My app can not quit and terminate. I catch a mini dump for my app, here is the stack, only one none-main thread left. Why this happen and how to fix it? 0:000> kv # Child-SP RetAddr : Args to Child …
Windows development | Windows API - Win32
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
DisplayTask::SetSignal not firing
Running the sample application for Windows.Devices.Display.Core & using a head mounted display (tweaked to make it look for specialised displays) I am able to present images to my monitor. But I am failing to get feedback on the presentation timing…
Windows development | Windows API - Win32
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
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…