43,732 questions
Score of 2
0 answers
54 views
Can RegisterApplicationRestart relaunch an MSIX app after ExitProcess(0) following a StoreContext update?
I am reviewing a Windows restart flow in a Flutter desktop app packaged as MSIX and intended for Microsoft Store distribution. The app uses a custom Flutter Windows plugin; there is no external ...
Score of 0
1 answer
98 views
"Ordinal Not Found" with ComCtl32.lib
Here is a simple Win32 app:
#include <Windows.h>
#include <CommCtrl.h>
#pragma comment(lib, "ComCtl32.lib")
int WINAPI wWinMain(_In_ HINSTANCE hInstance,
...
Score of 3
1 answer
143 views
How to tell if NTLM is disabled programatically?
We have some code that reads:
builder.WebHost
.UseHttpSys(options =>
{
options.Authentication.Schemes = GetSecurityObjects.IsDomainJoined
? (AuthenticationSchemes.NTLM | ...
Score of 1
0 answers
120 views
Why does StartTraceA return ERROR_ACCESS_DENIED non-elevated, but EnableTraceEx2 returns 1450 elevated for DXGI/DxgKrnl ETW providers?
I am building a native C++ FPS collector on Windows 11. The collector uses ETW to listen for graphics present events from graphics-related providers.
The target process is PathOfExile.exe running in ...
Score of -1
0 answers
63 views
SHGetFileInfo on "Camera.lnk" by PIDL outputs "ReturnHr(3) tid(50b8) 80070490 Element not found" but icon is correct
I need to get the System Image List icon of the Windows Desktop shortcut camera.lnk.
This Camera shortcut doesn't point to a physical file, but rather to
Microsoft.WindowsCamera_8wekyb3d8bbwe!App, ...
Score of 2
2 answers
191 views
Why does `QueryServiceConfig2` return a "The parameter is incorrect" error when requesting a service's preferred node?
I'm writing C#/PowerShell code to get all a service's configuration with QueryServiceConfig2 using P/Invoke. I'm able to get all configuration information except preferred node (...
Score of 0
0 answers
522 views
How do use the Windows API to determine if NUMA is enabled?
I'm writing code to read Windows service configuration using QueryServiceConfig2(). However, when I try to get the service's preferred node, the call to QueryServiceConfig2() used to determine the ...
Score of 2
0 answers
83 views
EXIT_PROCESS_DEBUG_EVENT silently dropped for emulated x64 debuggee on Windows ARM64 under load
Working on my profiler (and started a lot of tests simultaneously) I ran into a very annoying issue.
On Windows 11 ARM64, debugging an x64 (emulated) process, the final EXIT_PROCESS_DEBUG_EVENT is ...
Score of 0
1 answer
105 views
What are the meanings of Windows service trigger types 7 and 30?
I'm working with the QueryServiceConfig2 Windows API to return SERVICE_TRIGGER objects for services. Each trigger has a type. The SERVICE_TRIGGER documentation lists the meaning for types with values ...
Score of 0
1 answer
228 views
How to set window as Foreground when it minimized?
I have a simple program written in WinAPI using C++. This program displays a regular window, and if the user attempts to open it again, the attempt is interrupted, and focus is transferred to the ...
Score of 0
1 answer
239 views
LoadLibrary fails with "An Application Control policy has blocked this file" on some PCs after overwriting DLL
I have the following setup: An application is installed via a zip-archive on a users PC. This application has an integrated updater, which will load and overwrite files from a server. The application ...
Score of -1
1 answer
147 views
TerminateProcess() Windows API call from Python [closed]
I am working with a very complicated software system on Windows. It uses win32process.TerminateProcess() in Python to stop running GUI applications on the desktop. It's my understanding that this ...
Score of 1
0 answers
117 views
CertFindChainInStore() stopped returning certs from eToken hardware store
Some recent Windows change caused the CRYPT32.CertFindChainInStore() Win32 API for C/C++ to no longer return certificates stored on some eToken hardware, specifically model 5110 USB tokens. Also the ...
Score of 2
0 answers
165 views
Vulkan dynamic rendering (vkCmdBeginRendering) hangs on Intel UHD when using a depth attachment and 1 or more color attachments
I'm building a render graph for an in-house Vulkan engine using dynamic rendering (Vulkan 1.3, dynamicRendering + synchronization2), on Win32. I've hit a case where a single vkCmdBeginRendering pass ...
Score of 3
0 answers
131 views
Can't test for occlusion of window using DXGI
What I'm looking for is a way to test for occlusion of a window, either by the pointer to the swapchain resource that it is associated with or with the handle to the window itself, though any other ...