windows-vista

Command line subversion client for Windows Vista 64bits

独自空忆成欢 提交于 2019-11-30 11:08:24
Does anyone recommend any particular command line SVN client for Windows. Being 64 bits would be a bonus. I do have TortoiseSVN, but it doesn't come with command line, which is required for my build scripts. I searched the subversion site and found not one, but four different options. Therefore, my question. SlikSVN ( download ) looks like the most appropriate option given what you want. They aren't 64-bit, but the official Collabnet binaries work fine in 64-bit Windows: http://www.collab.net/downloads/subversion/ Again its not 64-bit but this is a good open source client http://sourceforge

Getting volume change notifications on Vista/7 (C++)

删除回忆录丶 提交于 2019-11-30 10:15:51
I'm trying to get notifications whenever the master volume changes on Windows Vista/7. This is the code I'm using: #include <audiopolicy.h> #include <audioclient.h> #include <mmdeviceapi.h> #include <endpointvolume.h> #include <windows.h> #include <shlwapi.h> #include <iostream> #include <Tchar.h> static const GUID AudioSessionVolumeCtx = { 0x2715279f, 0x4139, 0x4ba0, { 0x9c, 0xb1, 0xb3, 0x51, 0xf1, 0xb5, 0x8a, 0x4a } }; template <class T> void SafeRelease(T **ppT) { if (*ppT) { (*ppT)->Release(); *ppT = NULL; } } class CAudioSessionVolume : public IAudioSessionEvents { public: static HRESULT

Disable Vista UAC per-application, or elevate privileges without prompt?

谁说我不能喝 提交于 2019-11-30 10:09:34
I have an app that normal users need to be able to run, but requires administrator privileges to actually function. I tried to make the shortcut that my users run it with "Run as administrator" but this just causes a UAC prompt whenever they try to run the app. Is there any way to elevate privileges programatically, without my users needing to go through a UAC prompt and/or knowing an administrator password? From a security standpoint, I understand that most applications shouldn't be allowed to do this, so I'm hoping there is some way to do it if I can provide a valid username/password pair,

Blocking mouse input from a service in Vista

只谈情不闲聊 提交于 2019-11-30 09:56:53
问题 I maintain a variety of managed userlabs on a university campus. These machines all currently run Windows XP and we have a windows service that is used to "lock" a machine by blocking any keyboard or mouse input. The locking happens during our scripted OS installation so that users aren't able to accidentally halt or break the process. It is also used to prevent users from logging into machines until they are checked out at the front desk of a given lab. Ctrl+Alt+Del is blocked via a keyboard

Correct way to design around Windows UAC limitations?

大憨熊 提交于 2019-11-30 09:26:21
I found out an application I wrote does not work properly under Windows Vista/7 if UAC is enabled at any level, because it writes files to the install directory of the program, defaults to "C:\Program Files\MyProgram." If UAC is disabled (or on any other version of Windows) it works properly - I read that UAC denies applications write access to the Program Files directory by default. My question is, well, how should I write my application so that it can be used without any "rights" needed at all. I don't want users to have to run it with elevated privileges or as administrator. I just want it

How to configure Visual Studio not to give UAC prompt on each run?

£可爱£侵袭症+ 提交于 2019-11-30 09:09:57
I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated: PIX for Windows Visual Studio 2005 (elevated privileges seem to be needed for debugging and for IncrediBuild to work) mapped and substed drives: The elevated process does not seem to see the drives I have mapped in my user account. This article describes the problem, but I am not sure how could I implement its final suggestion to "map these drives in the context of the elevated login" . I have experimented with

django-admin.py is not working properly

风流意气都作罢 提交于 2019-11-30 08:51:04
问题 I have just spotted that something is wrong with my django-admin.py command. I checked similar SO posts on django-admin.py problems but nothing seems to be related to my problem. I use Windows Vista (yeah, I know...). I also have many versions of django in some folder on my disk and I switch to the version I need using junction command (this is similar to symlinking in unix), I don't have problems with this and never had problems before. I used django-admin.py many times before but now for

Animated “glow” in owner-drawn Progress Bar (ListView/DataGridView)

丶灬走出姿态 提交于 2019-11-30 07:32:35
I've noticed that the bog-standard ProgressBar in .NET 2.0 (Winforms) does show up as the fancy animated glowing bar in Vista; however, using the ProgressBarRenderer (as one generally has to when trying to draw a progress bar in an owner-drawn list view, grid view, or other such control) just gives the visual style without the pretty animation. I guess it was silly to expect that this would just magically work - I imagine the native control in Vista must have some sort of embedded timer or thread that obviously doesn't exist when drawing a static image. I did see that if you redraw a

How do I add my application in the Default Programs list of Windows Vista/7?

大城市里の小女人 提交于 2019-11-30 07:10:37
So many programs feature a list of possible extensions and protocols under the "Default Programs" control panel applet. "Set Default PRograms", more precisely. (Vista & 7) I wish to add my programs in that list and set some extensions that it can handle. One more thing. My program supports addons for opening more files, so that list should be dynamic (I can add more extensions or even protocols at any time) By the way, yes, I know, this is not exactly a programming question. It'd be my humble guess that it's a registry question. So UAC will not be an issue! The registry keys required to

Windows batch file starting directory when 'run as admin'

跟風遠走 提交于 2019-11-30 06:18:58
问题 I have a batch file which is in a directory and must be run from there as well because it updates files within this directory. This works perfectly fine, except when the user runs the batch file as administrator (required on Vista). Then the starting directory is C:\Windows\System32. Is there any way to still be able to know from which directory the batch file was run? I dont want the user to enter the directory manually. 回答1: Try to access the batch files path like this: echo %~dp0 For more