windows

How to obtain good concurrent read performance from disk.

I'd like to ask a question then follow it up with my own answer, but also see what answers other people have. We have two large files which we'd like to read from two separate threads concurrently. One thread will sequentially read fileA while the other thread will sequentially read fileB. There is no locking or communication between ...

Programatically select multiple files in windows explorer

I can display and select a single file in windows explorer like this: explorer.exe /select, "c:\path\to\file.txt" However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Help! Note: I looked at these pages for docs, neither helped. http://support.microsoft.com/kb/314853 http:/...

Playing wave file ends immediatly (C++, Windows)

I've got a following situation. On a machine there is a Fritz ISDN card. There is a process that is responsible for playing a certain wave file on this device's wave out (ISDN connection is made at startup and made persistent). The scenario is easy, whenever needed the process calls waveOutWrite() on the previously opened wave device (ev...

Validating a Win32 Window Handle

Given a handle of type HWND is it possible to confirm that the handle represents a real window? ...

Performance critical GUI application (windows,linux)

All, I've been tasked with updating a series of applications which are performance critical VB.NET apps that essentially just monitor and return networking statistics. I've only got three requirements: convert it to C#, make it fast, and make it stable One caveat is that we "may" migrate from a .NET platform to linux "soon" I will be ...

Removing icon from Windows title bars without ditching close button or system menu?

Hi! I'm developing an MFC application and I've recently been searching for a good method to remove the icon from a Windows title bar, but retain the close button. The two obvious candidate solutions are turning off the system menu style or using the tool window style, but I would prefer not to disable the system menu or use the shrunken ...

better command for Windows?

While I grew up using Windows, I transitioned to my much-loved Mac years ago. I don't want to start a flame war here on operating systems. I do, however, want a terminal a little closer to what I'm used to. I'm not asking for full POSIX support - I don't have the patience to install CygWing - but I miss tabbed terminals, being able to...

What is a good Windows hex editor / viewer?

I am in need of a hex editor / viewer (viewer is more important than editing, but a plus if it can edit) for Windows. See KHexedit Requirements: Free is best View data at cursor as: byte, short, int, long, float, double (signed/unsiged where applicable) Configure the endiance for multi-byte decoding "Nice to have" features: Strin...

PHP on IIS

Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for IIS on windows. ...

How can I set up an editor to work with Git on Windows?

I'm trying out Git on Windows. I got to the point of trying "git commit" and I got this error: Terminal is dumb but no VISUAL nor EDITOR defined. Please supply the message using either -m or -F option. So I figured out I need to have an environment variable called EDITOR. No problem. I set it to point to Notepad. That worked, ...

What is good server performance monitoring software for Windows?

I'm looking for some software to monitor a single server for performance alerts. Preferably free and with a reasonable default configuration. Edit: To clarify, I would like to run this software on a Windows machine and monitor a remote Windows server for CPU/memory/etc. usage alerts (not a single application). Edit: I suppose its not n...

Increasing Battery Life Under Windows

Are there any good (free?) tools for monitoring power consumption and aiding in reducing power consumption on a Windows laptop? I currently have a Lenovo T60p and the tools that Lenovo provides are OK, but nothing really that good. They really just provide a new interface to the Windows Power Manager options, at least from what I've fou...

How to intercept and cancel auto play from an application?

I am developing an application to install a large number of data files from multiple DVDs. The application will prompt the user to insert the next disk, however Windows will automatically try to open that disk either in an explorer window or ask the user what to do with the new disk. How can I intercept and cancel auto play messages fr...

What's the general consensus on supporting Windows 2000?

What's the general consensus on supporting Windows 2000 for software distribution? Are people supporting Windows XP SP2+ for new software development or is this too restrictive still? ...

Windows MiniDump files -- "Symbols can not be loaded" when trying to read with WinDbg

I have an application that sometimes causes a BSOD on a Win XP machine. Trying to find out more, I loaded up the resulting *.dmp file (from C:\Windows\Minidump), but get this message when in much of the readout when doing so: Symbols can not be loaded because symbol path is not initialized. * * The Symbol Path can be set by: ...

Windows Forms Threading and Events - ListBox updates promptly but progressbar experiences huge delay

Our team is creating a new recruitment workflow system to replace an old one. I have been tasked with migrating the old data into the new schema. I have decided to do this by creating a small Windows Forms project as the schema are radically different and straight TSQL scripts are not an adequate solution. The main sealed class 'ImportC...

PHP / cURL on Windows install: "The specified module could not be found."

I'm running PHP 5.2.3 on Windows 2000 Server with IIS 5. I'm trying to get cURL working, so in my php.ini file, I have this line: extension_dir ="F:\PHP\ext" And later, I have: extension=php_curl.dll The file F:\PHP\ext\php_curl.dll exists, but when I try to run any PHP script, I get this in the error log: PHP Warning: PHP Startup...

Windows/C++: How do I determine the share name associated with a shared drive?

Let's say I have a drive such as "C:\", and I want to find out if it's shared and what it's share name (e.g. "C$") is. To find out if it's shared, I can use NetShareCheck. How do I then map the drive to its share name? I thought that NetShareGetInfo would do it, but it looks like that takes the share name, not the local drive name, as ...

simultaneous Outlook reminders on multiple devices

Disclaimer: This is not actually a programming question, but I feel the audience on stackoverflow is more likely to have an answer than most question/answer sites out there. Please forgive me, Joel, for stealing your question. Joel asked this question on a podcast a while back but I don't think it ever got resolved. I'm in the same si...

Determining how long the user is logged on to Windows

Hi all, The need arose, in our product, to determine how long the current user has been logged on to Windows (specifically, Vista). It seems there is no straight forward API function for this and I couldn't find anything relevant with WMI (although I'm no expert with WMI, so I might have missed something). Any ideas? ...