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

Sort by: Updated
0 answers

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
asked 2026-01-21T09:23:24.5766667+00:00
Xavier Julies 20 Reputation points
answered 2026-01-21T09:23:34.5066667+00:00
Q&A Assist
1 answer

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
asked 2026-01-21T09:09:04.7666667+00:00
Venkatesh Naik 40 Reputation points
answered 2026-01-21T09:09:17.31+00:00
Q&A Assist
2 answers

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
asked 2026-01-21T05:57:37.1733333+00:00
Ishwar Lakudzode 0 Reputation points
answered 2026-01-21T08:03:28.4233333+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

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
asked 2026-01-14T23:22:10.2933333+00:00
sysadmin 60 Reputation points
accepted 2026-01-20T22:10:15.75+00:00
sysadmin 60 Reputation points
0 answers

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
asked 2021-06-18T09:18:26.097+00:00
Ivan Maria 86 Reputation points
edited the question 2026-01-20T13:11:50.2166667+00:00
Gérard Oomens 116.2K Reputation points Volunteer Moderator
2 answers

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
asked 2026-01-15T02:19:14.9766667+00:00
alan henry 5 Reputation points
commented 2026-01-20T02:56:12.9133333+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-01-03T13:39:48.0866667+00:00
WEI MA 0 Reputation points
commented 2026-01-19T09:40:34.55+00:00
Michael Le (WICLOUD CORPORATION) 10,475 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-01-17T14:14:45.4566667+00:00
lee 0 Reputation points
answered 2026-01-19T07:26:14.1533333+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
2 answers

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
asked 2026-01-18T01:47:33.8166667+00:00
mc 6,596 Reputation points
answered 2026-01-19T03:40:32.12+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

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
asked 2025-12-30T14:19:30.0633333+00:00
Varun Dixit 80 Reputation points
accepted 2026-01-15T06:45:07.35+00:00
Varun Dixit 80 Reputation points
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 5 Reputation points
commented 2026-01-15T02:20:35.2866667+00:00
alan henry 5 Reputation points
1 answer

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
asked 2025-10-27T15:46:38.74+00:00
Jude Park 5 Reputation points
commented 2026-01-13T03:24:40.33+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-12-20T19:15:33.8066667+00:00
Peter Kinsey-James 0 Reputation points
commented 2026-01-12T09:46:38.35+00:00
Harry Vo (WICLOUD CORPORATION) 4,665 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

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
asked 2025-12-24T14:28:07.58+00:00
Rutger Ellen 20 Reputation points
edited a comment 2026-01-12T08:22:16.75+00:00
Gary Nebbett 6,451 Reputation points
2 answers

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
asked 2025-12-23T03:34:13.28+00:00
Lowell Liu 106 Reputation points
commented 2026-01-12T04:24:26.4+00:00
Harry Vo (WICLOUD CORPORATION) 4,665 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2025-12-20T10:27:58.7433333+00:00
Peter Kinsey-James 0 Reputation points
commented 2026-01-12T04:12:48.1266667+00:00
Harry Vo (WICLOUD CORPORATION) 4,665 Reputation points Microsoft External Staff Moderator
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-09T08:03:22.48+00:00
Michael Le (WICLOUD CORPORATION) 10,475 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
answered 2026-01-08T06:40:24.48+00:00
Michael Le (WICLOUD CORPORATION) 10,475 Reputation points Microsoft External Staff Moderator
1 answer

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
asked 2026-01-07T16:05:38.5533333+00:00
MSDN_userSince1994_newaccount2023 0 Reputation points
answered 2026-01-08T06:24:31.28+00:00
Jack Dang (WICLOUD CORPORATION) 8,220 Reputation points Microsoft External Staff Moderator
1 answer

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 =…

Windows development | Windows API - Win32
asked 2025-11-11T23:27:00.4666667+00:00
StewartBW 1,905 Reputation points
answered 2026-01-07T15:44:09.1933333+00:00
MSDN_userSince1994_newaccount2023 0 Reputation points