2,492 questions with Windows API - Win32 tags

Sort by: Updated
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,492 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,492 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 & 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,492 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,492 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,492 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,492 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,492 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,608 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,492 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,608 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,492 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,492 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'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,492 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,705 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,492 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,492 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 42,366 Reputation points
4 answers One of the answers was accepted by the question author.

Force keyboard in digits mode

Hello, with my team we are developing a C++ Windows application which is based on Qt library for the UI part and on Win32 API for the rest. The minimum Windows version supported is Windows 8.1. In the application there are some text fields which…

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,492 questions
asked 2020-08-17T13:28:28.69+00:00
charles edouard vidoine 96 Reputation points
commented 2020-08-21T13:07:51.37+00:00
charles edouard vidoine 96 Reputation points
1 answer One of the answers was accepted by the question author.

IMFDXGIBuffer interface not found

IMFDXGIBuffer interface is missing on Windows Server 2016. I have installed "Media Foundation" feature, but the problem still exists. Also latest DirectX is installed.. What could cause this issue?

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,492 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,608 questions
asked 2020-08-17T10:17:23.413+00:00
iz111 86 Reputation points
accepted 2020-08-20T08:58:34.233+00:00
iz111 86 Reputation points
1 answer

direct2d resizing the geometry without scale, how to?

Hello I am playing with Direct2D, I was read tutorials (or how to) and documentation from microsoft site, but I still can't find info, how to resize a geometry. For example in this sample is show how is ellipse created and resized with mouse. I want…

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,492 questions
asked 2020-08-17T16:03:31.787+00:00
Code Wanderer 396 Reputation points
commented 2020-08-18T12:36:19.673+00:00
Darran Rowe 561 Reputation points
0 answers

Why are all my threads being momentarily paused?

Hi, I've been struggling with this for weeks. I have several audio threads in my application (they all have high priorities in the 20's from the multimedia class scheduler service). They are often held up for long periods of time (100ms, 300ms, even…

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,492 questions
asked 2020-08-04T16:30:08.917+00:00
PlatypusPotato 1 Reputation point
commented 2020-08-18T07:24:58.507+00:00
Carl 1 Reputation point
0 answers

Windows V2004 causes our app to show "You'll need a new app to open this ms-gamingoverlay link"

Now that Windows 10 v2004 is out, I have reports that our desktop application starts up and then the user is presented with a message: "You'll need a new app to open this ms-gamingoverlay link" Unfortunately I don't have access to this OS due…

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,492 questions
asked 2020-07-29T21:13:56.667+00:00
Holland, RD (DI SW ME PRD SDE AS) 31 Reputation points
commented 2020-08-17T16:44:55.32+00:00
Holland, RD (DI SW ME PRD SDE AS) 31 Reputation points
1 answer

Is it possible to create a simple drop shadow using GDI+ Blur?

I'm displaying bitmaps, and I'd like to add a simple drop shadow to them (like the way Explorer does in the preview pane). I figured out how to do it with Direct2D, but that was sort of overkill, so I was wondering if there's a simpler way to do it…

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,492 questions
asked 2020-08-14T12:58:13.477+00:00
loop123123 1 Reputation point
commented 2020-08-17T03:11:25.203+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer

CryptUIWizDigitalSign locks a file if it fails

Hi! I have a problem using the CryptUIWizDigitalSign-Function in C#. If I pass a file via CRYPTUI_WIZ_DIGITAL_SIGN_INFO-Structure that cannot be signed (i.e. Text-File), the function fails. But if i try to delete the file after the failure, the file is…

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,492 questions
asked 2020-07-28T11:02:20.867+00:00
Alexnbg72 1 Reputation point
answered 2020-08-13T10:02:46.657+00:00
Viorel 114K Reputation points