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

Sort by: Updated
1 answer

deprecated functions

Hi, Using this code in VB.NET WinForms, .NET Framework 4.8: Private Function IsWindows10OrGreater(Optional BuildNo As Integer = -1) As Boolean Return Environment.OSVersion.Version.Major >= 10 AndAlso Environment.OSVersion.Version.Build >=…

Windows development | Windows API - Win32
asked 2025-07-15T10:32:17.9166667+00:00
StewartBW 1,830 Reputation points
answered 2025-07-15T17:31:57.7566667+00:00
Darran Rowe 2,076 Reputation points
3 answers One of the answers was accepted by the question author.

Win32 : unable to set window title

Hi, I'm working on win32 desktop application. I used CreateWindowExW() API to create a window. LPCWSTR title = L"SAMPLE TITLE"; // Create Window With properties window = CreateWindowExW (NULL, …

Windows development | Windows API - Win32
asked 2024-01-04T07:19:08.4633333+00:00
Harshithraj1871 1,706 Reputation points
answered 2025-07-15T17:03:12.4733333+00:00
Gerardo Sanchez 0 Reputation points
0 answers

Windows LSA carefully blocks mDNS.dll from Bonjour

I know that the problem with old signed mDNS.dll is well known but i wonder if there is some substitute for Windows that is supported and simillar in working (discovery local services)?

Windows development | Windows API - Win32
asked 2025-07-15T06:45:56.66+00:00
Szymon Kubica 0 Reputation points
commented 2025-07-15T15:28:10.07+00:00
Mike Bowen 2,051 Reputation points Microsoft Employee Moderator
1 answer One of the answers was accepted by the question author.

How to get Select User dialog programically in C#?

Hi, Is there a way to programmatically access the "Select User" dialogue from the Windows Services Log On program in C#? I'm trying to register a service from my installer, and I'd like the user to choose the "Log On As" for the…

Windows development | Windows API - Win32
asked 2025-07-14T07:19:09.1766667+00:00
Xavier Julies 20 Reputation points
accepted 2025-07-15T09:14:13.0066667+00:00
Xavier Julies 20 Reputation points
1 answer

ListView in-place edit box not showing correct Unicode character when typed

Issue Description When using an ANSI application that uses the UTF-8 code page, typing a non-ASCII character into a ListView's in-place edit box will result in nonsense characters being entered. I have observed this by using a UK keyboard and attempting…

Windows development | Windows API - Win32
asked 2025-04-07T23:49:51.5033333+00:00
David H 0 Reputation points
commented 2025-07-15T04:56:03.61+00:00
RLWA32 49,666 Reputation points
1 answer One of the answers was accepted by the question author.

CPU and disk usage values which we get from windows API (Using PDH) is not same as the value we see in task manager

I am currently using the PDH (Performance Data Helper) API to log CPU and Disk utilization data in a CSV file. Below is a snippet of the code I am using: #include

Windows development | Windows API - Win32
asked 2024-12-05T15:51:07.8166667+00:00
Chandan M S 20 Reputation points
edited the question 2025-07-14T03:38:55.74+00:00
Lynn Dang (WICLOUD CORPORATION) 0 Reputation points Microsoft External Staff Moderator
0 answers

WH_MOUSE_LL: I recieve mouse event messages most of the time except for when the forground window is focused on Chrome

My application installs a system-wide WH_MOUSE_LL hook to receive mouse events. When a Google Chrome window has focus, the hook stops receiving events entirely. As soon as focus shifts to another application—such as Microsoft Edge or any other window—the…

Windows development | Windows API - Win32
asked 2025-07-13T18:05:55.3233333+00:00
Braden Curtis 0 Reputation points
commented 2025-07-13T20:21:29.01+00:00
Braden Curtis 0 Reputation points
0 answers

RegisterPointerInputTarget blocks touch interaction with Windows Taskbar

I have been investigating options for implementing a press-and-hold trigger\gesture using the touch screen (as cannot re-use WH_MOUSE_LL, that worked with older touch screen drivers [in "mouse-emulation mode"]). This is intended for pressing…

Windows development | Windows API - Win32
asked 2025-07-05T15:41:34.5333333+00:00
Mark Bewley 51 Reputation points
commented 2025-07-13T18:21:35.3133333+00:00
Mark Bewley 51 Reputation points
0 answers

Inquiry: Timeline and Support for Post-Quantum Cryptography (PQC) in Schannel

Inquiry: Timeline and Support for Post-Quantum Cryptography (PQC) in Schannel I would like to know when Microsoft plans to officially support Post-Quantum Cryptography (PQC) — particularly hybrid key exchange mechanisms like Kyber — in the Schannel…

Windows development | Windows API - Win32
asked 2025-07-10T13:14:44.4233333+00:00
Subrat Kumar HOTA 0 Reputation points
0 answers

Order of captured UIA events is different on Win10 and Win11

