windows

Properly notifying all listeners of a system wide named manual reset event and then immediately resetting it

I have a system-wide manual reset event that I create by doing the following: EventWaitHandle notifyEvent = new EventWaitHandle(false, EventResetMode.ManualReset, notifyEventName, out createdEvent); Several processes create this event (e.g. it is shared amongst them). It is used for notifying when something gets updated. I'd like to ...

Detecting installed programs via registry

Hi there, I need to develop a process that will detect if the users computer has certain programs installed and if so, what version. I believe I will need a list with the registry location and keys to look for and feed it to the program which is not a problem. Is there a better way to accomplish this? My first thought was to check in t...

Open Source Syslog Daemon for Windows

Can anyone recommend an open source Syslog Daemon for Windows (specifically Windows 2008 64bit). Thanks ...

Opening .sln files in Windows Vista

Hi, This one seems to be quite ridiculous but how can I open a VS solution file in Windows Vista double-clicking on it? Every time I do I got a strange error that the file doesn't exist. I'm pretty sure this is a Vista configuration but I couldn't find any relevant information. It's really annoying having to open the VS IDE every time...

Batch files, vista x64, if and parenthesis

Some batch files on Windows use an IF syntax with multiple lines, as below: if var==rule ( some comands ) else ( else commands ) Now, Windows Vista x64 decided to put all 32 bits files under "C:\Program Files (x86)". Unfortunately, whenever you use an environment variable (such as PATH) inside a multiple line IF without quotes, th...

Bandwidth throttling for Apache<2.2 on Windows (mod_throttle?)

Hey there Does anyone know of a windows build of mod_throttle for Apache 2.2 or lower? Or perhaps another means by which to throttle bandwidth. I need to throttle as low as 64k for a local speed test demonstration Preferably Apache rather than a browser plug-in too. Thanks! ...

Is there an open source C visual debugger for windows?

Is there an open source C visual debugger for windows? I have heard about the visual C++ express free edition, but does it have a visual debugger? Thanks. ...

HTML2PDF Conversion

We're developing software for both Linux and Windows that requires CVS files to be generated into PDF reports. I've written a program in C to turn the CVS files into HTML files (td, tr etc.) and am then converting the HTML into PS using html2ps and then ps2pdf under Linux. However as mentioned above we're also developing for Windows an...

Class not registered HRESULT Ox80040154

I'm using the .NET framework version 6.0 on Windows Vista. I recently installed a program that displays charts. When I open it, I get an error message from the Microsoft .NET framework: Class not registered (exception from HRESULT: Ox80040154 (REGDB_E_CLASSNOTREG)). How do I fix the problem? Thanks. ...

How can I make a USB flash drive appear/not appear as a CD drive?

I recently was given a small USB flash drive as an advertising gimmick. When I plug it in, only one drive appears: a CD drive with 42kb used (just an autorun.inf file which launches the manufacturer's website). I know U3 drives also appear as CD drives, but their uninstall utility only works for their own drives. How can I make it appea...

Building a vertical IE Explorer Bar (Band Object) (like Favorites Panel)

Hi all, I am trying to build a vertical explorer bar (band object) in IE7 that "sticks" across all tabs (similar to the "Favorites" bar). In case you don't know I'm talking about, open up IE7 and go to View->Explorer Bar->Research to open the Research bar. Open a new tab in the same window and notice that the research bar is not displa...

C++: Dynamically loading classes from dlls

For my current project I want to be able to load some classes from a dll (which is not always the same, and may not even exist when my app is compiled). There may also be several alternative dll's for a given class (eg an implementation for Direct3D9 and one for OpenGL), but only one of the dlls will be loaded/used at any one time. I ha...

Windows Home Server backup solution

I admit this is not strictly a programming question, although I do use my WHS as a source repository server for home projects, and I'm guessing many other coders here do as well. Does anyone have a recommendation for a good backup solution for the non-fileshare portion of Windows Home Server? All the WHS backups I've seen handle the fi...

Systeminfo: Product ID

If you type systeminfo at the command prompt, there is a listing for Product ID. Can someone explain what this is exactly, and would it make a good seed for a registration code algorithm? ...

Is it necessary to remember lots of Win32 Api for a C++ programmer?

I always work in windows environment and most often to write the program in C/C++. Is it necessary to a Windows Application Programmer to remember Win32 APIs as more as possible?? Dazza ...

How to get a user token from Logonuser for a user account with no password?

How can you get a user token from Logonuser for a user account with no password? In particular Logonuser will fail for accounts that do not have passwords. You can validate an account by checking for a blank password + checking for GetLastError() == ERROR_ACCOUNT_RESTRICTION. But I need to actually get a token returned, so I need thi...

Advatages to using virutalization for web development

It's one of those things I see a lot but never really think of. Do you think for the purpose of web application development (specifically ASP.NET WebForms/MVC). Do you think it's advantageous to do such a thing and if so, what kind of advantages come out of it? By virtualization I mean using products like Hyper-V to separate the serve...

If I make a new file type for my program, how do I use "Open With" properly?

I made a program. I also made my own file type, which the program can create, open, and edit. In Explorer, I right clicked on this new file type and selected "Open With" and chose my program. Of course, it just opens the program without loading the file. How do I let my program know that it's being requested to open a file on startup...

how do you use IME?

I want to make a control that handles user input, so I want to be able to handle different keyboards, and one of the ways is using IME. If you don't handle it, there is a floating window that appears when you have IME active (for example japanese writing active). I found the messages that needs to be taken care of, but I don't know how...

Change locale for a single invocation?

I know under Linux it's pretty easy to just change e.g. LC_NUMERIC for a single invocation: LC_NUMERIC=de_DE ./app Is there a similar way for doing that under Windows for a single application? I don't want change the locale for my whole system. For details, it's about Songbird which has locale bug when displaying numbers. Until there...