2,814 questions with Windows development | Windows API - Win32 tags
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
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
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

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

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

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

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

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
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
How to implement a Windows Custom authentication packages
I want to implement a custom Windows authentication package, but I haven't found a code example or open source project to use as a reference,Could you please provide a specific project code example for reference? Or just provide how to fill in the output…
Windows development | Windows API - Win32
File association stopped working after recent updates
I was successfully setting up a file association for a .dssfilelist extension with an associated icon held in an exe file. The relevant registry…
Windows development | Windows API - Win32
How to build an app that checks if a text file or any file is being used by another program
Hello, I want to check if a text file or any file is being used by another program, I tried to do so by chatgpt, gemini using python. But chatgpt and gemini couldn't help me(instead, they demonstrated me a thing like file lock by another program).…