what is the function in direct2d
there is function addline in pcl visualizer what is the same that in direct2d? I have many slices I want to use it in direct2d the slices is pcl::PointXYZ and how to use it in direct2d?
Windows API - Win32

WMI provider sample code and customised provider fails to work with WmiPrvSe
Hi I'm not sure whether this is the right thread, however I discovered that creating the WMI provider could be a tricky Also, the sample code from Microsoft does not work. …
Windows API - Win32
My 'Send' command is not blocking when it should, and instead crashes the socket connection
My Client successfully connects to the Server and starts sending data using the 'Send' Winsock API. It continues sending data at a rate faster than the Server can process it. On Windows 10, the socket behaves as advertised, and the 'Send' blocks until…
Windows API - Win32
how to load .stl to direct3d?
I wonder how to use the file and thank you very much.
Windows API - Win32

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
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 API - Win32
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 API - Win32
Windows 11

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


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
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 Performance Toolkit
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 11
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
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

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

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

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
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
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
C++
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…