2,519 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

How to set my .net Win32 Desktop forms to fit Windows 10 Light and Dark theme?

In Windows 10, after set to dark theme, why my Win32 Desktop .net program will not convert to dark mode? thank you.

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,519 questions
asked 2020-08-21T08:54:25.147+00:00
Steven Young 261 Reputation points
commented 2020-09-01T03:27:34.937+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

how to get the cpu usage by window api

i want to monitor the windows system cpu usage using c/c++ code which api can i use and how to get the cpu usage?

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,519 questions
asked 2020-08-18T12:47:17.713+00:00
Li, Cindy 1 Reputation point
commented 2020-09-01T03:26:21.187+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Programmatically register a SystemPropertyHandler

In general, property handlers are registered at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers. However, for some file types, there are special handlers that are registered at…

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,519 questions
asked 2020-08-19T01:01:12.59+00:00
loop123123 1 Reputation point
commented 2020-09-01T03:24:06.943+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

VideoProcessorMft color issue

I use Video Processor MFT to convert nv12 to rgba format, and found that, on a AMD device, the converted color is darker than source.While on intel or NVIDIA device, it feels just like the source.

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,519 questions
asked 2020-08-20T08:00:39.647+00:00
tiff yuan 1 Reputation point
commented 2020-09-01T03:23:25.31+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

MSDN Forum: cpu usage caculated by windows API is not same as the value in task manager

