Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
5 votes
0 answers
65 views

A POSIX getdelim() and getline() implementation for MSVC

Tired of always having problems in reading arbitrary length lines from file under Windows, I tried to write a POSIX getdelim() and ...
user avatar
1 vote
1 answer
84 views

ASCII game in console [closed]

Overall, I want to make a game in console, something Pokemon-like but with typical rpg scenery - swords, magic and all that. I want to make player able to move around the map, find dungeons, fight ...
user avatar
0 votes
0 answers
22 views

Menu for weekly tasks

Hello I have frankensteined a menu script that allows for me to do variety of things I do weekly as IT support but had issues with the force reboots and not sure if possible to add a copy remotely a,b,...
user avatar
1 vote
1 answer
37 views

Synchronization \ backup of directories and files (Python)

stackexchange members. I'm just learning to write. I set myself a task a few days ago and today I completed its implementation. The task was to create a "backupper" (I was inspired just by ...
user avatar
0 votes
1 answer
69 views

Creating a new WinForm each time pressing a button in a main WinForm

I have WinForm C# application that every time you press on the green button: It opens a new WinForm window. This is the code after pressing the green button: ...
user avatar
  • 237
0 votes
0 answers
29 views

A C WinAPI program for showing the color of the screen pixel pointed to by mouse cursor with clipboard support - follow up 2

Now it seems that I was able to make some progress with my program. See what I have: ...
user avatar
  • 25.3k
2 votes
0 answers
64 views

C++ logger for Windows

I have written a simple logger in C++ on Windows that I want to use to log info and errors from multiple threads to DbgView: ...
user avatar
  • 255
5 votes
1 answer
90 views

Python module to print in printer

I made a code that simplifies the job of sending anything to print with the Windows API. The module has a Document object which stores a reference to the actual device context within it. You can ...
user avatar
  • 151
4 votes
2 answers
124 views

All In One Stock, Program for My business

I built my first program to solve an issue occurring at my self-owned business.. This program I made after learning a bit of C. It took about a month to make and what it performs is various functions ...
user avatar
1 vote
1 answer
34 views

Reliably setting keys in Windows Registry for a VBA addin

We have a PowerPoint VBA addin which is installed using an MSI installer written with WIX (Windows Installer XML). For the addin to be picked up (for all users) by PowerPoint, name-value pairs need to ...
user avatar
  • 103
1 vote
1 answer
44 views

Dividing shared resources for homogeneous multithread processing

I'm trying to implement a homogeneous multithreading example that multiple threads process portion of a huge task. In order to achieve this, I thought of clustering data/resource and multiple threads ...
user avatar
3 votes
1 answer
69 views

C++ Determine if a file is older than int hours

I have an MFC application where I need to determine if a file's last write time is older than n hours. I thought there was a method to get total seconds from either system or file time, but I ended up ...
user avatar
  • 163
2 votes
1 answer
49 views

Windows 10 wallpaper-scroller script with Gif support

Intro: Hello, I'm a python beginner. I haven't had anyone use my code or anything. I want to improve and become a "professional python developer". I thank you for taking the time to help me ...
user avatar
  • 121
0 votes
0 answers
64 views

write data as feather file given sql script from sql server in python and windows

I am currently using this "pattern" to write feather files to my local windows machine using python: ...
user avatar
  • 631
2 votes
1 answer
84 views

Generating a random ipaddress in C

I was looking to receive some feedback on the function I wrote to generate a random ip address. The code is pretty messy and just wanted some feedback regarding optimizations, memory leaks and best ...
user avatar
7 votes
2 answers
90 views

Network utility tool

I wrote a little program in C based on some requirements: Ping every IP from a file and check the result Show, by network adapter, ONLY the IP, subnet, default gateway and DNS Check the speed between ...
user avatar
  • 269
1 vote
0 answers
77 views

In a search of perfect batch script for editing the hosts file

I want to edit Windows hosts file in the best way for the end user, using a batch-only solution. I ended up with this script, which works fine, but since I don't have enough knowledge, the syntax is ...
user avatar
  • 11
