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

Sort by: Updated
0 answers

Multi-monitor setups open windows, apps and dialogue boxes in "Main Monitor" and not "Active" Monitor

As of at least the May 2025 update, a behavior change has occurred in Windows, affecting Windows 10 and 11, around where application windows, applications and dialogue box windows open when accessed in a multi-monitor setup. I have 3-monitors - laptop…

Windows development | Windows API - Win32
asked 2025-08-12T13:31:26.1166667+00:00
commented 2025-08-12T15:22:04.0133333+00:00
0 answers

Problems with SignerSignEx2

Hi! I found a problem with a Windows signing API (SignerSignEx2) with some PowerShell files. There is an article (: https://learn.microsoft.com/en-us/troubleshoot/windows/win32/signtool-corrupts-powershell-script) that deals with a similar problem with…

Windows development | Windows API - Win32
asked 2025-07-16T18:34:13.76+00:00
Alexander P 41 Reputation points
edited a comment 2025-08-12T14:54:15.7633333+00:00
RLWA32 50,066 Reputation points
0 answers

Making A Screenreader Accessible Audio Program

I'm a sight challenged woman who is a beginner at computer programming, and I'd like to find out, what is the best way to create an audio program that's accessible to screenreaders like JAWS? Specifically, I'd like to make checkboxes that when toggled,…

Windows development | Windows API - Win32
asked 2025-07-24T17:36:10.2+00:00
Annabelle Baradine 0 Reputation points
commented 2025-08-11T17:54:57.55+00:00
Annabelle Baradine 0 Reputation points
2 answers One of the answers was accepted by the question author.

Want to Develop same Application as Tray Status to get status for Kana-Lock

Hi, I am trying to develop same application as Tray Status to get only and only status of Kana-Lock Flag, I have checked different sources but I don't found kana-lock status functionality in that. So my question is that can we develop same application,…

Windows development | Windows API - Win32
asked 2025-08-06T13:35:41.98+00:00
Ajay Rathor 25 Reputation points
accepted 2025-08-11T04:13:28.52+00:00
Ajay Rathor 25 Reputation points
3 answers One of the answers was accepted by the question author.

How to Enable/Disable audio devices

Hi, I want to enable/disable audio devices listed in sound control panel (mmsys.cpl) but either through programmatically or through any power shell commands/scripts or windows internal utilities(pnputil, devcon). I tried using WMI APIs, Core Audio APIs,…

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2024-03-14T09:13:27.3433333+00:00
Ramashankar 35 Reputation points
commented 2025-08-10T17:50:59.3166667+00:00
Ricardo Curcci Fernandez 0 Reputation points
0 answers

C# app using C++ ShowWindow() call fails on Win10 IOT 1809 build 17763.6775 put works on other Win10 1809 17763.107

C# app using C++ ShowWindow() call fails on Win10 IOT 1809 build 17763.6775 put works on other Win10 1809 17763.107 I am getting the handle of an application using its title string. The using that handle to use ShowWindow(). This works on win7 and some…

Windows development | Windows API - Win32
asked 2025-08-07T11:18:48.8+00:00
commented 2025-08-07T13:26:02.37+00:00
RLWA32 50,066 Reputation points
0 answers

How to handle exceptions thrown in GraphicsCapture.dll

(I also post this question here: https://github.com/MicrosoftDocs/winrt-api/issues/2499) I use WinRT Windows.Graphics.Capture to capture screens or windows. My code is almost identical to WebRTC's implementation. However, our customers are experiencing…

Windows development | Windows API - Win32
asked 2025-08-05T11:42:40.21+00:00
Derek Lu 0 Reputation points
0 answers

Loading simple RTF containing an image does not release memory on subsequent loads

Consider this code it uses the MSFTEdit Richedit 50 control, every time you click the caption it will load the oom.rtf which contains an image, it displays the private bytes used by the process, (you can Task manager or Process explorer to the see the…

Windows development | Windows API - Win32
asked 2025-08-05T09:42:18.5566667+00:00
roy nelson 0 Reputation points
1 answer One of the answers was accepted by the question author.

Shouldn't LB_SETITEMHEIGHT force a redraw of the ListBox?

Hello folks: Developing on Windows 10 Pro, Visual Studio 17.14.9 (current), C++. This description could be very long and complicated. These are the last two steps of the failure. A ListBox with 10 items has LBS_OWNERDRAWVARIABLE enabled. …

Windows development | Windows API - Win32
asked 2025-07-26T04:05:07.5966667+00:00
Larry 20 Reputation points
accepted 2025-08-05T08:41:03.4966667+00:00
Larry 20 Reputation points
0 answers

vftable unresolved external with __declspec(dllexport) symbols

Hi, Im really stuck here and cannot for the life of me figure out what's going on. Im thinking an issue with visual studio linker, but not sure. I have generated code (its protoc generated) and there are LOT and LOTS of generated classes. So many that we…

Windows development | Windows API - Win32
asked 2025-08-01T10:51:35.58+00:00
Graham Walsh 0 Reputation points
edited a comment 2025-08-04T10:20:50.6233333+00:00
RLWA32 50,066 Reputation points
1 answer

How to create a File Explorer extension that's adding a special folder to the tree view on the left?

I'm writing a WPF application that's very much resembling File Explorer in that it shows a tree view on the left and a Details panel on the right. Is there a way to add a special folder icon to the File Explorer tree view that will launch my application…

Windows development | Windows API - Win32
asked 2025-08-01T08:30:31.63+00:00
AxD 671 Reputation points
answered 2025-08-01T09:55:21.2133333+00:00
Castorix31 90,956 Reputation points
0 answers

Handle leak in LSASS.exe and LsaIso.exe when using WMI

Hi there, I am currently puzzled by an issue where a piece of software we develop behaves wildly different when Credential guard is enabled or not. If credential guard is disabled, the WMI queries are responsive and the lsass-process is mostly running…

Windows development | Windows API - Win32
asked 2025-07-31T14:54:32.2833333+00:00
Brent 0 Reputation points
edited the question 2025-07-31T15:16:13.41+00:00
Brent 0 Reputation points
1 answer

How to build an app to check any file that is opened by another program?

I want to build an app to check any file that is opened by another program. I used python to do so(psutil). But It didn't work. I also used ChatGPT, Gemini, though they didn't provide me proper solution. I need your help using System; using…

Windows development | Windows API - Win32
asked 2025-07-22T15:10:18.3166667+00:00
Rahmatulloh 40 Reputation points
answered 2025-07-23T10:20:27.7866667+00:00
Castorix31 90,956 Reputation points
1 answer

C# .Net Native AoT - How to get pointer to Managed class to pass as parameter to Com Object

I have implemented INetworkListManagerEvents interface to get network connectivity state changes as a C# class. In my project, the INetworkListManagerEvents is code generated via CsWin32 source generator. Now at some point I have to use …

Windows development | Windows API - Win32
asked 2025-07-23T07:07:44.94+00:00
Gueztt 1 Reputation point
commented 2025-07-23T18:38:56.6+00:00
RLWA32 50,066 Reputation points
0 answers

WebClient stopped working after redirect

Hello everyone, I've added this to my .htaccess to redirect all www and non-www request to the https-with-www: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC] RewriteCond %{https} off RewriteRule ^(.*)$ https://www.domain.com/$1…

Windows development | Windows API - Win32
asked 2025-07-23T07:54:31.5033333+00:00
StewartBW 1,870 Reputation points
0 answers

WebClient stopped working after redirect

Hi I enabled redirect for my website to forward www and non-www http requests to the https version. After that, WebClient UploadValues (WebRequestMethods.Http.Post) stopped working while DownloadStringAsync and DownloadFileAsync still works as…

Windows development | Windows API - Win32
asked 2025-07-23T08:06:56.5966667+00:00
StewartBW 1,870 Reputation points
0 answers

How to show some message to user in Explorer for VFS apps based on CloudFile APIs

Creating a prototype app similar to OneDrive, where we need to show some user action message to the User when app is not running or when user has signed-out from VFS app, similar to what is shown by OneDrive. Can someone suggest how we can achieve it?

Windows development | Windows API - Win32
asked 2025-07-23T11:06:48.45+00:00
Vivek Kumar 0 Reputation points
edited the question 2025-07-23T11:08:06.0166667+00:00
Vivek Kumar 0 Reputation points
1 answer

can I draw a offset using direct2d?

I am using direct2d to draw something. and I want to ask that how to draw a offset. like that I scroll the page and then what I draw should go up some pixel.

Windows development | Windows API - Win32
asked 2025-07-26T03:18:20.27+00:00
mc 5,651 Reputation points
answered 2025-07-26T22:16:38.3+00:00
Castorix31 90,956 Reputation points
0 answers

Is there any way I can customize crash dump file names and append timestamp ?

Hi , I am implementing some features of a c++ windows exe and have configured WER : That is entries at : Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps What I wanted to know , if there is any way I can…

Windows development | Windows API - Win32
asked 2025-07-28T12:10:07.1166667+00:00
Rudresh Joshi 0 Reputation points
0 answers

Neither the widget in C# from MS Learn Sample nor one I've made using official MS walkthrough guide will work when pinned

So, with a very big amount of frustration is that I come here to post this question. About a week ago I had been messing things up with an idea of a Google Photos Windows Widget similar to the standard existing for Android one, by following this guide:…

Windows development | Windows API - Win32
asked 2025-07-31T15:03:59.3633333+00:00
Nacho 0 Reputation points