below is my code, but the cpu usage caculated by the code is not the same as the value in task manager. Could someone tell me where is wrong, thanks? include <iostream> include <Windows.h> static bool getSystemCPUTime(ULONGLONG…

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,519 questions
asked 2020-08-18T11:47:14.933+00:00
Li, Cindy 1 Reputation point
commented 2020-09-01T03:17:13.303+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

How can I create a IMFBytestream out of a memory block which has audio data ?

Hi I've setup TCP server/client in Windows 10. TCP server that sends uncompressed audio data to TCP client. In TCP Client, I would like to play received audio in Windows audio output device. I am planning to use Windows Media Session APIs as…

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,519 questions
asked 2020-08-10T07:56:19.733+00:00
Shakthi Prashanth 1 Reputation point
commented 2020-09-01T03:15:19.817+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Windows Portable device event monitoring using MFC C++

I need to develop an application to monitor events on Portable devices using C++ MFC. I'm using WPD API for the same. But encountering a few issues. I am not getting the Filename in case of the delete operation. and also not able to register for more…

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,519 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,634 questions
asked 2020-08-08T19:28:37.127+00:00
Aparna S A 6 Reputation points
commented 2020-09-01T03:12:49.357+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

Set max number of threads in the default thread pool

Is there a way to configure the min and max number of threads for the default thread pool? SetThreadpoolThreadMaximum seems to work only for a non-default thread pool (a pool created with CreateThreadpool): SetThreadpoolThreadMaximum(NULL, 4);…

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,519 questions
asked 2020-08-07T18:42:31.32+00:00
rustyx 1 Reputation point
commented 2020-09-01T03:10:08.58+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

Why is groupbox a button in Win32 API? (BS_GROUPBOX)

In Win32 API we create a groupbox with BS_GROUPBOX, where BS stands for button style and there are BS_PUSHBUTTON, BS_RADIOBUTTON, BS_CHECKBOX, BS_3STATE etc. Pushbutton, radiobutton, checkbox and 3-state checkbox are really buttons, but how can a…

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,519 questions
asked 2020-08-07T14:10:07.663+00:00
aoyama 1 Reputation point
commented 2020-09-01T03:07:52.353+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Experience with SSPI &amp;amp; TLS 1.3

I made some experiences with TLS 1.3 via SSPI, which is still not enabled at default. It seems to be functional, tested on Win 10, but there are some pitfalls: - max. supported message size ought be the number reported by QueryContextAttributes(context,…

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,519 questions
asked 2020-08-03T09:48:56.91+00:00
Andreas Lobbes 1 Reputation point
commented 2020-09-01T03:03:46.5+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
2 answers

Help with findstr

Hi I'm looking for some guidance in regard to using findstr (i'm not too tech savvy, and i don't have admin rights to the PC - if that is going to restrict what i am trying to do). I have to identify a specific text string in a data file (a *.flt…

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,519 questions
asked 2020-08-03T08:11:08.117+00:00
Stu 1 Reputation point
commented 2020-09-01T03:01:18.737+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Desktop Duplication API returns unreliable pointer info in Win10 version 2004

Hi there, I'm using the Desktop Duplication API for capturing pointer updates (i.e. pointer shape changes or changes between software and hardware cursor modes). The pointer info being returned under FrameInfo in AcquireNextFrame() was reflective of…

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,519 questions
asked 2020-08-02T01:52:52.86+00:00
NessaDev 1 Reputation point
commented 2020-09-01T02:59:37.093+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
2 answers

Press a button on a calculator with SendMessage WinApi

Hello, I'm trying to emulate a button click on the Window 10 calculator. Since there are no real buttons of the "Button class" in the calculator, then: I look through spy ++ which messages are sent to the calculator window when I click, for…

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,519 questions
asked 2020-08-30T18:20:45.797+00:00
Andreyka_ 136 Reputation points
commented 2020-08-31T08:52:55.05+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers One of the answers was accepted by the question author.

About Messagebox and DialogBox

I created a dialog box by DialogBox() function. But there was a problem when I tried to add a message box to my DialogProc. The message box could show but I couldn't close it. I noticed that it also couldn't be active (Its title bar was always white). …

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,519 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,634 questions
asked 2020-08-29T06:15:58.477+00:00
szx0427 101 Reputation points
commented 2020-08-29T11:25:41.787+00:00
szx0427 101 Reputation points
1 answer

change the display setting in windows 10

Hi, I have two display ports in integrated system. Based on the ports ID i need to clone or extend the displays Programatically in C++. Is any one have an idea how to clone and extend the displays? Do we have any Windows API to do it? I have used…

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,519 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,634 questions
asked 2020-08-10T08:02:04.377+00:00
Anonymous
commented 2020-08-28T08:53:15.147+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

Perfomance counter and instance names

Hi! Are there any api functions to map process id with its instance name in the following performance categories without using counter "\process\id process" process http service request queues asp.net applications https…

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,519 questions
asked 2020-08-11T08:48:05.37+00:00
Oleg Gussak 1 Reputation point
commented 2020-08-28T08:52:18.217+00:00
Rita Han - MSFT 2,161 Reputation points
0 answers

AccessCheck() and MoveFileEx() doesn't work with network mapped driver

Hi We have a NAS installed locally and mapped a folder as local driver letter, such W . Here uses credential from NAS to establish the mapping from NAS folder to local driver letter, not from Windows Active Directory. And user account is local. Any…

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,519 questions
asked 2020-08-27T07:32:10.23+00:00
Bo Zhou 1 Reputation point
commented 2020-08-27T09:39:46.8+00:00
Rita Han - MSFT 2,161 Reputation points
0 answers

WINPE 20H1 print screen capture doesn&#39;t capture all

Can someone help me. I have a capture program it can capture all window(cmd window) in winpe 19H2, but winpe 20H1 fail as picture. winpe boot into cmd window. I use below code to capture window desktop all window. I try to change…

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,519 questions
asked 2020-08-27T03:19:37.617+00:00
103 1 Reputation point
commented 2020-08-27T05:48:49.183+00:00
Drake Wu - MSFT 991 Reputation points
0 answers

Is there any way to create a virtual Speaker or Mic in C#?

And then the final Speaker/Mic can be specified through the api. Or I should ask, what is more reasonable to describe the technology or product that can do this?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
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,519 questions
asked 2020-08-25T03:44:15.337+00:00
Victor Chen 106 Reputation points
commented 2020-08-26T01:34:01.553+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

c++ load dll from resource directly

I want load dll from resource. Unfortunately I can only find examples for load dll with unpack the dll in to disk and then load it from LoadLibrary. But I want load it directly from memory if possible. How to do that? FindResource and LoadResource load…

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,519 questions
asked 2020-08-23T17:37:54.61+00:00
Code Wanderer 396 Reputation points
commented 2020-08-24T10:25:31.697+00:00
RLWA32 43,146 Reputation points