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.
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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?
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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.
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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…
![](https://techprofile.blob.core.windows.net/images/-XpLZOC2C0aShkoENoH2-g.png?8D8375)
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 &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,…
![](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)