Questions tagged [windows]
Microsoft's well-known operating system. Use this tag for code reviews where the code is targeted specifically for this platform, when no other more specific tags exist.
355
questions
5
votes
2
answers
184
views
Hand-written IUnknown::Release in Assembly Language - Code injection
I've written the following code in assembly, which I then convert to machine opcodes and inject into a process with VirtualAlloc at runtime. This allows me to ...
1
vote
1
answer
70
views
Clear the temp folder with Python script
I am addicted to cleaning the %temp% folder, so I went ahead and tried with pyautogui at first by making it click ...
2
votes
1
answer
43
views
Finding the Size of a File in a Portable Manner (revision 2)
This is a follow up to Find the Size of a File in a Portable Manner (revision).
Changes made:
The return value of fseek() and ...
4
votes
1
answer
180
views
Find the Size of a File in a Portable Manner
There's no function in the Standard C Library to determine the size of a file. The POSIX Standard has stat()/fstat() which are ...
3
votes
1
answer
95
views
Multithread execution times are slow on Ubuntu and fast on Windows
I'm working on a project accelerating the execution of a Genetic Algorithm both on multiple cores and on a GPU. The algorithm is specifically suited for the solution of the Traveling Salesman Problem ...
3
votes
1
answer
104
views
Listing first 50 big files in directory and print relative paths and sizes
I use this Powershell command to recursively list first 50 big files in current directory and print relative paths and sizes in MiB. :
...
3
votes
1
answer
64
views
Powershell script that directly executes python script
Wrote this script after having some problems with clients on Win10 and consequent necessity to ship ultra-bloated .exe file of Python project over the Web to them. This is my first try to write ...
2
votes
1
answer
58
views
3
votes
1
answer
102
views
A Windows localhost key logger in C++ with WinAPI
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++ ...
2
votes
2
answers
124
views
2
votes
1
answer
129
views
ReadDirectoryChangesW Improvements
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.
...
2
votes
2
answers
199
views
Python script to categorize download folder based on files
My Download habit is notorious and my download folder end up piled up with random downloads, I created a python script to maintain my download folder in windows
upon running the script it moves files ...
2
votes
1
answer
135
views
Tic-tac-toe game for Windows console
I am doing C++ for over a year and this is my game I tried making tic-tac-toe. And it's also my first program that uses multiple source files.
main.cpp
...
0
votes
1
answer
81
views
wtpdmt - Windows thread preemption duration measurement tool (C++)
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:
<...
3
votes
0
answers
100
views
Modern OpenGL Context that doesn't rely on CRT
I'm working on a personal OpenGL project. I want my project to not rely on any libraries including CRT.
I have absolutely no experience in shipping software and I want to prepare my code for release.
...