Hello, I noticed, there is different order of captured UIA events, when I combine firing my own events with "native" ones. Let's give an example. I have simple MFC application with two buttons - "Click Me" and "Simulated…

Windows development | Windows API - Win32
asked 2025-07-08T09:14:42.4633333+00:00
Samuel Valencik 0 Reputation points
commented 2025-07-09T12:11:57.4666667+00:00
Samuel Valencik 0 Reputation points
1 answer

How to read and output the NPU utilization

Hi All How to use the following MS learning to read and output the NPU utilization. Thank you. https://learn.microsoft.com/en-us/windows/win32/api/activitycoordinatortypes/ne-activitycoordinatortypes-activity_coordinator_resource

Windows development | Windows API - Win32
Developer technologies | C#
asked 2024-06-18T05:32:45.61+00:00
John Huang 0 Reputation points
edited a comment 2025-07-08T18:55:21.73+00:00
KristofT 0 Reputation points
1 answer

How to Uninstall Msix installed application from all users with winAPIs

What Windows API can be used to completely remove all residual data of an MSIX-installed application, including cleaning up the associated folder under "C:\Program Files\WindowsApps"?

Windows development | Windows API - Win32
asked 2025-06-20T12:06:32.45+00:00
Sreekanth N Kartha 60 Reputation points
commented 2025-07-07T21:51:52.3333333+00:00
Darran Rowe 2,076 Reputation points
0 answers

IMFTransform can not decode file using gpu?

I am using IMFTransform to decode h264 file and it is Annex B not AVCC. If I use gpu (ID3D11Device) it will only do 300ms if I do not use gpu. it will decode fine. why?

Windows development | Windows API - Win32
asked 2025-07-07T12:53:30.32+00:00
mc 5,571 Reputation points
2 answers

Exception in KernelBase.dll!MultiByteToWideChar() when adding a node to a TreeView in code previously working

I have a C++ Win32 application that has been working without issues for several years. However, when I now build and run the application, I get an exception when sending a TVM_INSERTITEM message to a TreeView control: `HTREEITEM newNode =…

Windows development | Windows API - Win32
asked 2025-07-02T11:38:04.8866667+00:00
John Dowson 5 Reputation points
commented 2025-07-05T17:19:10.56+00:00
David Lowndes 2,640 Reputation points MVP
0 answers

Is there an equivalent to Linux's AppImage for Windows?

Is there an equivalent to Linux's AppImage for Windows that is natively supported? I want to develop a cross-platform application and really like how a linux user can just install the appimage of an application from the web and the program can run…

Windows development | Windows API - Win32
asked 2025-07-04T05:40:58.6633333+00:00
Salih Eren Sağırlı 0 Reputation points
commented 2025-07-04T23:49:42.8866667+00:00
Darran Rowe 2,076 Reputation points
0 answers

rtl250.bpl running problem

rtl250.bpl missing to run an Rad Studio project

Windows development | Windows API - Win32
asked 2025-07-04T14:42:54.73+00:00
György Szász 0 Reputation points
0 answers

Parameters to Create a Visual Studio 2022 Installer for Offline Update

I have been trying to create a Visual Studio 2022 installer to update a customer's machines that are not on the internet. I have read all the instructions and tried all of the examples (with and without layout, etc.) Tried the typical --noWeb,…

Windows development | Windows API - Win32
asked 2025-07-03T11:43:40.0566667+00:00
Bob Sanders 0 Reputation points
0 answers

Windows 11 AlphaBlend Transparency Bug (AlphaFormat=0) - Solution: Use AC_SRC_ALPHA with Premultiplied Alpha

Its a duplicate of my post on SO, but I hope it may help someone here too. After some Windows 11 updates, I have recently ran into a problem where GDI’s AlphaBlend function stopped working correctly when BLENDFUNCTION parameters SourceConstantAlpha !=…

Windows development | Windows API - Win32
asked 2025-06-30T08:35:25.99+00:00
Celicom 0 Reputation points
commented 2025-07-02T20:55:49.0633333+00:00
Darran Rowe 2,076 Reputation points
0 answers

UP printer reports don't contain page count info

When we query https://graph.microsoft.com/v1.0/reports/printUsageByPrinter we get lots of info but pageCount is always zero for all Universal Print printers. We've used other endpoints and it's always the same for both v1.0 and beta. We went to the…

Windows development | Windows API - Win32
asked 2025-07-02T15:54:44.8966667+00:00
Joe McLain 6 Reputation points
1 answer One of the answers was accepted by the question author.

ManagementObject fastest route

Hi experts, Is my usage efficient? I only need some properties like Manufacturer, Name, Description etc... If I limit the properties to return by the ManagementObject it will run faster? If so, what's the fastest way? Dim Search As New…

Windows development | Windows API - Win32
asked 2025-06-28T07:59:24.9566667+00:00
StewartBW 1,830 Reputation points
accepted 2025-06-29T01:02:13.9966667+00:00
StewartBW 1,830 Reputation points