Skip to main content

Questions tagged [winapi]

The Win32 API is the core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. This tag is for questions about developing native Windows applications using the Win32 API.

5 votes
2 answers
1k views

(See the GitHub repository for a Visual Studio (2022) solution/projects.) Description This malware does nothing more than install/uninstall ...
coderodde's user avatar
  • 32.3k
7 votes
4 answers
2k views

Intro This time I was in the mood for the low level stuff. The entire repository is in GitHub. It includes the installer, the actual malware program, and the uninstaller that removes it completely ...
coderodde's user avatar
  • 32.3k
3 votes
2 answers
132 views

Trying to learn windows internals and made my first work with Events and Threads. What do you think about my code? Any advice? ...
vansergh's user avatar
  • 313
5 votes
1 answer
407 views

I'm working on a legacy code base and I came across a method in which I wanted to remove the chance of swallowing an exception. In the following I want to walk you through the refacoring process, ...
Thomas Weller's user avatar
6 votes
2 answers
226 views

I recently overclocked my monitor and I am trying to create a script to just click and do the work for me so whenever I want to change my refresh rate I dont have to open windows settings. I think ...
Giannis Tsakas's user avatar
9 votes
3 answers
2k views

The goal of the code is to convert a Graphviz DOT file to an SVG file, and it achieves this by creating a child process and executing the "dot" command. ...
Madagascar's user avatar
  • 10.1k
3 votes
1 answer
126 views

Now I have this repository. It's a key logger logging all the keyboard events possible. Note that some programs do not "leak" the keyboard events outside of their GUI. For example, Notepad++ ...
coderodde's user avatar
  • 32.3k
2 votes
1 answer
221 views

I'm currently using the ReadDirectoryChangesW Function from the Windows API to build a Directory Watcher. The Watcher should monitor a folder for newly added files. ...
Kevin's user avatar
  • 107
0 votes
1 answer
103 views

I have this repository. The idea is that the user may measure for how long the thread is preempted with given priority class/thread priority. CommandLineParser.h: <...
coderodde's user avatar
  • 32.3k
2 votes
1 answer
86 views

Now I have this funny program. I bought an ASUS ZenBook which includes NumberPad. The downside of it is that it turns on with a slightest touch on its upper right corner so that I start write numeric ...
coderodde's user avatar
  • 32.3k
2 votes
1 answer
529 views

I have a piece of code to send and receive files on Windows with C. Is this the right way to do it? And am I guaranteed that the full file will be sent and received? Receiving function: ...
Y K's user avatar
  • 83
2 votes
2 answers
236 views

After improving the previous post, I came up with the following program: ...
coderodde's user avatar
  • 32.3k
4 votes
1 answer
239 views

(See the next iteration .) I have this program (call it, for example, prioset.exe), that asks for two command line arguments: (1) the target process PID, (2) a ...
coderodde's user avatar
  • 32.3k
1 vote
1 answer
153 views

If you aren't aware, if you hand-code a GUI with the Windows API you will find your controls look quite ugly by default due to their font. Running this code: ...
Govind Parmar's user avatar
6 votes
1 answer
2k views

I have a piece of code to send and receive buffers. Is this the right way to do it? And am I guaranteed that the full buffer will be sent and received? receiving function: ...
Y K's user avatar
  • 83

15 30 50 per page
1
2 3 4 5
9