Skip to main content
3 votes
2 answers
512 views

GetClipboardData() Cut vs. Copy

When GetClipboardData() is used to access the data captured by the Clipboard, is there an API call or flag to distinguish between a Copy action (CTRL+C) and a Cut action (CTRL+X)?
-6 votes
0 answers
128 views

C++ check LPTHREAD_START_ROUTINE thread is exists [closed]

what I want to know if I use function CreateThread(0, 0, (LPTHREAD_START_ROUTINE)any_void_here, 0, 0, 0); How can I check if a thread is running, waiting, existing, or terminated. I can't use std::...
2 votes
0 answers
41 views

How to capture when to refresh a ListView displaying a list of files after possibly multiple FindNextChangeNotification events?

I need to figure out the condition when I'm ready to display the final file list in a ListView after a series of FindNextChangeNotification events. If there are multiple events coming in quick ...
Advice
0 votes
2 replies
30 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 ...
-3 votes
0 answers
42 views

What is the reason for Access Violation error in C? [closed]

I am trying to make a firewall with Windivert. For now I am just trying to parse the package, but the program works at first, the IP addresses are visible in the console, but then the program crashes. ...
5 votes
1 answer
9k views

OpenProcess Access is denied for some users

I have an application that opens another non-system 32-bit process and attempts to get a list of its loaded modules with EnumProcessModulesEx() and path of each module with GetModuleFileNameEx(). It ...
4 votes
1 answer
2k views

CryptDecodeObjectEx Bad Tag ERROR (0x8009310b)

I have a .cer file. I can read it and write a buffer via ReadFile() function. Now I have buffer and datalen which I had. And I use that buffer and len for calling CryptDecodeObjectEx() function ...
0 votes
1 answer
92 views

Win32 COMBOBOX dont draw dropdown-list

i create in win32 c++ plugin on a *.rc-file a COMBOBOX with drop-down-list: COMBOBOX IDC_CCODE_EDT_PNR,60,18,83,27,CBS_DROPDOWN | WS_VISIBLE | CBS_SORT | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP ...
2 votes
1 answer
176 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 =...
-1 votes
0 answers
58 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
2 answers
138 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 ...
3 votes
1 answer
155 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
120 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 ...
6 votes
0 answers
257 views

Local static variables are not initialized if app is loaded as dll

We have sandbox.exe, app.exe and app.dll. If users want to run the not sandboxed application, they run app.exe. If users want to run the application in the sandbox, they run sandbox.exe that loads app....
2 votes
0 answers
37 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 ...

15 30 50 per page
1
2 3 4 5
2916