2,918 questions with Windows development | Windows API - Win32 tags
How do I handling File Locks During Uninstall in Installer.Uninstall(IDictionary)?
How do you handle uninstall in the Installer.Uninstall(IDictionary) method when other applications are still using the installed files?
Windows development | Windows API - Win32
WNetUseConnection give 2202 error code in windows server 2019 but not in windows server 2022
Q1) WNetUseConnection give 2202 error code in windows server 2019 but same code succeded in windows server 2022 why is that ? Q2) is there any restriction windows server 2019 regarding smb sharefolder ? Q3) If there is any restriction then what is…
Windows development | Windows API - Win32
NtDeviceIoControlFile fails with IOCTL_SCSI_PASS_THROUGH (SCSIOP_UNMAP) on Windows Server 2025
Hello, I am facing an issue while calling the NtDeviceIoControlFile() API with IOCTL_SCSI_PASS_THROUGH for the SCSIOP_UNMAP (0x42) operation on Windows Server 2025. The same code path has been working reliably for a long time on earlier operating systems…
Windows development | Windows API - Win32
Which CF_OPEN_FILE_FLAGS to use if I just want to get the file identity of a cloud file?
I have a cloud filter app and I am using CF_OPEN_FILE_FLAGS to determine the file identity of a given file, the code looks like this: CfOpenFileWithOplock(filePath, CF_OPEN_FILE_FLAGS.CF_OPEN_FILE_FLAG_EXCLUSIVE, out var…
Windows development | Windows API - Win32
cTag format is different in response headers when fetching the file contents
When I use the following API GET /drives/{drive-id}/items/{item-id} I get the following ctag value in the response body "c:{21087D96-34CA-416F-8613-F8ED59C6DB34},5" The above ctag works well with If-Match header for subsequent…
Windows development | Windows API - Win32
Cloud File API FAQ-2
Subject: Issues Encountered During Development Based on the Windows Cloud Files API Framework 1. Copying large directories containing multi-gigabyte placeholders always fails. Based on our logs, each copy operation only triggers a single implicit…
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
Best practice for long scrolling screenshot in Win32/WPF? WGC vs GDI
Summary I'm building a Win32/WPF (.NET 8) desktop app that does long scrolling screenshots. I want a stable pipeline and guidance on best practices (WGC vs other approaches). Environment OS: Windows 10/11 (build: xxx) .NET: 8.0 App type: WPF Win32…
Windows development | Windows API - Win32
can I use ef-core in c++ win 32?
I want to use efcore in win32 and can i use it ? in x64 windows i found it perfect.
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
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
Microsoft Technical Support Request: Java NIO Selector Compatibility in MSIX Packages
Date: Oct 24, 2025 Technology Stack: Kotlin Compose Desktop, Java 21, jpackage Issue Category: MSIX Packaging, Network Isolation, Java NIO Compatibility Executive Summary We are developing a desktop application using Kotlin Compose Multiplatform and…
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
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
Correct usage of DisplayTask::SetSignal
I can't get Windows.Display.Devices.Core DisplayTask::SetSignal to work as documented Sample application compiles, runs and presents content to my monitor I have created a DisplayFence by opening a shared handle to a D3D11Fence and passed that in as the…
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 debug WinHTTP API proxy detection
When Win32 application/service code calls the WinHTTP APIs that are supposed to detect administrator-configured web proxies, there is an obvious need to test that the calls work with each of the ways that a system administrator may have configured the…
Windows development | Windows API - Win32
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 =…