windows-vista

Install files to original user's My Docs folder via Inno Setup on Windows Vista/7

六眼飞鱼酱① 提交于 2019-12-06 12:43:29
问题 In the [Run] section of an Inno Setup script, there's a flag runasoriginaluser that allows the script to run a process as the original user: the spawned process will execute with the (normally non-elevated) credentials of the user that started Setup initially (i.e., the "pre-UAC dialog" credentials). Is there an equivalent flag or workaround for the {userdocs} shell folder constant? This is apparently a known limitation within Inno Setup (and other installers, generally), but I'm hoping

Elevated Credentials for VB6

元气小坏坏 提交于 2019-12-06 12:41:32
问题 I need to get elevated credentials (to start a service) in a VB6 application, but only if the user needs to restart the service (I.e. I don't want to get elevated credentials whenever the application is started, only when the user selects restart). How can I do this in VB6? 回答1: Fairly easy, but the preferred way involves a new elevated process. This example uses itself run with a switch to know to perform the Service Start instead of normal operations: VERSION 5.00 Begin VB.Form Form1

How to use SetWindowsHookEx in Vista and hook Admin apps with UAC?

六眼飞鱼酱① 提交于 2019-12-06 11:48:12
I'm trying to figure out if there's a way to use SetWindowsHookEx and be able to affect apps that are run with Admin rights on Vista, with UAC enabled. This is an app that will need to add a small button to the caption bar of other windows to enable some multi-monitor-aware handling. I would have thought this couldn't be done, but I've seen one app that appears to do this. As far as I can tell, this other apps is not being run with Admin rights, and yet it can affect all apps in the system, including those with Admin privilege. It would seem that there's a way to do this, then, but I'm at a

disable folder virtualization in windows

☆樱花仙子☆ 提交于 2019-12-06 11:06:51
I currently have a c++ application that gets built on xp and windows vista/7 virtualize some of the paths which i dont want it to do. Some sites says to add this to manifest file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly> How ever that is for .net applications. How can i do this under c++ for visual

Best place to save user information for Windows XP and Vista applications

夙愿已清 提交于 2019-12-06 07:55:20
问题 I need to save a user's login information in encrypted form for this application I'm building, but I'm not sure of the best place to save the file. I don't want to save it into the program application folder as I want it per user. So what is the best folder (or way) to save it into? Edit: Using C++. 回答1: Seems like C:\Documents and Settings\%username%\Local Settings\Application Data may be the appropriate place according to Wikipedia. The article says this location is used for "User-specific

UAC: Manifest file is ignored

依然范特西╮ 提交于 2019-12-06 07:25:40
One of my Executables writes some configuration into a XML file to C:\Program Files\MyApp\config.xml. It needs to run as Administrator on Vista / Server 2008, otherwise the OS won't let it write to that location. I included a manifest file named config.exe.manifest, to automatically request administration rights at launch. Here's my manifest file: <?xml version="1.0" encoding="utf-8"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level=

Vista 64-bit Development Caveats

一曲冷凌霜 提交于 2019-12-06 06:11:37
问题 I'm migrating my development workstation from 32-bit Vista to 64-bit Vista. The production platform is 32-bit Windows Server and SQL Server 2008. Does anyone know of any issues with migrating the code base? EDIT: the system consists of web forms, c# code, stored procedures. there is also ajax.net, ssrs, ssis, and dynamic reports/graphs from dundas. however, i think other users might appreciate any lessons learned or feedback in general regarding this move. FINDINGS: As of Jan 24, 2009

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

≡放荡痞女 提交于 2019-12-06 06:07:44
From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\ ). (This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.) I can see the XP Embedded computer from the Vista workstation. For example, I can ::getnameinfo() to resolve the XP Embedded computer's name from its IP address. However, all calls to

Different versions of C++ libraries

爷,独闯天下 提交于 2019-12-06 05:52:39
After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs fine on the original vista machine and other vista computers. However, moving it over to an XP box results in an error message: "The application failed to start because the application configuration is incorrect". What do I have to do so my compiled EXE works on XP and Vista? I had this same problem a few months ago, and just fiddling with some settings on the project fixed it, but I don't remember which ones I changed. You need to install the Visual Studios 2008 runtime on the target computer: http://www

Windows form rotation

ⅰ亾dé卋堺 提交于 2019-12-06 05:13:26
问题 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#? 回答1: Does it have to be in WinForms? This is very easy to do in WPF, using rotation transforms. Unfortunately, the WindowsFormsHost integration with WPF does not allow rotation transforms. EDIT I understand, now, that the form in question is out of the