Content
EnumAdapters often enumerates default adapter twice on multi-GPU PC
My PC has two graphic cards, RTX A4000 and RX6400. But EnumAdapters enumrates 3 graphic cards. A4000, RX6400 and A4000 example code: Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter; for (UINT adapterIndex = 0; S_OK ==…

extents reported in USN_RECORD_V4 struct are a lot bigger than actual changes
We use USN change journal to track changes on SQL data files for performing incremental backups. For big files (of size 5 TB), we have seen USN_RECORD_V4 have extents reporting that a big portion of file is modified but actual change on the file is very…

usage of trusted execution functions (enclave)
Hi, I'm looking for explanation / tutorial / code samples about "enclaves" (aka "trusted execution functions"). I've read this page (https://learn.microsoft.com/en-us/windows/win32/api/enclaveapi/) from the doc, but it's too high…


HLSL: Image is torn
Hi, I made an HLSL shader that makes a ripple effect. It works with bitmaps or bounded effects, but the result image is torn if an infinite-output effect(in my case, CLSID_D2D1Flood) enters. So I simplified the shader to perform a 50x50 pixel transform…
Where is the documentation for the Kerberos Authentication Package
I am trying to get a Kerberos Ticket with the win32 api by calling LsaCallAuthenticationPackage in c++. The Problem is, that in the documentation about the method it tells me, that there is a void pointer called ProtocolSubmitBuffer. The description…
How to make windows layer divided into workerW1 and workerW2 layers in win8.1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; namespace ConsoleApplication9 { class Program { …
E_INVALIDARG One or more arguments are invalid while renderStream
I want get camera preview and I can enumerate the device list but in pBuild->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, pCap, NULL, NULL); there is error one or moe arguments are invalid I have init the pBuild and pCap how to get…

电池容量达到指定水平时,运行指定程序,通过taskschd.msc
Help,i dont know how to set ,what i set in taskschd.msc,XD

I want to make a transparent window by settting hbrBackground=(HBRUSH)GetStockObject(NULL_BRUSH),but not work.
I want to make a transparent window by settting hbrBackground=(HBRUSH)GetStockObject(NULL_BRUSH),When first started up, it worked well. However, after clicking the taskbar icon several times, the background of the form is no longer transparent and turns…

Duck the audio of the rest of the applications using C++ and the WASAPI
am attempting to activate the Windows default automatic audio ducking: mmsys.cpl -> “Communications tab”, inside my C++ desktop app so that I can duck only the audio of the rest of the applications but not that of mine so that any important audio is…
ReadDirectoryChangesW stops working on large amount of Files
I'm using the ReadDirectoryChangesW together with the IOCompletionQueue to receive notifications if new files are added to a specific folder. The Problem i'm currently facing is that if a huge batch copy operation happens (around 800 Files) my Program…

How download youtube videos by WinINet?
Hi I have code in Win32/ATL that can download files very well by Wininet api, but youtube url is not just simple file link! How can I download them like youtube downloaders? Thanks

XAML Island : Unable to get CTRL + Q in ProcessKeyboardAccelerators event for TextBox when ProcessKeyboardAccelerators event is attached to is parent container
Hi, I'm working on Xaml Island in cpp. I wanted to catch CTRL + Q pressed for my whole application(As a global HotKey). I attached ProcessKeyboardAccelerators event to the top most container and tried catching the Accelerator pressed. I was able to…

How to find window associated with CFileDialog Open File from AfxGetMainWindow() in MFC Application
Hello everyone, I am trying to close an MFC application from code. I have added code to save any open documents before the close function is called. I would like to close all open dialog boxes from the application before the main frame exits by sending…
InitializeSecurityContext returns SEC_E_INVALID_HANDLE (0x80090301) after providing CertContext
Greetings Windows Community, I'm using the Windows API (Schannel functions to be precise) to establish a secure connection with a server and send REST API requests, but run into an SEC_E_INVALID_HANDLE error. The connection is being established as…
WindowsApplicationForDrivers Vs WindowsUserModeDriver
I have a very basic question. What's is the difference between platforms toolsets WindowsUserModeDriver10.0 and WindowsApplicationForDrivers10.0 ? I have come across WindowsApplicationForDrivers10.0 with Configuration Type as DLL. Where exactly is the…
IMFTransform::ProcessOutput successfully returns a few uncompressed frames, but then hangs.
I have a Hardware Accelerated MFT video decoder with the following Input/Output Subtypes: Input: MFVideoFormat_H264_ES Output: MFVideoFormat_NV12 This is a very custom application that is taking an h264 video stream from a proprietary device, and then…
MFC: how to get touch screen press down event?
Hi : The app is good with mouse. I can get the L-Button-down event when pressing L-Button, and get L-Button-up event when raising finger. But with a touch screen, I only get the press down/up events after I raising my finger. How can i get the…
MFC, CEdit En_Change get Current Ctrl ID
Hello, Before I begin, let me tell you that Microsoft Q & A forms was totally Sh**, if you compare to MSDN forms. It's the third time a re-begin this message because Code Block window give some trouble when it's time to edit. Back space not at the…
How to switch to DRR using windows api?
Windows 11 has added DRR(Dynamic refresh rate) features, what if I want to switch to DRR through the windows api?