2,761 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

how to caculate subtract union intersect of two 3ds in direct3d?ddddddddsdddd

I know there is many libraries such as manifold support subtract (difference) , union intersect of two 3ds is there any way to do it in direct3d or direct2d? like 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,761 questions
asked 2025-05-03T15:34:26.2566667+00:00
mc 5,266 Reputation points
edited a comment 2025-05-04T00:37:52.9766667+00:00
Darran Rowe 1,616 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 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,761 questions
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 88,871 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 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,761 questions
asked 2025-05-02T11:40:37.33+00:00
mc 5,266 Reputation points
accepted 2025-05-03T03:28:12.0233333+00:00
mc 5,266 Reputation points
1 answer

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 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,761 questions
asked 2025-05-02T11:55:42.8333333+00:00
mc 5,266 Reputation points
commented 2025-05-03T01:23:27.7166667+00:00
mc 5,266 Reputation points
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 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,761 questions
asked 2025-04-28T07:32:47.17+00:00
Amal Krishna Jk 25 Reputation points
commented 2025-05-02T07:43:46.03+00:00
Amal Krishna Jk 25 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 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,761 questions
Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
114 questions
asked 2024-06-06T08:39:18.8033333+00:00
comor 25 Reputation points
accepted 2025-04-30T10:49:47.7733333+00:00
comor 25 Reputation points
5 answers

IUpdate2::CopyToCache method Windows 11

It seems that this method no longer works on Windows 11: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdate2-copytocache Interface not registered Do you have an idea?

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,761 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,455 questions
asked 2024-12-12T12:09:00.7133333+00:00
Simon Fonteneau 80 Reputation points
answered 2025-04-28T21:00:11.1733333+00:00
Brendan Findlay 0 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 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,761 questions
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 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,761 questions
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 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,761 questions
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 88,871 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 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,761 questions
asked 2025-04-19T02:19:28.6166667+00:00
Cristoforo Montanari 0 Reputation points
answered 2025-04-22T21:58:59.5333333+00:00
Castorix31 88,871 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 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,761 questions
asked 2025-04-07T23:49:51.5033333+00:00
David H 0 Reputation points
commented 2025-04-22T07:14:56.3466667+00:00
RLWA32 48,416 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 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,761 questions
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 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,761 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,919 questions
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 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,761 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,919 questions
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 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,761 questions
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 1,616 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 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,761 questions
asked 2024-12-06T18:42:36.9766667+00:00
Bhushan Kolhe 0 Reputation points
commented 2025-04-10T00:23:31.0466667+00:00
RLWA32 48,416 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 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,761 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,919 questions
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 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,761 questions
asked 2025-04-03T17:28:05.7233333+00:00
CDev-8220 300 Reputation points
commented 2025-04-04T13:47:50.07+00:00
CDev-8220 300 Reputation points
0 answers

OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2

We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…

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,761 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,919 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,455 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 10 Reputation points
commented 2025-04-02T17:02:33.8466667+00:00
Michael DeKlavon 0 Reputation points