windows-vista

How to set default audio device programmaticaly on windows vista using C#

I want to select the default audio device on windows vista programmatically. I have a code which is working perfectly on windows XP, here is the registray entry.. HKCU/Software/Microsoft/Multimedia/Sound Mapper and under that key two entries are there PlayBack and Record when I set these registry entries on Windows XP, they wo...

how to get event when application is closed from task manager

Hi All, I have developed a win32 application using c/c++, which runs on vista and xp, I wanted to know, can i get any event in my application when my application is killed from task manager, by selecting the "end process" button I want to free some memory on exit of my application. Please help in this regard with regards, Vinayak...

Valid path not so valid in Vista using ParseDisplayName. Why?

In the following code example... where filePath is: "E:\[D]\My Collection" (a folder generated by picasa when it archives media) works okay on XP (32-bit). I recent ran this on vista 64-bit... and ParseDisplayName errors with "Value does not fall within the expected range." All other folders (without the '[D]') work okay. Any help wou...

CreateDesktop() with vista and UAC on (C, windows)

I asked this in http://stackoverflow.com/questions/1188396/createdesktop-with-vista-uac-c-windows I set a bounty but in trying to vote down the only answer the "accept" was pressed by mistake (i've been awake for more than 48 hs). so I am asking it again. I'm using CreateDesktop() to create a temporary desktop where an application will...

Query on Windows Filtering Platform

Dear All, I am using the Windows Filtering Platform API,to block some URL, I wanted to know is there any way to block all url and give exception to only few url. Please help me in this regard, give me ur thoughts on this with regards Vinayaka Karjigi ...

Windows form rotation

When you create a form in .Net it appears as a dialog box in a portrait layout. No one normally likes to read sideways, or upside down, but I have a very valid reason to rotate the form. Anyone knows how to do it on Windows Vista with C#? ...

Access won't let me see the changes I've made to the database

I've got an MS-Access database stored in a folder (yes, I have 'Modify' permissions set for the folder) on a Vista machine. From my .NET application (VB2008) I can query the database just fine, and add records to the tables. When I re-run the application the added records are there. However if I start Access (2000) and open the databa...

Installing 'WCF HTTP Activation' on Windows Vista fails?

This is only remotely development related, but basically I wanted to install the MS Azure SDK which relies on an installed IIS 7, ASP.Net but also a working installation of the 'WCF HTTP Activation' component. Now following the article on MSDN, I always get the following error: Does anyone have an idea what I'm missing or what I shou...

Possible to only initiate scheduled task if shortcut/button clicked?

Hi, I've created 2 tasks in Task Scheduler on my Vista PC start uTorrent at 2am then close uTorrent (and shutdown PC) at 7am. However i'd like to only like this task to run if I've clicked a shortcut - ideally show something in the tray as well if possible. But not sure how? Thanks in advance! ...

Autostart Apps in order - Windows Vista.

Is there some way to autostart apps in Vista so you can control which one is started first, second, third etc. For example if I want to start Outlook, Visual Studio, Dreamweaver, IE, Firefox in that order, and to have them appear in the taskbar like that. I added them into the autostart-folder but Vista didn't start the apps in the ord...

Non-administrator account in Vista cannot register ActiveX plug-in (won't let me install .dll)

So I wrote an ActiveX control but I can't install it anywhere when you are not administrator. Does anyone know a work-around for this (that doesn't involve an administrator)? ...

Minimizing Window in shortcut -Vista

Is there a way to assign a shortcut for Minimizing a window the Alt-Space-n sequence in just one keyboardshortcut? With a vbs-script and then assign the shortcut to that script? But how does that script look like? ...

drawing under icons on desktop

I wrote a program who paints widget on desktop wallpaper, under desktop icons, and all was good. But I reveal a strange bug - my program was not works on some other computers - they displays the same desktop without widget after start. So, have anybody any expirience, some knowledge in this area? Please, help me! :) (I can't find any ...

Multithreaded Engine Windowed random slowdown

We have a task based multithreaded engine set up where a scheduler passes the task to the threads lock-free queue. The engine is in C++ with DirectX for the rendering and we are using boost::thread for creating the threads. When in windowed mode, it randomly slows down for a second or so and then speeds back up. It seems that it's someth...

Save File to Desktop in Vista/Windows 7 in .NET 2.0

Hi, I'm working on updating one of our applications. It must use .NET 2.0. One portion creates a file on the Desktop using FileStream fs = new FileStream(Environment.GetFolderPath (Environment.SpecialFolder.DesktopDirectory), FileMode.Create); But I get an UnauthorizedAccessException in Windows 7 (and Vista too, I'm assuming, ...

about doing UI test using selenium-rc for internet explore 7 under window vista

Excuse me, may I ask if any one have tried to use selenium rc to do UI test for Inernet Explore 7 under window vista? I have tried to do that. But the result is that: when the code is run, it gets the IE7 opened and the page loaded. Afterwards, it does nothing although I do have command for typing text and clicking buttons after the pag...

Vista UAC - permissions and certificates for an exe

I'm a bit of a newbie with regard to UAC and certificates. I have an installer (bespoke) that needs to write files to Program Files, set registry keys, create SQL databases, add start menu shortcuts, etc. It thus requires elevation for pretty much everything it does. If this application is run under Vista, an orange UAC dialog is shown...

Start Java Runtime Process with Administrator rights on Vista

Hi, i want to execute a setup.exe installer which installes a software on vista with java 1.6. The user is not an administrator. When i try to start the process i get the error message: CreateProcess error=740 which indicates, that the user has not enough rights for starting the process. Can i submit a flag or an option to indicat...

Avoid "program stopped working" in C#/.NET

I have a console application written in C#/.NET that I want to run from a script (nant). If an exception occurs in the console application, I would like nant to continue, but in Windows Vista there is a popup that searches for solutions and asks for debug etc. I would like to avoid the popup with "program stopped working" when an except...

Team Foundation Server in Windows VIsta

Will Team Foundation Server work in Windows Vista. ...