43,730 questions
Advice
0
votes
0
replies
12
views
How can I detect when another process is registering for global input hooks in Windows?
I’m developing a desktop security application that needs to monitor when other software globally hooks input events, for example via SetWindowsHookEx or RegisterRawInputDevices.
I’m not trying to ...
2
votes
0
answers
34
views
Win32 C++ Capturing when to refresh file ListView after possibly multiple FindNextChangeNotification events
I need to figure out the condition when I'm ready to display the final file ListView after a series of FindNextChangeNotification events. If there are multiple events coming in in quick succession (e....
1
vote
1
answer
145
views
Encounter a problem that print wide_character in C
Here is my code:
#include "snake.h"
void SetPos(short x, short y)
{
//获得标准输出设备的句柄
HANDLE houtput = NULL;
houtput = GetStdHandle(STD_OUTPUT_HANDLE);
//定位光标的位置
COORD pos =...
0
votes
0
answers
46
views
How to detect the current user session in Intune deployment?
I have a C# installer app that needs to identify which user session to target. The application fails to identify the correct user when deployed via Microsoft Intune.
For example, when deployed via ...
-1
votes
1
answer
133
views
How can I monitor process creation/termination in C# using winapi? [closed]
I’m building a lightweight process monitoring tool in C# (.NET Framework 4.6.2).
Here’s my situation:
I cannot use WMI due to environment restrictions (it’s blocked on some endpoints).
I also cannot ...
2
votes
0
answers
36
views
How to use ITaskbarList3::SetProgressState and ITaskbarList3::SetProgressValue in Go? [duplicate]
I make a software in Go. Because it made a long process, it displays a progression bar. I show one with a *fyne.widget.ProgressBar, and I would like to add another one directly on the taskbar button ...
3
votes
1
answer
154
views
Windows API: Software breakpoints are not hit
I am using Python to write a rudimentary debugger that will use Windows APIs to debug C source files. I am stuck on creating the software breakpoints. I did some research and found this article that ...
2
votes
0
answers
171
views
how to execute x64 ABI assembly code on heap from C
I am creating heap allocated memory with execute rights using windows.h VirtualAlloc and VirtualProtect.
void* write_into_executable(uint8_t code[]) {
SYSTEM_INFO info;
GetSystemInfo(&info)...
0
votes
0
answers
84
views
Windows apisetschema, not existing lib
While trying to resolve dynamic DLLs (api-ms*, ext-ms*), I face a problem with an undefined reference from kernel32.AddDllDirectory: api-ms-win-core-libraryloader-l1-1-0.AddDllDirectory, but there is ...
1
vote
1
answer
80
views
Printing lpServiceName gotten from EnumServicesStatus only yields 1 character
I am trying to write a small app that needs to list the currently configured services using the Win32 API. Following several examples I found online, no matter what I do, I only get one character ...
1
vote
1
answer
155
views
How to SelectAll text when a TEdit gains input focus by the user clicking?
Short Version
How can i select all text in a TEdit when the control gains input focus from the user clicking the edit box?
Motiviation
Following the Windows User Design Guidelines for a "search&...
0
votes
0
answers
90
views
Win32 api Edit Control doesn't respond to mouse clicks in child window
I'm having an issue with WinAPI Edit controls in a child window - they don't respond to mouse clicks, but work fine when placed in the main window. Other controls like buttons work normally in both ...
0
votes
1
answer
86
views
Win32: How to check if a HKL refers to a specific family of IMEs
The keyboard APIs of Win32 (Windows API family) are known to be confusing, and there are lots of SO answers about how to display approximate information to a human with enough polyglot skills to ...
1
vote
0
answers
119
views
How to make a Windows process resistant to termination (like PPL)?
I'm looking for legitimate methods to make a Windows user‑mode process harder to terminate. PPL would be ideal, but Microsoft is very selective about who can use it. What alternative options or best ...
2
votes
0
answers
119
views
Why doesn't Win32 dialog recognize controls reparented from other windows for mnemonic navigation?
I'm developing a module for Visual Basic 6.0 (or TwinBASIC) that allows us to use Windows Common Controls' PropertySheet and CreatePropertySheetPage functions with Visual Basic forms instead of Win32 ...