windows

build.exe and cleaning?

I'm working on some driver development and using Microsoft's build.exe tool from the WDK 6001 (Vista). I'd like to be able to clean up all the object and intermediate files it spews out on every iteration. So far, I've found "build.exe -0 -c" works relatively well, by simply deleting all the .obj files, but none of the .sbr files or dir...

Getting the speaker audio signal and then streaming it out

I am trying to build what I think is a basic app. Well, two apps one for windows and one for OS X. I would like to capture the audio signal that is playing (ie if the user is playing music out his/her speakers). Then take that signal and stream it out so another computer can "listen". The other computer would be Windows or OS X. An...

Is there a simpler Windows C++ Subversion API or an example .vcproj for minimal_client.c?

Following on the tails of my previous (answered) question... SharpSvn makes calling the Subversion client API simple: SvnClient client = new SvnClient(); client.Authentication.DefaultCredentials = new NetworkCredential(username, password); client.CheckOut(new Uri("http://xxx.yyy.zzz.aaa/svn/repository"), workingCopyDir); On the other...

Is any one aware of windows event to trap the mouse and keyboard input

I want to trap windows mouse and keyboard input with the help of event given by windows for detecting system idle or not in C++. Two things I have tried: 1. Hooking concept, but as antivirus might not allow it and also CPU usage increases if we use hooking. 2. GetLastInputInfo() which also eats CPU usage about 50 % Anyone can tell me i...

How to construct and deliver documentation for IT tools on Windows?

How should I construct and deliver documentation for an IT tool on Windows? There's an additional constraint that I don't want to spend money on help authoring tools. Here on SO, we talk about algorithms and optimizations, APIs and performance. But one of the deliverables from my dev efforts is documentation. What's the best way to b...

Universal scripting language for Windows

Linux user - Windows noob alert ;) Could someone recommend me scripting/programming language that's functional and works on all Windows (let's focus on XP, maybe Vista too) machines without additional installation? Something that won't make me install new things to run code. For example on Linux I have shell (heh) and can code basic th...

WinAPI replacement for reg.exe

Are there WinAPI functions that do the same what can do standard Windows utility reg.exe with import/export flags? I'm know that there are RegSaveKey and RegRestoreKey functions, but the calling process must have additional privileges SE_RESTORE_NAME and SE_BACKUP_NAME. This means that it is necessary to ask user to elevate process (sho...

Absolute path of executable start directory

Hi, I am trying to figure out how to grab the start directory for my program. I am using C and have access to GLib. On the Linux side it is easy, g_get_current_directory as soon as the program is launched, and store this value for later use. I tried using the same method on windows but g_get_current_directory returns whatever %APPDATA% ...

Files with long extensions unexpectedly deleted using command prompt

i am trying to delete some files using a batch file.. (winxp) my problem is when i delete using a wildcard.. it is matching the 8.3 name aswell as the long name. eg: file list file1.py file1.pyc file2.pycstlongname file2.pycstlongnamec if i do a Del *.pyc it deletes everything but file1.py becuase if i do a dir /X all of teh 8...

domain redirect without changing url

Hi, I'm building a sitebuilder project. The database and all other ASP.NET code is ready but I don't know how to handle domain names, because I will have only one site in IIS7 but more than a hundred sites are gonna publish from my site. (Like the sitebuilder you can find on the internet.) When users go the page, ex: www.myname1.com, it ...

HTTP client example on win32

Dear All, I wanted to develop one HTTP example on win32 platform, which is asynchronous. I am new to win32 programming, can i know what are the api and library win32 platform provides for HTTP send and receive request. I am using windows xp with VS 2005. If any example is available directly on net please provide me link to it, wit...

How can I extract the call graph of a function from Python source files?

Do you know an integrated tool that will generate the call graph of a function from Python sources? I need one that is consistent and can run on Windows OS. ...

Find the open forms in c# windows application

I am using this function to close existing form and open a new form. If there is no exixting form, it throws error. Error : Target : System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean) Message : Invoke or BeginInvoke cannot be called on a control until the window handle has been c...

More recent networking books

I'm not sure if publish date matters, but it seems that all the recommended books I see are from like, pre-2000, or at the latest, around 2002. Hasn't there been much advance on the subject in almost 10 years? Are there any recently published network programming books, and are they any good? I posted this on GDnet but would like as many ...

where to put initialization files in windows

I am looking for an acceptable starting point for placing applications settings in a Windows machine. I have more than one application. for personal reasons, I wouldn't like to use the registry: I prefer plain text initialization files (.ini). I also don't feel like holding the files in the same directory as the executables, the ideal...

How are threads executed on multiple processors on Windows?

I am on Windows (Windows 7, XP and Vista). If I create a multi-threaded program, will the threads be executed on all available cores? Is it automatic? Is it guaranteed? For example, if I have four threads and four processors, will the threads be executed one on each processor/core? ...

Launching GUI App from Windows Service - Window Does Not Appear

hi i have written a simple windows service which will launch a exe specified in the onstart() method of the service.After starting the service the exe got launched it only presents in the memory but it doesnt show in the explorer. im trying to launch a calc.exe from my code.it shows the exe in the memory but it doesnt comes i...

Intercept windows open file

Hello, I'm trying to make a small program that could intercept the open process of a file. The purpose is when an user double-click on a file in a given folder, windows would inform to the software, then it process that petition and return windows the data of the file. Maybe there would be another solution like monitoring Open messag...

PowerShell scripts every developer should know

Hi, Windows PowerShell is out a quite long time now. In comparison to the the good old windows shell it's much more powerful. Are there any scripts you use to speed up and simplify your every day work as an developer? If you can do magic with PowerShell -> please share it with us! Update Not really a script, but also very useful are Po...

Diff tool that allows saving the compare markup

Is there a diff tool that allows saving of the compare markup? To clarify, I would like to save the actual comparison of the two files that shows the differences to send to someone for review. EDIT Lots of good answers here. In my case I already had a copy of Beyond Compare but didn't see the option. Thanks to John Saunders for poin...