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

Sort by: Updated
2 answers

How to Launch a Process as Another User from a LocalSystem Windows Service

The core requirement is to run an EXE as a service under local system account which will execute another EXE under different windows user using saved credentials. Approach 1: Public Function CreateProcess( _ ByVal Domain As String, _ ByVal username As…

Windows development | Windows API - Win32
asked 2026-06-25T06:16:33.1066667+00:00
test code 21 Reputation points
commented 2026-07-02T02:47:29.14+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers

What is the security boundary of Windows Hello KeyCredentialManager credentials for desktop apps?

I am evaluating Windows Hello / KeyCredentialManager for a desktop application that protects high-value local secrets encrypted at rest. The application creates a local master key and stores it encrypted. One unlock path is password-based. Another unlock…

Windows development | Windows API - Win32
asked 2026-06-05T06:53:21.1+00:00
Roman Prudchenko 0 Reputation points
commented 2026-06-30T10:56:54.5+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
1 answer

[ReFS] Is there a supported way to obtain volume allocation bitmap information similar to FSCTL_GET_VOLUME_BITMAP on NTFS?

I am trying to determine which regions of a volume are allocated on ReFS. For NTFS, I can use FSCTL_GET_VOLUME_BITMAP to obtain the volume bitmap and identify which clusters are in use. However, the documentation does not clearly state whether ReFS…

Windows development | Windows API - Win32
asked 2026-06-23T06:36:57.8266667+00:00
zihming 40 Reputation points
commented 2026-06-30T02:56:41.76+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Logging to stderr and corresponding character encoding

I am working on the following Windows apps: Interactive: entry point - wWinMain Non-interactive: entry point - wWinMain; A pure background app with no windows or a Windows service. Command line app: entry point - wmain As evident with the entry…

Windows development | Windows API - Win32
asked 2026-06-17T11:21:19.8833333+00:00
CSK 21 Reputation points
edited a comment 2026-06-26T09:50:35.73+00:00
CSK 21 Reputation points
2 answers

Is the WinRTC project still active?

MS was at one time sponsoring a WinRTC project (https://learn.microsoft.com/en-us/winrtc/). It even had an email address "WinRtcTeam@microsoft.com." The email address seems to be no longer active. Is the WinRTC project still…

Windows development | Windows API - Win32
asked 2026-06-17T17:04:35.0766667+00:00
WoodManEXP 80 Reputation points
edited a comment 2026-06-25T07:13:16.68+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Live resize of transparent D3D11/WUC window causes swap chain content to stretch/shrink from left/top edges

Hello, I have a Win32 window with WS_POPUP, WS_EX_NOREDIRECTIONBITMAP, and a custom title bar. I render using Direct3D 11 with a swap chain created by CreateSwapChainForComposition, combined with Windows.UI.Composition (WUC). The window has an acrylic…

Windows development | Windows API - Win32
asked 2026-06-17T18:02:16.4233333+00:00
Omar_Voltex_M_O 20 Reputation points
commented 2026-06-25T02:33:12.87+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
1 answer

Windows 11 + Device Guard slows down CreateProcess + pipe output capture (ReadFile waits longer)

Hi Microsoft Support Team, We are seeing a significant performance difference between Windows 10 and Windows 11 when Device Guard (VBS/HVCI/WDAC) is enabled, and we would like your guidance on why this occurs. Issue description (technical) Our…

Windows development | Windows API - Win32
asked 2026-04-17T09:48:27.0733333+00:00
S, Ananth 0 Reputation points
edited a comment 2026-06-24T10:04:06.98+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Can a Windows DLL have a custom file extension and still work correctly with LoadLibraryExW?

I'm working on a C++ project built with CMake where most of my application logic lives inside shared libraries, and the executable (.exe) is just a minimal launcher that loads them dynamically at runtime using ::LoadLibraryExW (). Essentially the exe is…

Windows development | Windows API - Win32
asked 2026-06-24T05:48:31.62+00:00
Rohan Pande 465 Reputation points
commented 2026-06-24T07:35:11.5966667+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers

ODBC driver msi Installation is failing in wix exe bundle package

Hi Team, I have created a Wix bundle exe package. In that i'm un installing older version of ODBC driver & trying to install newer version of ODBC driver. Older version un installation is working fine, but Newer version installation is failing. Below…

Windows development | Windows API - Win32
asked 2026-06-11T13:13:45.06+00:00
Pushpala, Thejesh 0 Reputation points
commented 2026-06-23T02:28:39.1766667+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
0 answers

SCardTransmit with AID of U2F failing

Hello Windows Experts, I am using the SCardTransmit function from winscard.h to send APDUs to my U2F Device. The Device is connected via NFC with a Sony RC-S380 Reader. Selecting an arbitrary applet works normally. Except with the single required…

Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

4,079 questions
asked 2021-04-30T15:52:12.643+00:00
Tom 1 Reputation point
commented 2026-06-20T03:50:07.4633333+00:00
Aditya Mitra 0 Reputation points
2 answers One of the answers was accepted by the question author.

SampleV2CredentialProvider does not work on windows 11

Hello, I was trying to implement a 3rd party credential provider and wanted to run the sample before modifying it, on my windows11vm. I built it within the VM using visual studio 2022, but it did not change my logon screen. I have placed the DLL in…

Windows development | Windows API - Win32
asked 2026-06-16T18:35:02.9766667+00:00
Isaac Burns 20 Reputation points
commented 2026-06-18T02:33:48.9633333+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Required sdk

Good morning,   In visual studio enterprise 2019, I have three "command line" projects in C++. Two of the projects are Windows services and only one a utility which could be launched from command line. For building them I'm using SDK…

Windows development | Windows API - Win32
asked 2026-06-16T16:30:28.8833333+00:00
Egoitz Aurrekoetxea 81 Reputation points
commented 2026-06-17T07:58:04.99+00:00
Egoitz Aurrekoetxea 81 Reputation points
2 answers

how to fix a helpfile not showing Jagannatha Hora 8.0

how to fix a helpfile not showing Jagannatha Hora 8.0 software

Windows development | Windows API - Win32
asked 2026-06-05T18:38:10.2233333+00:00
M. M. Rohana Wasantha 0 Reputation points
commented 2026-06-15T08:18:35.9766667+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

[VSS] Why catalog is corrupted, and how to repair the corrupted Catalog?

According to libvshadow document, the VSS volume header is stored at offset 0x1E00 and it contains catalog offset. The catalog contains information about the individual stores, serving as an another way to analyze shadow copies. However, we found that…

Windows development | Windows API - Win32
asked 2026-06-04T06:27:25.5966667+00:00
zihming 40 Reputation points
accepted 2026-06-11T04:06:01.1166667+00:00
zihming 40 Reputation points
1 answer

Disable Wi-Fi and Trigger a One-Time Safe Boot (No Loop)

I need a command line .bat file that will: Disable wifi at the user settings level (basically turn off the setting as if you opened task bar and clicked it) Enable safe mode for a ONE TIME reboot that will not carry over on the next restart from…

Windows development | Windows API - Win32
asked 2026-06-03T01:52:54.68+00:00
Dienow3xw 0 Reputation points
commented 2026-06-10T02:31:09.2733333+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Using variadic parameters in MFC / C++20 application

I have a MFC application, but it is configured to build with the C++ 20 standard. Where useful I try to use the newer constructs. Today, I decided to try and implement some variadic functions. This is what I have so far: void…

Windows development | Windows API - Win32
asked 2026-06-07T17:58:31.1766667+00:00
ChuckieAJ 391 Reputation points
commented 2026-06-08T08:38:51.51+00:00
ChuckieAJ 391 Reputation points
1 answer

run msix packaged app as admin

Hello, To update my msix packaged app to run as Admin, what are my options? The app is a single exe, .Net Framework 4.8 WinForms, already set as runFullTrust. Set <requestedExecutionLevel level="requireAdministrator"…

Windows development | Windows API - Win32
asked 2026-06-01T09:16:12.4466667+00:00
Halifax Crosby 160 Reputation points
commented 2026-06-08T06:01:54.5166667+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Windows 11 24/25H2 : When our application is reinstalled VCruntime140.dll, msvcp140.dll and some other dlls are not getting copied.

Hi All, When our application is reinstalled VCruntime140.dll, msvcp140.dll and some other dlls are not getting copied under c:\windows\system32\ as expected. our installer is using merge modules internally to copy these dlls. when the application…

Windows development | Windows API - Win32
asked 2026-06-02T06:49:13.5166667+00:00
Gandla, Manjunath 20 Reputation points
commented 2026-06-04T06:46:29.5966667+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

System.Threading.Tasks.TaskCanceledException

我的代码: using System.ComponentModel; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; namespace CancelTokenTest { public partial class MainWindow : Window { private…

Windows development | Windows API - Win32
asked 2026-05-27T07:00:01.91+00:00
jason heung 20 Reputation points
accepted 2026-06-02T10:34:56.27+00:00
jason heung 20 Reputation points
1 answer One of the answers was accepted by the question author.

XInput on Windows 10+: Gamepad controller stops rumbling after using Alt-Tab back and forth

I'm writing a C/C++ application based on the win32 API along with XInput. Issue: I'm using XInputSetState once to set the rumble motors speed, however they stop when the app loses the focus even if it regains it after that. I would expect that regaining…

Windows development | Windows API - Win32
asked 2026-05-31T11:59:21.29+00:00
Lars-4325 20 Reputation points
commented 2026-06-02T07:44:42.1033333+00:00
Taki Ly (WICLOUD CORPORATION) 2,480 Reputation points Microsoft External Staff Moderator