2,360 questions with Windows API - Win32 tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How do i enable Visual styles

How Do I enable Visual styles when using MSYS2 MinGW-w64, in the simplest way, like how Qt Does it, I am strugglinng trying to enable visual styles in mingw-w64, i just cant find a way

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
C++
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.
3,445 questions
asked 2024-02-12T16:20:41.7866667+00:00
Diya Al deen 20 Reputation points
commented 2024-02-18T00:16:44.2366667+00:00
RLWA32 38,861 Reputation points
0 answers

NVMe Self-Test producing STORAGE_PROTOCOL_STATUS_THROTTLED_REQUEST on second run

I've implemented some code that runs the NVMe Short and Extended Self-Tests using IOCTL_STORAGE_PROTOCOL_COMMAND with the Microsoft NVMe driver (stornvme.sys). This code works as expected in that the self-tests run, I can query their progress, and…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,509 questions
asked 2021-07-23T15:15:54.5+00:00
randomhiker27 21 Reputation points
commented 2024-02-17T15:52:46.3966667+00:00
Helper Code 0 Reputation points
1 answer

How to switch system-wide input keyboard layout using IME or Text Services Framwork?

How to switch system-wide input keyboard layout using IME or Text Services Framwork in 64-bit OS without using system hooks and 32-bit to 64-bit wrappers?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-14T15:53:28.2833333+00:00
Вадим Кутьин 5 Reputation points
edited a comment 2024-02-16T10:01:26.0933333+00:00
Вадим Кутьин 5 Reputation points
2 answers

how to achieve button style in winapi

In The Windows Api(or anytime when using MinGW-w64), when creating a button they have a classic style, i want to achieve a style that dynamically varies between windows versions, on windows 11 it has grey border, white background, rounded, and blue…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-27T23:40:42.12+00:00
Diya Al deen 20 Reputation points
commented 2024-02-15T01:23:58.1033333+00:00
Tong Xu - MSFT 291 Reputation points Microsoft Vendor
1 answer

How do I access the Windows Low Level Hooks using the Windows rust crate?

I want to disable the windows key in my Rust app (Tauri). I found the official windows rust crate, although can't figure out where the low level APIs are present? Windows API official rust crate. I know this is possible because there is an MSDN article…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-12T12:49:06.7533333+00:00
Advait 0 Reputation points
commented 2024-02-14T01:39:03.5366667+00:00
Tong Xu - MSFT 291 Reputation points Microsoft Vendor
1 answer

How to extract an icon from executable and save it on disk properly? Any lightweight library?

Is there something in c++? (Windows API/ WinRT) I've tried some solutions online and none of them work. I didn't find anything useful on Github either. I want to display the icons regardless of whether the exe is still there, so I want to save the icon;…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
697 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
C++
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.
3,445 questions
asked 2024-01-20T12:01:43.6833333+00:00
youki 991 Reputation points
commented 2024-02-13T22:57:39.4866667+00:00
youki 991 Reputation points
1 answer

DuplicateOutput doesn't convert format

Hello. I'm trying to get Desktop Duplication to work on HDR and 10bit displays. But for some reason DuplicateOutput function doesn't convert the output to R8G8B8A8. If I do IDXGIOutputDuplicationPtr duplication; const DXGI_FORMAT…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2020-11-28T22:49:21.377+00:00
Daniel Beneš 1 Reputation point
commented 2024-02-13T01:02:30.9066667+00:00
David Spruill 0 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How to implement Text Input in Direct2D applications

I have forward plan after finished learn the basics of Direct2D. I know that Direct2D is not a UI Control library. But, if there any built-in support for Text Input (like <input type="text"/> in HTML) from Direct2D, I don't really…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
C++
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.
3,445 questions
asked 2022-09-15T05:58:10.277+00:00
thebluetropics 1,046 Reputation points
commented 2024-02-12T20:10:50.7333333+00:00
Kaustav Majumder 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to execute function when clicking on menuItem in .NET MAUI

I have created a context menu in .NET MAUI and want to execute an exit function when I click on the exit menuItem. However, I am not getting the WM_COMMAND message. How can I do that? Here is the code I have written so far: case…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,604 questions
asked 2024-02-07T08:51:17.68+00:00
vishesh singh 20 Reputation points
commented 2024-02-12T11:34:26.9833333+00:00
vishesh singh 20 Reputation points
2 answers One of the answers was accepted by the question author.

Open a file with an UWP app

Hello, I would like to open a file programmatically with an UWP app. To give a concrete example, I would like to open the image "hello.png" with Microsoft Photos, the Snip & Sketch tool or some image viewer downloaded from Windows Store.…

Universal Windows Platform (UWP)
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-07T20:13:57.2466667+00:00
FunkeArmband688 20 Reputation points
edited a comment 2024-02-10T20:55:39.0833333+00:00
FunkeArmband688 20 Reputation points
1 answer

Are dbghelp.dll and msdia.dll impacted by zlib vulnerabilities: CVE-2023-45853 and CVE-2022-37434?

