How to use VirtualAlloc2 memory api
Encountered a problem while compiling, error LNK2019: unable to resolve external symbols __imp_VirtualAlloc2. But VirtualAlloc is fine.
Reporting hydration errors to Clould Filter
I'm trying to simulate transfer data errors with ClouldMirror sample setting opParams.TransferData.CompletionStatus = STATUS_UNSUCCESSFUL when calling CfExecute. However, my explorer status icon remains "sync in progress" forever. What is the…
How to draw on a full screen but show drawing on a specific rectangle/window? (C++)
Hi, I have a window. I want to draw inside the window (with a pen, like in paint), but I don't want to have the drawing to be attached to the window, i.e. I don't want the drawing to move with the window, when the window is moved. I would like the…
IXAudio2MasteringVoice error when enclosed in a ComPtr : 'Release': is not a member of 'IXAudio2MasteringVoice'
I'm following XAudio2 tutorial from Microsoft: https://video2.skills-academy.com/en-us/windows/win32/xaudio2/how-to--initialize-xaudio2 I'm on Windows 8.1 x64, Visual Studio 2017. This is my code: #include "com_initializer.h" #include…
How to avoid SetCurrentProcessExplicitAppUserModelID causing duplicating of the taskbar icon?
Hi! I edited the official Microsoft sample of using custom Jump Lists in that way it invokes SetCurrentProcessExplicitAppUserModelID system call right when wWinMain started. Then if I pin the built application to the taskbar and run it, Windows…
IMFPMediaPlayer (Microsoft Media Foundation)
Dear All, I am currently involved with the application of a video playback application using the Microsoft Media Foundation. The Media Foundation API requires the usage of the header mfplay.h. More info can be found here:…
OpenEventLog rc = 1783 on Windows Server 2019
Hello. I am creating a program that reads the Windows Event log, but when I run it on Windows Server 2019, there are always cases where it fails with OpenEventLog rc = 1783. (This occurs when acquiring the event log of another Windows machine from…
How to obtain the network access destination using Windows API?
Hello, I want to monitor the destination of network access in my system, such as destination IP, domain and so on. But I can't find a Windows API to help me achieve it. In some other articles, I find that I can capture the network log by the third…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
How to disable both the Recent and Frequent categories of a custom Jump List (ICustomDestinationList)
Hello! When I create instance of ICustomDestinationList , then start the Jump Lists's building session via ICustomDestinationList::BeginList, then DO NOT invoke ICustomDestinationList::AppendKnownCategory, then end the building session via…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Getting a Specific Server (CA?) Ceritificate (most recently installed, specifically) from CA Store
I have a web server app I wrote in C++ that I had a Let's Encrypt certificate issued for. I was using it by copy-pasting the contents into a header file, but I want to try to loading the certificate from the server store so I installed it to the CA…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Win32Api Network Adapter set Power Managament
Hello! I want to change Network adapter's power managament settings. I want to check 3 checkboxes. I searched this on google but i couldn't successfull. I changed…
Advice on the best suited architecture for our application
We are developing an application which needs to communicate to displays and a cloud server. Since we need to run the application when nobody is logged in, we run our application as Windows Service. However, we also need to be able to show a UI and talk…
![](https://techprofile.blob.core.windows.net/images/217a6c8517e648768afe1ff2f883ccf6.png)
obtain the camera privacy of the application
How to obtain the camera privacy of the application through C++ programming? Is there a callback after the camera privacy setting?
How to correctly use CertFindCertificateInStore with needed parameters
I marked the other question as solved because I figured that just knowing what function to use is enough for it. But I still need to know how to correctly use that function and how to pass it the information I need to pass it, so I decided to open a new…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Under what license is the Win32 API (sepecifically GDI+) is distributed?
Recently, I used parts of the Win32 API (GDI+) in my C++ project. Although I tried to find the license of the Win32 API or GDI+, unfortunately I couldn't find any. My questions are the following: Under what license is GDI+ distributed? Is…
Error code for WSAGetLastError function
When WinSock's Bind function fails, the The error code obtained by the WSAGetLastError function is recorded in the log file. In that error log, the error code "204" is recorded as an error code, and I'm investigating what that error code…
DirectX 11 No Members Found in DXGI_SWAP_CHAIN_DESC
Hello, I am an Beginner to Direct11, I Dont know Why Visual Studio Intellisense tell me No Members found This is my Direct3dcpp file #include "Direct3d.h" #include <cstdint> #include <dxgi.h> #pragma…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Create IDXGISurface from array ID3D11Texture2D
I am trying to get HW accelerated video decoding to work in an UWP app. When using D3D11, my decoder will return a ID3D11Texture2D and an index. The texture has an ArraySize of 28. For rendering samples into UWP, I need to convert the texture to a…
Unable to read a specific file H.264 file using Media Foundation Library (Application stall)
I am from MathWorks and using the Media Foundation Library for reading video files on Windows from MATLAB. Recently, a customer of ours reported a H.264 video file that is stalling MATLAB when reading the file. Debugging our code showed that the method…
Media Foundation crash under Windows 10 only with some ASF files
Here is a minimal project that exhibits a bug of MSMF (Microsoft Media Foundation) when decoding some ASF files. The code just opens an ASF, parse the samples to get the timestamps, then reparse the samples to decode them as RGB. It runs flawlessly…