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.

learn more… | top users | synonyms

3
votes
0answers
25 views

Saving User Settings in Univeral App for Windows 10

I am a self-taught programmer, so please be gently. Please give as much feedback as possible for my code. I want to make sure I am doing things the right way and efficient way. What is the proper ...
4
votes
2answers
62 views

LifeSaver: Hides and manipulates windows

This is a small program I wrote to hide/show different windows on my Windows PC. This is named LifeSaver because it did save my life several times, whenever someone ...
3
votes
0answers
40 views

DocsGatherer - gathering and organizing fragmented documents

This script is used for gathering fragmented documents from your computer, and organizing them by extensions. Here is the main things my algorithm does: Search through path(s) Stores documents' ...
1
vote
1answer
24 views

getProcID and getProcessHandle functions

I made two functions: one to get process id and the other to get a handle with all access to that process using the process id. I'm looking for help with making these easy to use on all types of ...
2
votes
1answer
30 views

Using GetTempFileName api function to check write access to a directory

On windows, to find out if I have write access to a directory, I found that it is easiest to just create a file in that directory. In order to do so, I found ...
10
votes
3answers
798 views

Date of latest GitHub project release

I needed a clean, simple and robust piece of code to retrieve the date of publication of the latest release of a given GitHub Project. My constraints were that it needed to be written in the C++11 ...
4
votes
0answers
52 views

Chatty AI that saves .txt files to remember

This is a basic AI that I created. It has a teach function that creates a .txt file with user inputed info for future use. If you type teachme you have the option to type in something that you have ...
3
votes
2answers
112 views

Find a serial port device through WMI (windows management instrumentation)

The idea here is to be able to find a USB serial port device connected during runtime, thus not knowing its port number, and use it in the application to retrieve information from the device. ...
3
votes
0answers
36 views

Delphi: convenience wrapper for GetSystemTimePreciseAsFileTime()

For some purposes it can be highly desirable to use GetSystemTimePreciseAsFileTime() whenever it is available (i.e. Windows 8+) because the accuracy of ...
1
vote
1answer
126 views

Accessing Wi-Fi network interface details from Java using netsh

I am developing a Java program on Windows. I want to access Wi-Fi interface details such as SSID, IP, subnet, enabled or not, connected or not and so on. I am currently trying with using netsh and ...
6
votes
1answer
98 views

A C function for returning the address of the calling function

Suppose you are given two functions, foo and bar, and neither of them are inlined. Now, if ...
3
votes
0answers
62 views

Asking Windows for real-time priority

This code snippet is about asking Windows for the highest possible execution priority. Basically, we have to ask for real-time priority class for the entire process, after which each thread has to ask ...
4
votes
3answers
985 views
1
vote
1answer
134 views

Get OS name in C++

This is the function I coded, obviously used to get the system name: ...
2
votes
1answer
54 views

POP3 message downloader using state machine processor

This simple program uses a socket class I wrote, class socket, to retrieve a users pop3 emails and print to stdout. I would like feedback on the socket class and the code to download the pop3 emails. ...
6
votes
2answers
38 views

Pulling PE32 header info

Context Info I coded up a program that maps an executable file(.exe .dll mainly) to the program's memory space which allows for easier extraction of the PE header info. I extract the information by ...
6
votes
2answers
146 views

Simple console snake game in Python

