How do I use Header Units with the Windows Desktop Application default template and resolve conflicts with headers?
I am trying to use Header Units in a Desktop Application, but am getting problems with headers, and the .ifc file. Problems with gdi, and DirectX header includes : C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\GdiplusEnums.h(27,13):…
How do I filter GPUs by type in DXGI (integrated vs dedicated device)?
Hello! I have written an extension for the Elgato Stream Deck using C++ and Microsoft DXGI (available here) that queries the utilization of the user's GPU and displays it on the Stream Deck. I need to be able to filter out integrated GPUs and only…
Windows 10 - What do the individual parts of the game controller calibration values in the registry represent?
Greetings! I am running Win-10 pro. I have a Saitek X52 joystick game controller that has a problem with the "twist" (rudder) axis where it doesn't show the full range of values, and the "center" is offset to the left of center. (I…
How to deal with duplicates in OutLook Global Address list with Win32Com (Python)
I'm trying to create a Python script that searches for entries in a GAL (Global Address List) to be processed. However, there are contacts in the GAL that have the exact same name as others, and I can't find a way to detect duplicates without looping…
How can I create a Gaussian blur with a printer render target using Direct2D?
I am using Direct2D to generate diagrams. I want to create a glow-effect around diagram boxes, using Gaussian blur. In order to do this, I paint a rectangle to an off-screen render target, blur it, and then get the off-screen render target's bitmap and…
Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString
I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…
How to avoid minimize on show desktop or peek desktop from an application.
Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…
Information not available, no symbols loaded for AppxPackaging.dll
Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…
why use SetupDiGetDeviceRegistryProperty get SPDRP_CLASSGUID always return the same id
I use the following demo to simultaneously obtain the instanceId and guid of the device, but on my computer, all devices obtain the same SPDRP_CLASSGUID value. Why is this? int main() { HDEVINFO hDeviceInfoSet =…
What does the POINTER_INFO frameId really mean or guarantee?
I'm having trouble understanding what the frameId really means. Are all devices generating simultaneous pointers combined into one frame with the same frame id? I am having trouble understanding this description: "An identifier common to multiple…
How to find the Boot Volume GUID using Windows APIs?
I am quite new to Win32 programming. Pardon me for any mistakes in the question. I am trying to get the GUID of the Boot Volume of the system of which I have device path which I found by querying the BCD device path through registry function. I tried to…
Issues with Custom Page Size on OKI MICROLINE 8480FB Using Windows API and C++
I'm working with the Windows API in C++ to set a custom page size for a dot-matrix printer (OKI MICROLINE 8480FB). I successfully configured the page size to 16 inches in width and 21 inches in height. Using this setup, I can print content at the…
IUpdate2::CopyToCache method Windows 11
It seems that this method no longer works on Windows 11: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdate2-copytocache Interface not registered Do you have an idea?
Changes to SEH on Windows 11 24H2 causing problems
Our Fortran Win32 system has been around a long time. One thing it does is when a calculation underflows it can truncate to zero immediately. The advantage is that the value doesn't continue to lose precision which is important for some calculation. To…
About DhcpGetClientInfoV6 function in dhcpsapi.h
When I used the DhcpGetClientInfoV6 function in dhcpsapi.h, it returned code 2. After searching, I found the content, but I couldn't understand it. $ .\Err_6.4.5.exe 2 # for hex 0x2 / decimal 2 BTH_ERROR_NO_CONNECTION …
user32.dll!UserCallWinProcCheckWow()
My MFC embed WPF, and sometimes I want to show a WPF dialog, it will crash. I find below difference, and want to know when execute the two functions. there is not parameter in the crashed call stack: user32.dll!UserCallWinProcCheckWow() there are…
Question about Using SetFileCompletionNotificationModes with IOCP in Non-blocking Winsock Operations
Hello everyone, I'm currently working on a project where I am using WinSock to create both UDP and TCP sockets. The sockets are set in non-blocking mode using ioctl, and I am using overlapped operations with an I/O Completion Port (IOCP) to handle…
SymFromAddr api returning 487 error code
SymFromAddr api returning 487 error codex for the following code: DWORD64 dwDisplacement = 0; char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(CHAR)]; PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer; pSymbol->SizeOfStruct =…
NetWkstaUserEnum is bugged, it is impossible to use resumeHandle
Referring documentation: https://learn.microsoft.com/en-us/windows/win32/api/lmwksta/nf-lmwksta-netwkstauserenum Steps to reproduce the bug: you need a server with many simultaneously concurrent logged users call NetWkstaUserEnum, with prefmaxlen…
How do I reduce the initial distance threshold for Interaction Context manipulations?
In the application I am developing, the interaction context callback that I have registered is not being called until the finger that already has contact has moved too many pixels. Basically, this causes a big jump. I'm not sure how to reduce this, or if…