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

Sort by: Updated
0 answers

how to load .stl to direct3d?

I wonder how to use the file and thank you very much.

Windows development | Windows API - Win32
asked 2025-05-11T03:14:02.1866667+00:00
mc 5,511 Reputation points
commented 2025-05-11T07:29:09.8833333+00:00
Castorix31 90,686 Reputation points
1 answer One of the answers was accepted by the question author.

how to draw 3d in direct3d?

I want to draw 3d using some values. can I do it? what 's more can I compare two 3d 's difference and get new 3d?

Windows development | Windows API - Win32
asked 2025-05-02T11:55:42.8333333+00:00
mc 5,511 Reputation points
commented 2025-05-11T01:21:46.3+00:00
mc 5,511 Reputation points
3 answers

Why is the idFrom field in the NMHDR struct a UINT_PTR type? Control identifiers are 16-bit unsigned.

Can I assume that all control identifiers will fit in an unsigned 16-bit field for the WM_NOTIFY message? I have the same question about control notification codes even though the NMHDR uses a 32-bit integer for the codes. This is true for WM_COMMAND…

Windows development | Windows API - Win32
asked 2025-05-08T03:55:09.8733333+00:00
Anthony Bourque 0 Reputation points
answered 2025-05-08T19:52:43.33+00:00
Darran Rowe 2,066 Reputation points
4 answers One of the answers was accepted by the question author.

Change Accent Color for Taskbar on Windows 11 via Registry

Hi, I would like to know, how to change registry Accent Color value for Taskbar. This color of Taskbar appears, when I change HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\ColorPrevalence to 1

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2024-09-09T10:51:55.53+00:00
Jacob Mordon 225 Reputation points
answered 2025-05-07T12:21:57.42+00:00
Pavel yannara Mirochnitchenko 13,336 Reputation points MVP
0 answers

Issue with Wallpaper Turning Black After Logout/Login Using SystemParametersInfo in Remote Control

Hi, I am remotely controlling a Windows device through an agent. I set the desktop wallpaper using the following APIs: SystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, m_strWallPaperName, 0); SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,…

Windows development | Windows API - Win32
asked 2025-04-28T07:32:47.17+00:00
Amal Krishna Jk 25 Reputation points
commented 2025-05-07T06:15:50.55+00:00
Amal Krishna Jk 25 Reputation points
1 answer

How do I get the current FPS of an application through C++?

Hello! I'm thinking about creating an application which would display the current framerate. I would like to find out if there's a way I can query the FPS a game is running at. It's definitely possible, as apps such as Xbox Game Bar can display the FPS…

Windows development | Windows API - Win32
asked 2025-05-03T04:07:22.0366667+00:00
Noah Thompson 5 Reputation points
edited an answer 2025-05-03T08:22:03.9666667+00:00
Castorix31 90,686 Reputation points
2 answers One of the answers was accepted by the question author.

what is the difference between RenderTarget.DrawTextW and DWrite?

there is DrawTextW in d2d1 and DWrite can also draw text. what is the difference?

Windows development | Windows API - Win32
asked 2025-05-02T11:40:37.33+00:00
mc 5,511 Reputation points
accepted 2025-05-03T03:28:12.0233333+00:00
mc 5,511 Reputation points
2 answers One of the answers was accepted by the question author.

How to programatically get NPU utilization using C/C++/C#

如果一台PC有NPU,那么在Windows 11任务管理器中,“性能”页面就会显示NPU的信息(包括使用率),一般来说,这个页面显示的信息从“性能计数器(PDH)”中获取,但是我并没有找到对应的计数器。有谁知道这个NPU使用率从哪儿获取吗? If a PC has an NPU, then in the Windows 11 Task Manager, the "Performance" page will display the information of the NPU…

Windows development | Windows API - Win32
Windows development | Windows Performance Toolkit
asked 2024-06-06T08:39:18.8033333+00:00
comor 50 Reputation points
accepted 2025-04-30T10:49:47.7733333+00:00
comor 50 Reputation points
1 answer One of the answers was accepted by the question author.

Behavior of 64-bit Application Creating Registry Key Directly Under WOW6432Node

Hi, I have a question regarding registry behavior on a 64-bit Windows system. If a 64-bit application explicitly creates a registry key under: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\... Will the key be created successfully, or is this action restricted…

Windows development | Windows API - Win32
asked 2025-04-24T05:44:56.9933333+00:00
Amal Krishna Jk 25 Reputation points
commented 2025-04-28T04:53:48.28+00:00
Amal Krishna Jk 25 Reputation points
1 answer

Computer %ComputerName%

I am trying to create a registry group policy to Show desktop icons in Windows 10. I want the Computer and Users Files to show on the desktop. I have accomplished the Computer and Users Files through a global group policy but the "Computer"…

