How to obtain information about CPU, RAM, GPU
I have been making a small tool recently One of the functions requires obtaining the current CPU, RAM, GPU usage rate of the system How can I currently obtain the usage rate of CPU, RAM, and GPU? Are there any APIs available? My tool is compatible with…
Windows API - Win32

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
C++
Windows 11
Recommended Way to log to stderr in a wWinMain GUI app launched from a terminal, for diagnostics when GUI fails or app runs in background?
For int main() apps, writing to stderr works fine with shell redirection, but with wWinMain, the file is created but stays empty (tried to use 2> stderr_log.txt). I’d like to know if there’s any supported way to make stderr functional (e.g.,…
Windows API - Win32
Idioma de los videos
Los videos estan en idioma ingles con subtitulos en ese mismo idioma, ¿puedo cambiar a español o tener subtitulos en español?
Windows API - Win32
How to update ACL permission on placeholders created by CFAPI (Cloud Filtre API)
Trying to experiment on creating a VFS (Virtual File System ex OneDrive sort of) on windows using CFAPI (Cloud Filter Win32 API), this VFS basically replicates the cloud file system on the local desktop. I need to update the ACL permissions on…
Windows API - Win32
how to convert IMFMediaBuffer to ID3D11Texture2D?
I am using IMFTransform and there is IMFMediaBuffer that format is DXGI_Format_NV12 and I use this code: BYTE* ppbBuffer3 = NULL; DWORD pcbMaxLength = 0, pcbCurrentLength = 0; buff->Lock(&ppbBuffer3, &pcbMaxLength,…
Windows API - Win32
Why doesn't DnsServiceRegister create mDNS A/AAAA records?
Hello, I am trying to register a DNS-SD service using the win32 APIs. When I call DnsServiceRegister with valid IPv4 and IPv6 addresses, I don't see these addresses broadcasted by the system. I inspected the mDNS traffic with Wireshark and I only see…
Windows API - Win32
How to read PDF file from the disk and print it using printer in C++/winrt/win32 app
I have a PDF file stored at some location filePath, I want to read PDF and print it using printer (I have printer name). How can I achieve it in C++/winrt/win32 desktop application.
Windows API - Win32
Can encrypted folders or files be prevented from reuploading?
How could users encrypt folders or files, so that it can be prevented from uploading? Would it take a console command line library in Windows shell? I am certain that there are many options for users who want to their future products from…
Windows API - Win32
Windows Server

Remote Desktop Services - Disable RPC calls from another machine
Hi, Is it possible to disable Remote Desktop Services RPC calls from remote machines? I'm referring to the "Terminal Services Terminal Server Runtime Interface Protocol": …
Windows API - Win32
Remote Desktop
Windows Server

Why does GetFileVersionInfo return incorrect File Versions for DLLs?
The goal is to retrieve the File Versions of DLLs from the file's "Properties" -> "Details" tab using the Version Information functions listed here. However, when accessing DLLs in the Windows system directories (SysWOW64 and…
Windows API - Win32
SetWindowDisplayAffinity bad usecase
Hey, We have a classroom of exam computers that are monitored by the class admin through a remote feed that uses the Windows API to take screenshots at specified intervals. Some students have found that if they execute an app with…
Windows API - Win32
can not connect to the server?
I want to connect to the server but there is error:10047 s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (s == INVALID_SOCKET) { WSACleanup(); return; } sockaddr_in sock; sock.sin_family = AF_INET; sock.sin_port =…
Windows API - Win32
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
