2,772 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-06-09T09:32:24.4133333+00:00
梓珺 张 40 Reputation points Volunteer Moderator
answered 2025-06-09T14:12:53.8+00:00
Castorix31 89,711 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,772 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,955 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,676 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 10 Reputation points
commented 2025-06-09T14:10:36.2733333+00:00
Kevin Stanush 0 Reputation points
3 answers One of the answers was accepted by the question author.

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-06-04T10:29:49.41+00:00
Varun Dixit 20 Reputation points
accepted 2025-06-06T09:51:04.8133333+00:00
Varun Dixit 20 Reputation points
0 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2021-02-07T00:51:17.377+00:00
commented 2025-06-04T23:51:48.64+00:00
Delcy Garcia Rojas 0 Reputation points
0 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-06-04T07:14:45.8+00:00
Shakti Swarup Panda 0 Reputation points
1 answer

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-30T11:30:07.4233333+00:00
mc 5,366 Reputation points
commented 2025-06-03T14:58:09.9466667+00:00
mc 5,366 Reputation points
0 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-06-03T06:27:36.3333333+00:00
Sameer Puri 0 Reputation points
1 answer

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2024-04-02T11:11:15.68+00:00
Shyam Butani 355 Reputation points
commented 2025-06-02T08:36:37.95+00:00
Shyam Butani 355 Reputation points
1 answer One of the answers was accepted by the question author.

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 API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-25T09:22:15.687+00:00
JohnCTX 636 Reputation points
edited the question 2025-05-29T21:59:04.6633333+00:00
DillanSimmons 6 Reputation points Admin
2 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,782 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-11-21T21:52:05.63+00:00
gabriel sztejnworcel 31 Reputation points
edited the question 2025-05-29T21:52:36.76+00:00
DillanSimmons 6 Reputation points Admin
1 answer

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-28T14:58:09.8833333+00:00
Nagy Balazs 0 Reputation points
commented 2025-05-29T17:47:24.7233333+00:00
David Lowndes 2,625 Reputation points MVP
6 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2024-04-10T09:58:17.7933333+00:00
Marius Ukt 0 Reputation points
answered 2025-05-28T02:53:14.68+00:00
尼玛 王 0 Reputation points
1 answer

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-21T07:46:54.5+00:00
mc 5,366 Reputation points
answered 2025-05-21T08:05:15.64+00:00
LISBOA-4826 240 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-11T22:51:21.3733333+00:00
mc 5,366 Reputation points
accepted 2025-05-17T11:11:34.9933333+00:00
mc 5,366 Reputation points
1 answer

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-09T09:41:43.7933333+00:00
AndreyV 0 Reputation points
commented 2025-05-13T06:59:46.39+00:00
RLWA32 49,301 Reputation points
0 answers

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
asked 2025-05-12T17:45:25.77+00:00
Chris Grossman 5 Reputation points
0 answers

how to load .stl to direct3d?

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

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,772 questions
asked 2025-05-11T03:14:02.1866667+00:00
mc 5,366 Reputation points
commented 2025-05-11T07:29:09.8833333+00:00
Castorix31 89,711 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 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,772 questions
asked 2025-05-02T11:55:42.8333333+00:00
mc 5,366 Reputation points
commented 2025-05-11T01:21:46.3+00:00
mc 5,366 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 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,772 questions
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 1,981 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 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,772 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,676 questions
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,176 Reputation points MVP