3 votes
1 answer
61 views

Delphi function to canonicalize the capitalization in a file path

I'm building a small Delphi application where a user can input a file or directory manually by typing it or by selecting it from a dialog . Since it can be input manually, I want to ensure that I save ...
user avatar
  • 141
0 votes
1 answer
57 views

powershell script for creating a Domain Controller

I don't have a lot of experience creating/managing an active directory environment. This will be more of a lab environment where a solution could be tested. It will not have lots of regular users etc, ...
user avatar
  • 175
5 votes
3 answers
259 views

My little C++ library for comfortable programming

I've tried to make a little library in C++, to gather all useful and necessary functions. I wrote the code(in one file, to make it more portable). Unfortunately, it works on Windows only. ...
user avatar
  • 197
2 votes
1 answer
167 views

Win32 Snake game

I made a trival snake game below to practice my C++ and Win32 programming skills. ...
user avatar
1 vote
1 answer
34 views

A simple C WinAPI program for terminating processes via process image names - follow-up 4

(See the previous version here.) What's new get_last_err_msg renamed to MyGetLastErrorMessage The caller to ...
user avatar
  • 25.3k
3 votes
0 answers
89 views

Batch file for Wget downloads

I've just written this to facilitate my Wget downloads and I was wondering if anyone can review it for me. ...
user avatar
  • 31
3 votes
2 answers
125 views

Custom Error Handler Library in C++

Is this code clean and optimized? When taking memory snapshots, it seems a bit high. Anything I have done wrong or can do to optimize it? ...
user avatar
0 votes
0 answers
68 views

convert ID3DXMatrixStack to DirectXMath

Is it right it convert ID3DXMatrixStack to DirectXMath like that: ...
user avatar
  • 23
5 votes
0 answers
80 views

Process Injector using ctypes and the Windows API

To get some practice with the Windows API and ctypes, I decided to write a program capable of injecting and running shellcode inside of another specified process. ...
user avatar
1 vote
1 answer
99 views

Enemy damaging with regen system

Small project i made to practice my c++, im a beginner and want to know all about optimizing code. Enemy starts off with 10 HP and we can damage them for 1 HP by pressing F1, If their HP is below ...
user avatar
  • 11
2 votes
1 answer
95 views

Getting hard-drive serial number on Windows

The point is to get the serial number of one of the hard drives on Windows. My code is based on an example from MSDN. I tried to make it an exception-safe, self-contained function. It works, to the ...
user avatar
3 votes
1 answer
64 views

Windows high resolution timing class

I'm attempting to implement a high resolution class used to time the execution time of functions in Windows. After using this documentation, I have come up with the following: ...
user avatar
2 votes
1 answer
95 views

Dialog that controls external USB device that tests the latency of gaming computers - SysLat Cleanup #4

I have several static variables in my dialog class that I'm declaring in the header and then defining immediately in the cpp file. They are being used in an application with 2 threads, and these ...
user avatar
  • 185
3 votes
0 answers
40 views

USB implementation of device that tests system latency on gaming computers - SysLat Cleanup #3

Here's my open source project: https://github.com/Skewjo/SysLat_Software. The hardware controlled by this software can be found at https://syslat.com/. This is the 3rd question in a series of ...
user avatar
  • 185
2 votes
1 answer
42 views

Detect discontinuities in Windows clock in Java

Please review the code below, which detects discontinuities in Windows system clock in long-running programs. ...
user avatar
  • 121
5 votes
3 answers
972 views

Simple Tetris game

I made this simple Tetris game where I only have 2 blocks, the square and the line. Also the game ends after 20 blocks are created and the player wins. I was wondering how I can make it better overall....
user avatar
  • 51
3 votes
0 answers
36 views

Creating a simple windows instance capable of rendering Direct3D graphics

I've just started to learn recently about Direct3D, when I've learned to create a simple window I started wondering if I could automate this process, so whenever I would need to create a window I ...
user avatar
3 votes
2 answers
106 views

Implementing dynamic array without STL