Here's a simple snake game I implemented in Python, which works in a console. It's not complete yet (doesn't generate food yet, and no scoring or difficulty levels), but it works. I would be really ...
5
votes
1answer
28 views

Querying list of servers with PS to report on Scheduled Tasks

I work in a Windows environment where Scheduled Tasks have never been documented or kept up with, leaving us with about 150 servers that have a random smattering of tasks. I am attempting to construct ...
6
votes
1answer
331 views

IP Range Port Scanner

I've been working on this project to learn networking and concurrency as well as C++11 practices. I'm just looking for a general code review. ...
14
votes
2answers
645 views

Full C++ Snake game

I managed to finish my approach on the legendary Snake game. You move around with the WASD keys. I would like to hear your opinion and maybe ideas on how I can improve frame rate because now it sort ...
2
votes
2answers
131 views

Hangman game school project

This is a school project and took me a while to write the code. Any help to improve my code is welcome! ...
6
votes
1answer
171 views

ANSI colors cross platform

I am trying to write for both NT and POSIX (my two usual platforms) and have come up with the code below. The clrs code I refer to is apparently from blender build ...
5
votes
2answers
81 views

Scanning for open ports

I made what started out as a web browser but now is a scanner for open ports. I wanted to know if you think this is a realistic or a unreliable tool for port testing. I found some open ports on my ...
4
votes
1answer
96 views

File deletion takes a long time to delete files

I have a script I need to "duplicate" and modify to allow it to delete certain images based on properties I give this app/script. Currently the script just moves/sorts the images into folders based on ...
3
votes
1answer
66 views

Tic Tac Toe dynamically changing board position and score board position

Here is my game logic: Tic Tac Toe - player Vs player Player A (first player to enter his name) is getting 'O' and is starting Players choose the desired spot to put their sign(X or O) using the ...
8
votes
1answer
201 views

Snake game for Windows console

I would apreciate any suggestions on how to make my code better and more efficient. ...
0
votes
0answers
67 views

Thread function for server-client connection

edit: This section has not thrown segmentation faults so lets focus on it please. I am working on multithreading a data server application. I am new to multithreading in general. I wrote a version a ...
1
vote
0answers
138 views

Populating a property grid in MFC

We have some code to populate a CMFCPropertyGridCtrl grid with controls that is based on copied samples. We are currently using Visual Studio 2012 but intend to upgrade to VS2015 soon. A typical ...
6
votes
1answer
107 views

Windows CLI locks killer in Python

Some coworkers and I sometimes want to delete folders, only to get the very informative: "Permission Denied" message. I had discovered Handle.exe and Process Explorer to help with this, but the method ...
2
votes
1answer
135 views

DirectX Window Class

After figuring out DXGI, I wrote a class that combines the act of creating a window and its associated swap chain (as well as an OOP approach to messages). The class supports different window modes ...
4
votes
2answers
478 views

Python wrapper for Windows pipes

This is done in the style of a single class, that should work like any other io-based object in Python. Help is much appreciated with anything regarding performance, documentation, or anything else. ...
2
votes
1answer
97 views

C++ class for capturing broadcast window messages

In the Windows operating system, some system events are notified via broadcast window messages. DBT_DEVICEARRIVAL and ...
4
votes
1answer
177 views

Move and rename images into separate folders

Basically, we came up with this task at work. I was wondering if there's a shorter and cleaner way of doing the following in some other language (or even improving what I did with Ruby). We have a ...
4
votes
1answer
210 views

Batch file command looper

Just a fun batch file I have made. I wanted an easy way to loop any arbitrary command several times: loopme.bat ...
1
vote
0answers
82 views

Windows AppLocker extension - Owner rule

I am trying to extend Windows AppLocker behavior to add custom rule which checks owner of executables in Program Files and Windows folders. This would help us patch folders that are writable by ...
1
vote
0answers
93 views

Local branch update script using Git and PHP

I'm using Git and PHP to create an update script which is sync local branch and the master. It checks about new updates, and if yes, it proceeds to the Git pull request and any response got from the ...
7
votes
1answer
87 views

Wormhole - a Windows shim app written in C with no stdlib

My application compiles and seems to work correctly, but this is my first C project so I welcome any criticism. I developed this in Pelles C with no standard lib. Efficiency and optimizations are more ...
4
votes
1answer
110 views

Render/Update game loop

I've just "finished" my second attempt a core game loop, which is a heavily refactored version of my first attempt. My perceived benefits are: Using functors means that the actual loops themselves ...
3
votes
1answer
162 views

Population of bitmap from file to memory

I'm working on simple a 16/24/32-bit bitmap reader for fun, however, the method I am using to go about reading the DIB header seems odd. All this does is read a simple Windows Compatible Bitmap from a ...
4
votes
1answer
101 views

Multipurpose command-line utility to manage a web application

I'm creating a command-line tool which is supposed to work on both Windows and Linux OS. It will be used to manage our application - start, stop, deploy etc. We have it in bash scripts now (and it ...
3
votes
1answer
56 views

MemoryWriter Helper class

I have created this memory writer helper to ease the write into memory process and I want your suggestions regarding it. I am very new to C++ but have 6 years knowledge of .NET languages like VB and ...
6
votes
2answers
689 views

Makefile for C++ OpenGL with GLFW and glad

This is a makefile I wrote to compile a simple OpenGL test project which is going to use the libraries GLFW and the C library glad.c. ...
4
votes
1answer
326 views

Snake console game

I made a simple C++ snake game, and I want some advice from you: what is good, what I have to improve. One main problem is that flipping (which you'll notice if you play it). ...
5
votes
2answers
179 views

Text-based Snake game on Window

How can I improve this game? ...
3
votes
5answers
364 views

Function “between” for “Everything in One Line” library

This is a function to determine if a number is between x and y. It is part of a library of mine called EOL or "Everything in One ...
5
votes
2answers
359 views

Bresenhams line algorithm optimization

Based on these guidelines I optimised Bresenhams line algorithm, it now fits for all kinds of line cases like images a, b, c, d, e, f, g, h show in those guidelines. This is my test.txt input file ...
4
votes
2answers
156 views

Allow certain IP addresses to run a C++ program

I coded an executable program (.exe) that I only want run either from my home computer, our main server, or people in our development team. I have coded logic that will only allow the program to be ...
5
votes
1answer
217 views

Windows Batch Tech Tool

I made this to help new techs be more proficient while they are learning. I know most of it is common knowledge around here. I would also like to point out that I don't really know batch but I am ...
4
votes
0answers
48 views

Recycling Internet Explorer

Is there anything I can do to this code to optimize it to use less resources? ...
2
votes
2answers
330 views

Refactorings on a Win32 Screenshot saving program

Earlier this academic year I had an assignment to take a project I had written outside the context of University and apply a number of refactorings to it. I chose a program I had written a while ago ...