2,767 questions with Windows API - Win32 tags

Sort by: Updated
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,767 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,767 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,781 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,767 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,620 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,767 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,767 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,767 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,767 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,131 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,767 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,767 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,631 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,767 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,767 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,881 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,767 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,605 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,171 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 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,767 questions
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 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,767 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 89,631 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,767 questions
asked 2025-05-02T11:40:37.33+00:00
mc 5,366 Reputation points
accepted 2025-05-03T03:28:12.0233333+00:00
mc 5,366 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,767 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 30 Reputation points
accepted 2025-04-30T10:49:47.7733333+00:00
comor 30 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,767 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,605 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,767 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,767 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,767 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 89,631 Reputation points