windows-vista

Tool for exploring Windows Vista Audio device chain (tree?)

独自空忆成欢 提交于 2019-12-21 06:43:26
问题 The new Vista Audio subsystem is set up to be a chain of devices starting with the inputs, going through all the various controls (like mixers and volumen controls) and then ending up at various endpoints (like speakers or headphones). My question is: Is there a tool out there that will show all the endpoints devices in the system, and what devices are chained together? Ideally, it would diagram the topology, showing what inputs where connected to what outputs, and you would be able to see

Open default browser as standard user (C++)

纵然是瞬间 提交于 2019-12-21 05:42:10
问题 I'm currently using ShellExecute "open" to open a URL in the user's browser, but running into a bit of trouble in Win7 and Vista because the program runs elevated as a service. When ShellExecute opens the browser, it seems to read the "Local Admin" profile instead of the user's. So for example, if the user at the keyboard has Firefox as his default browser, it may open IE (which is the admin's default). I know that the "runas" verb can be used to elevate, but how do you do it the other way

Respond to keyboard when not in focus? (C#, Vista)

霸气de小男生 提交于 2019-12-21 05:13:05
问题 I'm trying to write an application that responds whenever the Shift key is pressed, no matter what application currently has focus. I tried this with SetWindowsHookEx() and with GetKeyboardState() , but both of these only work when the application's window has focus. I need it to work globally. How do I do this? 回答1: You'll have to use SetWindowsHookEx(). There are only two types of hooks that you can implement in a managed language, WH_KEYBOARD_LL and WH_MOUSE_LL. All other hooks require a

How to get size and position of window caption buttons (minimise, restore, close)

别等时光非礼了梦想. 提交于 2019-12-21 05:11:25
问题 Is there an API call to determine the size and position of window caption buttons? I'm trying to draw vista-style caption buttons onto an owner drawn window. I'm dealing with c/c++/mfc. Edit: Does anyone have a code example to draw the close button? 回答1: I've found the function required to get the position of the buttons in vista: WM_GETTITLEBARINFOEX This link also shows the system metrics required to get all the spacing correct (shame it's not a full dialog picture though). This works

The procedure entry point _gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll Error

本小妞迷上赌 提交于 2019-12-21 04:54:29
问题 Yesterday I decided to download, install, and attempt to use Allegro 5. I also downloaded Code::Blocks 12.11 w/ the MinGW compiler. I set up everything and installed everything correctly (or so I thought) and tried to run a sample code to see if it would work: #include <stdio.h> #include <allegro5/allegro.h> int main(int argc, char **argv){ ALLEGRO_DISPLAY *display = NULL; if(!al_init()) { fprintf(stderr, "failed to initialize allegro!\n"); return -1; } display = al_create_display(640, 480);

How does Windows (specifically, Vista) determine if my application is hung?

爷,独闯天下 提交于 2019-12-21 04:13:31
问题 I have a problem very similar to the one described here: http://www.eggheadcafe.com/software/aspnet/30579866/prevent-vista-from-markin.aspx That thread suggests that Task Manager sends WM_NULL to the process and expects the process to consume this message within timeout limit (5 seconds?). When I google for "WM_NULL hung" there are many references to the same technique. However I don't see any WM_NULL messages in the queue of my application while it works on a lengthy operation - I have a

“Unable to read data from the transport connection: net_io_connectionclosed.” - Windows Vista Business and SMTP

此生再无相见时 提交于 2019-12-20 16:10:51
问题 Unable to test sending email from .NET code in Windows Vista Business. I am writing code which I will migrate to an SSIS Package once it its proven. The code is to send an error message via email to a list of recipients. The code is below, however I am getting an exception when I execute the code. I created a simple class to do the mailing... the design could be better, I am testing functionality before implementing more robust functionality, methods, etc. namespace LabDemos { class Program {

What directories do the different Application SpecialFolders point to in WindowsXP and Windows Vista

对着背影说爱祢 提交于 2019-12-20 11:09:46
问题 Namely I have: Environment.SpecialFolder.ApplicationData Environment.SpecialFolder.CommonApplicationData Environment.SpecialFolder.LocalApplicationData I am unclear as to were these point to in Windows XP and/or Windows Vista. What I found so far is that the ApplicationData points to the ApplicationData Folder for the current user in XP and the roaming application data folder in Vista. I would also like to know if there are general guidelines on when to use which. 回答1: There's no single

What directories do the different Application SpecialFolders point to in WindowsXP and Windows Vista

那年仲夏 提交于 2019-12-20 11:09:10
问题 Namely I have: Environment.SpecialFolder.ApplicationData Environment.SpecialFolder.CommonApplicationData Environment.SpecialFolder.LocalApplicationData I am unclear as to were these point to in Windows XP and/or Windows Vista. What I found so far is that the ApplicationData points to the ApplicationData Folder for the current user in XP and the roaming application data folder in Vista. I would also like to know if there are general guidelines on when to use which. 回答1: There's no single

How would I find the cygwin version which has been installed on my machine

不问归期 提交于 2019-12-20 08:47:03
问题 Cygwin - How would I find the Cygwin's version which has been installed on my machine? (Win Vista) 回答1: With the uname utility, as on other POSIX systems. uname -r 回答2: If you want to detect if you're running the 32 bit or 64 bit version, the -m switch will tell you: uname -m "i686" for the 32-bit version, "x86_64" if it's 64-bit. uname -a ..gives you all the information at once. Check man uname for details. (This is also answered in How do I tell whether my cygwin installation is 32 or 64