For my game engine that I'm trying to write without using STL I implemented dynamic array class(some kind of std::vector). I would like to know whether this code suits best practices. I'm also not ...
user avatar
6 votes
0 answers
735 views

Make Flutter app on Windows a drop target to accept files

My aim was to provide functionality for a Flutter app on Windows to accept drag-and-dropped files. Flutter apps are written in Dart and compiled to native code, but since this is a cross-platform ...
user avatar
1 vote
0 answers
273 views

Exporting Shellbags, Jump Lists, and LNK files with PowerShell

I'm new to PowerShell (started yesterday) and was wondering if there is a way of exporting Shell bags, Jump lists, and LNK files from the Reg to a local computer's desktop using PowerShell? I have ...
user avatar
3 votes
1 answer
72 views

program that fully documents every file on drive

I have a program which goes through your drive and does two things: For every file extension it creates a file "file of extension_name" and whenever it encounters a file with that extension,...
user avatar
  • 257
2 votes
1 answer
41 views

A simple C WinAPI program for terminating processes via process image names - follow-up 3

(See the next follow-up here.) This is the 4th version of the program killer tool: ...
user avatar
  • 25.3k
5 votes
1 answer
204 views

A simple C WinAPI program for terminating processes via process image names - folllow-up 2

(See also the previous follow-up.) Now, I seem to improve my program partially via the answer in my previous follow-up. It goes like this: ...
user avatar
  • 25.3k
1 vote
2 answers
135 views

a simple implementation of unix2dos for windows

On linux there is the utility called unix2dos which converts UNIX EOLs(\n) to DOS EOLs(\r\n). However on windows there is no such tool so as a result I decided to make one. ...
user avatar
  • 669
2 votes
1 answer
61 views

A simple C WinAPI program for terminating processes via process image names - follow-up

(See the previous (i.e. first) version of this tool.) (See the next follow-up.) After taking into consideration all the advice by Martin R, I ended up with the following tool for terminating all the ...
user avatar
  • 25.3k
5 votes
1 answer
88 views

A simple C WinAPI program for terminating processes via process image names

(Also, see the next iteration.) I have this small program for terminating processes via their respective process image names (.exe files): ...
user avatar
  • 25.3k
3 votes
1 answer
234 views

Simple Windows implementation of the cat command

On Linux there is the cat command which outputs files concatenated but on Windows there exists no such command. As a result I decided to attempt to recreate a ...
user avatar
  • 669
4 votes
0 answers
85 views

Basic snake game in C

I wanted to learn C and Win32 so I thought the best way to start would be to create a simple game to get familiar with the language, so I made Snake. The games works perfectly except for sometimes ...
user avatar
  • 41
5 votes
0 answers
464 views

safexl - A Python / pywin32 Excel Application wrapper

Thanks in advance for your interest in my first PyPI project. While there happen to be a number of projects out there to help with creating & consuming Excel workbooks, I was unable to find one ...
user avatar
4 votes
2 answers
123 views

Lowering the CPU usage when capturing and dividing screenshots into blocks using GDI+

I am trying to capture the screen content of each monitor I have and divide each captured bitmap into small blocks (wxh=128x128). I managed to do this using the GDI+ API, but my implementation (on ...
user avatar
3 votes
2 answers
560 views

Random alphanumeric string generator function (C, Windows, bcrypt.h)

The function uses the Windows "Cryptography API: Next Generation" (bcrypt.h)'s BCryptGenRandom function to generate ...
user avatar
  • 31
1 vote
0 answers
28 views

Wrapper function that returns cached value from WinAPI call [closed]

I am writing myself a little wrapper and I decided to cache values that shouldn't change (often or at all) for returning to the user, I'm coming from the premise that the WinAPI call is more expensive ...
user avatar
  • 11
7 votes
1 answer
700 views

x64 NASM Assembler: Binary Search

While quarantine I decided to look into the assembly language, as it's quite interesting to see how code works on the lower levels. To challenge myself I made a binary search algorithm. The OS is ...
user avatar

1
2 3 4 5
7