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);…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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,…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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). …
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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?
![](https://techprofile.blob.core.windows.net/images/05jRnbCoIUORBGbm2tcvDA.png?8D8179)
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
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…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
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…
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?
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…
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…
![](https://techprofile.blob.core.windows.net/images/iKiSWpaxeESKVUkvBo_ZaQ.png?8D844F)
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…
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…