A software composition analysis tool found that dbghelp.dll and msdia.dll from Windows SDK use zlib version 1.2.11 and 1.2.12 respectively, and these versions of zlib are impacted by the CVE records CVE-2023-45853 and CVE-2022-37434. Are dbghelp.dll and…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,431 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-06T17:58:09.3366667+00:00
Crisantos, Lennin 5 Reputation points
edited the question 2024-02-09T02:01:16.6966667+00:00
Roy Li - MSFT 31,386 Reputation points Microsoft Vendor
0 answers

Win32 : How to do MultiPage print parallelly

Hi, Im working on a desktop application in cpp. I want to print a multipage document as PDF with "Microsoft Print to PDF". I used StartDoc to start the print operation, StartPage to print the page and EndPage to finish the page. I used the…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-05T11:43:08.98+00:00
Harshithraj1871 1,421 Reputation points
commented 2024-02-08T10:53:48.7433333+00:00
Viorel 110K Reputation points
2 answers One of the answers was accepted by the question author.

How to check rounded corner?

Hi, I'm using the following code to check rounded on win11. DWM_WINDOW_CORNER_PREFERENCE preference ; DwmGetWindowAttribute(hwnd,WINDOW_CORNER_PREFERENCE, ref preference , sizeof(uint)); However it doesn't work as expected. I used window + left arrow…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,181 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-02-05T19:27:18.3733333+00:00
DangDKhanh-2637 941 Reputation points
commented 2024-02-05T20:27:58.4733333+00:00
DangDKhanh-2637 941 Reputation points
1 answer

Implementing the IShellIconOverlayIdentifier interface does not work for cloud folders created by a program using a cloud filter?

Hi dears: The IShellIconOverlayIdentifier interface has already been implemented, and it successfully overlays icons for local folders. However, icons for cloud folders created by a program using a cloud filter are not being overlaid. Why is this…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,210 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-30T10:02:30.0733333+00:00
si zuo 20 Reputation points
edited a comment 2024-02-05T06:25:25.8566667+00:00
si zuo 20 Reputation points
5 answers One of the answers was accepted by the question author.

Is there a way to detect when another app enters fullscreen?

I have an always on top application that I want to hide when another app enters fullscreen. Is there a way to detect this?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-29T04:34:29.49+00:00
Adam Gates 20 Reputation points
accepted 2024-02-02T00:45:02.2133333+00:00
Adam Gates 20 Reputation points
0 answers

RequestSample over requested because of MF_E_TRANSFORM_NEED_MORE_INPUT

Hello, I am trying to program a simple RGB stream to H264 mp4 file program and I am stuck since days with the following issue. My .mp4 file is created but the video file is way to big in size (82MB) and duration (6minutes for a 10seconde record). The…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
C++
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.
3,445 questions
asked 2023-08-07T17:33:17.3666667+00:00
bambinio 0 Reputation points
commented 2024-01-31T11:50:55.42+00:00
bambinio 0 Reputation points
1 answer

How avoid WinINet server certificate check

Hi Platform: Win32 project, VC++ In my app I use wininet to download some files, and I set security flags like below but some times I get error 12057. How fix it?! I have to remove security checks from Internet Option to fix problem! Thanks…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,431 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-25T15:58:02.9266667+00:00
drjackool 956 Reputation points
commented 2024-01-31T06:26:41.4433333+00:00
Jeanine Zhang-MSFT 8,316 Reputation points Microsoft Vendor
0 answers

How to decode H264 video using Microsoft H264 Video Decoder MFT with DXVA support?

I am using Media Foundation and I would like to decode video file using H264 video decoder from Microsoft. When I build a simple topology 'source'->'video decoder'->'renderer', DXVA seems to be active (screen from the TopoEdit for…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-21T21:59:04.5433333+00:00
Przemysław Szczepańczyk 0 Reputation points
commented 2024-01-31T05:29:54.2733333+00:00
Jeanine Zhang-MSFT 8,316 Reputation points Microsoft Vendor
0 answers

How to set the cloud file status to a red cross icon?

A program for cloud filters has been implemented according to the following URL, which displays three states for cloud files as shown in the link. Build a Cloud Sync Engine that Supports Placeholder Files How to use the Cloud Filter API functions to set…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
asked 2024-01-29T09:37:14.1233333+00:00
si zuo 20 Reputation points
commented 2024-01-31T02:35:46.26+00:00
Xiaopo Yang - MSFT 10,786 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

RPC Extended Error information: updated detection location list

Hi, I was wondering if it was possible to have https://learn.microsoft.com/en-us/windows/win32/rpc/extended-error-information-detection-locations updated for recent versions of Windows (the page only contains detection locations for Windows XP), or if…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,360 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
603 questions
asked 2023-09-19T16:21:19.34+00:00
microw31-6772 20 Reputation points
edited the question 2024-01-30T17:03:30.5+00:00
microw31-6772 20 Reputation points