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

5
votes
2answers
434 views

Windows keylogger in C

I have had this keylogger code for a while now (a few years*), and I figured I would put it up for review. Here is what I would like reviewed (in order): Portability - right now, this program can ...
0
votes
0answers
10 views

DataService data storage

I have a DataService, which should talk to the server and store vars (for complicated calls, for example). Last time, i ended up with approach (for example, i'm working with a list): GetList() - ...
13
votes
1answer
199 views

First socket class

I want my socket class to be reviewed, including recommendations and optimizations. Sokect.hpp ...
1
vote
2answers
75 views

What are practical issues using this code with common JavaScript libraries?

I'm not a JavaScript programmer. I have next to no idea about "what's out there" of libraries and so on. Therefore it's not unlikely that the referred to Windows HTML Application (HTA) code here, ...
0
votes
0answers
27 views

Boost filesystem exists always returning false on windows [closed]

Here is my code: main.cpp ...
4
votes
2answers
108 views

Socket class for use in web server

I've created this socket class to use in my web server application. I have two classes: one for the socket and the other for the webserver. ...
10
votes
3answers
115 views

Windows socket class

I need some advice to see if my simple Windows socket class is good enough to be used in a simple chat application. ...
7
votes
4answers
386 views

Socket wrapper class

I've created this thin wrapper class for a socket project that I'm working on. Can someone review my class and give me some points on if I'm on right track? ...
2
votes
1answer
63 views

User-defined color implementation in windows console

I have implemented an user defined colors enumerator, and if is possible I appreciate if I will get a code review. I want to know if my implementation is correctly or must improve it. If there exist a ...
2
votes
1answer
36 views

Loop filling a set with logging

After watching Raymond Hettingers talk Transforming Code into Beautiful, Idiomatic Python I got back to a function I wrote. I'm not quite sure how to make it more pythonic but I think this might be a ...
4
votes
0answers
46 views

Script which migrates files to secondary storage and symlinks them

I wrote this code to clean up some of the space on our file server. We've got 15 years of legacy data that nobody accesses or changes or cares about that we have to keep regardless. I'd rather have it ...
5
votes
2answers
135 views

Optimize disk enumeration and file listing

I am writing C++ code to enumerate whole HDD and drive listing. However, it takes more than 15 minutes to complete the disk enumeration of all drives (HDD capacity 500GB) and compile the response in ...
5
votes
2answers
309 views

Simple thread pool in C++

I wrote a simple thread pool, which works pretty well. I would like to see your review of it. One important feature that I needed in the pool is the ability to wait until all the tasks that I sent to ...
2
votes
0answers
62 views

Am I getting the right information about installed SQL Server Instances?

I'm building an installer package for our software using Inno Setup. As a part of this, I'm also building a few different DLL's in Delphi XE2 to accommodate for some of the common tasks required by ...
2
votes
3answers
103 views

Python script to touch files of a particular pattern in all folders of a given name

The intent of this script is to hunt down all "*/testResults/*.xml" files and touch them, so that our build system doesn't issue errors that the files are too old ...
4
votes
1answer
63 views

Printing some metrics from a Windows machine

New to Ruby here. I just made a script that print some metrics from a Windows machine about its disk. The script works fine and as I wanted it to. Now, since I'm new to the ruby and programming world, ...
2
votes
1answer
149 views

Looking for a clean way to use ::CreateToolhelp32Snapshot

I have a process, let's call it it Proc1. It is installed in two different directories and one instance of each is running. C:\DirA\Proc1.exe C:\DirB\Proc1.exe When iterating through all ...
3
votes
1answer
89 views

Daemonize a process under Microsoft Windows

I wrote a simple tool to allow to daemonize any process under Microsoft Windows. The goal is to push any process into the background with no questions asked. That includes GUI applications, which ...
1
vote
1answer
95 views

Getting limited user input, with echo

I've written a code snippet that will get a (max.) 14 character string from the user input, and while the user is typing, simultaneously echo it out to the screen. It seems a bit long and ugly, so I ...
2
votes
1answer
107 views

Exception Handling Design

I am trying to design an exception hierarchy for logging errors. These logs will be used only by developers and not by users. This is a base class that I came up with. ...
5
votes
1answer
104 views

A simple NAT library

I've created a simple NAT library, with four essential functions: Find the UNPN device (the router in my case). Get the external IP address. Add a port forwarding entry. Delete a port forwarding ...
2
votes
1answer
107 views

RAII-Style Lockable Objects

TL;DR: Without the phrases "use Boost" and "use C++11", does the posted code for RAII-style locking of a resource look correct and safe, or is there something I've missed. Long Version: I am working ...
2
votes
1answer
102 views

Visualization of bubble sort in progress

I've written a program showing the process of bubble sort arithmetic in C. I need some suggestions on improving it. ...
2
votes
0answers
110 views

custom win32_file_streambuf

I am looking for a review regarding C++ streams behaviour conformance. I have made this win32_file_streambuf so that I can use it in log4cplus project. I basically ...
7
votes
2answers
172 views

Create CSV file of domain groups and their users

I'm fairly new to scripting in Python. I'm looking for suggestions on improving any of the following in the below script: my coding style, performance, readability, commenting, or anything else. ...
4
votes
1answer
104 views

Recursive Windows Directory listing

I wrote a PowerShell script for a superuser question: list of all files and directories under a path recursively, without recursing into junction points or links I have a strong feeling that my ...
10
votes
1answer
321 views

Capture with User32.dll or hook?

I am trying to capture screenshots as fast as possible from when it's displayed, meaning that I want the latency to be minimal. Currently, I am using user32.dll to capture a window. So, if I have a ...
10
votes
2answers
179 views

x64 assembly clearmem / zeromem

I've just started learning assembly yesterday, and the first useful thing I've written is a clearmem function. I'm looking for general feedback regarding my coding ...
1
vote
1answer
362 views

std::string/std::wstring template wrapper for Win32 API

I have not completed this but want to make my own template library for wrapping the Win32 API to make it compatible with std::string/std::wstring... Here's a sample of what I've worked with so far. ...
-1
votes
2answers
319 views

Speed up SVN backup

The following batch script runs on a Scheduled Task on Windows 7 with a quad core 2.5GHz and 16GB of DDR3. It makes the svn server unavailable for about 10 minutes, so it can produce a 500MB file, ...
1
vote
2answers
107 views

Improving my game code

I made this simple game code. Can you please give me some advice about how can I improve it ? I thought about making the screen blue and the letters yellow can someone explain me how to do that ? ...
3
votes
1answer
51 views

Aid in making a clock code more modular

Can someone help in making this clock code more modular so I will be able to use it in other bigger projects for example: turn into a c function. Here is the code: ...
2
votes
1answer
77 views

Would this code cause memoryleaks?

My question is really simple. Does this code cause memoryleaks? If so, where/how/why? ...
0
votes
2answers
329 views

Correct way of using HBRUSHes..?

If I create a brush like so HBRUSH hBrush = CreateSolidBrush(RGB(33, 33, 33)); and then later on, I want to change the color of the brush, how would I do this? I ...
3
votes
2answers
406 views

C++ code to launch a Windows 8 app

This is my first C++ in many years. It's based on some stuff I found on the internet, including a Microsoft article on a similar topic. But I'm sure there are C++ idioms that might make this better or ...
4
votes
0answers
454 views

Mingw, wcout and locales

I've recently had to print some national symbols in windows console using Mingw and found, that I got nothing in the output, if I use wide strings. So, I studied ...
5
votes
1answer
376 views

Review my file-searching program

It's my first window program. It simply searches for a specified file in the whole computer. File Search.h (header file that contains the prototypes of fileSearcher class methods.) ...
2
votes
3answers
245 views

Windows DLL Module Class

I am doing a project where I use DLL's as run-time modules or plugins. To do this, I use the Windows LoadLibrary() and ...
4
votes
3answers
228 views

Windows application that draws India's flag

I have written a small Windows application that draws India's flag in the window. I am very new to using Visual C++ and I want to understand if my code can be improved further. ...
1
vote
2answers
273 views

Is my WriteConsole solution correct?

Here is the book question: Modify the CatFile function in the program so that it uses WriteConsole rather than ...
1
vote
1answer
169 views

Converting Bash commands into Windows cmd commands

I have the following code that converts a couple of bash commands into Windows cmd commands, as well as adding some commands. This is only my second day programming ...
4
votes
3answers
178 views

Win7 atomic access class

I have a simple atomic access class designed to work with Windows threads. ...