Windows development | Windows API - Win32
asked 2021-01-08T16:08:22.39+00:00
Cindy P 1 Reputation point
commented 2025-04-25T14:43:09.61+00:00
Paul van Voorst 0 Reputation points
0 answers

How to turn off visual styles for a control using SetWindowTheme function on Windows 11?

With "visual styles" enabled by the host application, radio button and checkbox controls no longer send WM_CTLCOLORSTATIC messages. We rely on these messages to provide dark mode support by customizing colors. The solution was to disable visual…

Windows development | Windows API - Win32
asked 2025-04-22T18:49:32.52+00:00
Jain Zachariah 0 Reputation points
edited a comment 2025-04-23T07:16:13.26+00:00
Castorix31 90,686 Reputation points
1 answer

Why is the Win32 Tab and Tab ID not showing in the client area of the main window?

WinMain.cpp: #define _CRT_SECURE_NO_WARNINGS #define WIN32_LEAN_AND_MEAN #define _WIN32_WINNT 0x0601 // Target Windows 7 or later #define WIN_32_EXTRA_LEAN #define UNICODE #define _UNICODE #include "glad/glad.h" #include…

Windows development | Windows API - Win32
asked 2025-04-19T02:19:28.6166667+00:00
Cristoforo Montanari 0 Reputation points
answered 2025-04-22T21:58:59.5333333+00:00
Castorix31 90,686 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-04-22T07:14:56.3466667+00:00
RLWA32 49,636 Reputation points
0 answers

What should I do about this Windows Authoring Guide infinite login loop?

I’m trying to contribute to this GitHub repository: https://github.com/MicrosoftDocs/win32. Its CONTRIBUTING.md file says: You can find guidance on using this repo in the Windows Authoring Guide. Whenever I click on that Windows Authoring Guide link,…

Windows development | Windows API - Win32
asked 2025-04-20T23:24:53.2266667+00:00
Jayman 110 Reputation points
1 answer

How to set monitor scaling to recommended or desired scaling with c++ ?

I am trying to set scaling to windows recommended scaling or to desired one (100%,150%,...) for monitor in C++. I have monitor handles (type: HMONITOR). Is that enough or do I need anything else how would I set scaling from code.

Windows development | Windows API - Win32
Developer technologies | C++
asked 2023-08-24T10:16:37.58+00:00
Jaka Kostanjevec 0 Reputation points
commented 2025-04-17T20:39:06.86+00:00
Apoorve Singhal 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to get a notice when a up aroow key is pressed in C language

Hi, I like to move a picture on the screen by clicking up, down, right, left arrow on the key board. Is there a way to get a notice in my software when “up arrow key” in keyboard is pressed, as an example. I tried bres=IsInputKey(0); How do I find out…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2021-02-24T22:29:33.553+00:00
Chang Chi 61 Reputation points
accepted 2025-04-17T18:26:32.7366667+00:00
Chang Chi 61 Reputation points
0 answers

Behaviour of CoRegisterClassObject and PackagedCOM

I'm trying to build my CommandPalette extension, which is a out-of-process COM server. However, my native extension fails getting picked up by CoCreateInstance in CmdPal, causing a null pointer on the CmdPal side, while C#-based alternative…

Windows development | Windows API - Win32
asked 2025-04-10T16:41:04.3666667+00:00
Nyuan Zhang 0 Reputation points
commented 2025-04-13T19:30:40.1133333+00:00
Darran Rowe 2,066 Reputation points
2 answers

How to avoid minimize on show desktop or peek desktop from an application.

Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…

Windows development | Windows API - Win32
asked 2024-12-06T18:42:36.9766667+00:00
Bhushan Kolhe 0 Reputation points
commented 2025-04-10T00:23:31.0466667+00:00
RLWA32 49,636 Reputation points
0 answers

How to use DeviceIOCommand (IOCTL_STORAGE_PROTOCOL_COMMAND) integrate with ufs device

Hi, Currently i'm working on sending query request upiu to ufs device by using DeviceIOControl(IOCTL_STORAGE_PROTOCOL_COMMAND) but i'm getting ERROR_INVALID_FUNCTION on getLastError(). Can you please provide sample code or documentation on…

Windows development | Windows API - Win32
Developer technologies | C++
asked 2024-07-23T07:42:03.5333333+00:00
yh_yong 0 Reputation points
commented 2025-04-07T01:45:00.2933333+00:00
Ma Ronie 0 Reputation points
0 answers

Why is there a problem with the DXGI_USAGE flag regardless of what I set it to?

My IDXGIFactory2::CreateSwapChainForComposition fails every time with the following error: DXGI ERROR: IDXGIFactory::CreateSwapChain: The BufferUsage field of the swapchain description contains some DXGI_USAGE flags that are not supported.…

Windows development | Windows API - Win32
asked 2025-04-03T17:28:05.7233333+00:00
CDev-8220 385 Reputation points
commented 2025-04-04T13:47:50.07+00:00
CDev-8220 385 Reputation points