windows-vista

Start application non-elevated from NSIS installer

I have an NSIS installer, that gives the option "Run program now" when the installation has completed successfully. The installer runs elevated (as administrator) on Vista, but as a result, my installed program will also run elevated when started immediately from the installer. This gives a problem with certain 3rd party software I'm us...

GDI+: Cannot load "Vista" icon (OutOfMemory)

Trying to load an icon with GDI+ using GdipLoadImageFromFile: Image image; String filename = "C:\Archive\-=Images=-\Microsoft\Vista\shell32\Icon_129.ico"; Status result = GdipLoadImageFromFile(filename, out image); returns the status OutOfMemory (3). You can also use the object wrapper form: Image image = new Image(filename, false)...

Runing bcdedit from python in Windows 2008 SP2

I do not know windows well, so that may explain my dilemma ... I am trying to run bcdedit in Windows 2008R2 from Python 2.6. My Python routine to run a command looks like this: def run_program(cmd_str): """Run the specified command, returning its output as an array of lines""" dprint("run_program(%s): entering" % cmd_str) ...

vista bllocks my systray icon for some reason

Why VISTA says to end-user that it has blocked my app's systray icon? how to avoid this? ...

Recommended place for Windows Service state storage?

I have a Windows Service written in C# (.Net 3.5) and I need to store some state somewhere so that next time the service starts up, it knows where it left off. What is the recommended store for this type of thing? The registry? What if I just put some user settings in a Settings.settings file? Where would the user profile be for a servi...

Virtualize Win 2008 Server on Vista

Hi, Running Vista 64 as my dev machine, and would like to get a Server 2008 R2 up and running on it. Downloaded the x64 version of Win 2008, then realised virtual pc doesn't support emulating in 64-bit. What ways do I have to get a x64 2008 server up and running virtualised on my Vista machine? ...

Which permissions does Eclipse need to run fine? (Vista / Domain)

Hi, I installed Eclipse and I have some trouble which refer to denied user permissions , as far as I can see. I am working on Vista inside an Windows domain. My user account is very restricted. My boss needs to input his admin pass everytime I need to install any application and even to establish new network connections through the fir...

WIA, Vista, and VB6. Does this code work?

Basically the constraints here are that i must use WIA because i am trying to get my scanner software to work in Windows 7 and Vista. It would be preferable (like really preferable) if i could do this in VB6. Now this code i have compiles and everything, however when i run it i get the error "No WIA device of the selected type is availa...

python windows vista/7 uac and copying (only reading) files? permissions/interaction of UAC?

I'm currently making a program for a lan center that scans a users hard drive, and copies/archives certain save game files into a zip and uploads them to a FTP server. But I've created a lot of the program at this point and just had a major issue that I had not tested for spring to mind: How does Vista/7's UAC permissions account for c...

How does one intercept the Windows Vista/Server 2008/7 XPS print stream?

I'm planning to write a program that calculates the costs of users' print jobs and, for expensive jobs, prompts them if they want to continue printing anyway. (I know that there are existing utilities like GreenPrint that do something similar; my approach is a bit different.) I am curious if there is a straightforward way to intercept X...

Connecting to Oracle 8.1.7 - how to get the right ODBC driver?

I have a Vista machine that needs to remotely connect to Oracle 8.1.7 database. Installing the instant client with the ODBC pack gets an ODBC driver, but when you create a datasource with it, it says it's no longer compatible with that database version. What's the best way to get the correct ODBC driver? ...

C# and Data Execution Prevention (Vista)

Hi, I was writing a small program and have some problems with DEP, what I want to do is to open files stored on another windows-share, my code looks like this: foreach (string file in files) { Process.Start(file); } files is a simple string array with file locations (for example "\myshare\dir\picture.jpg"). This code works witho...

Visual Studio no longer associated with application crashes

Hi, When I first installed Visual Studio 2008 on my machine, crashes from applications would present me with a dialog to debug the application in Visual Studio. This was perfect. Recently however my Visual Studio installation has become unassociated with application crashes. Instead I get a dialog which attempts to file the applicatio...

Change Thread Session ID Windows C++

How could I start a thread in a different session? I need to start a thread in the interactive session (session 1) from a service in the non-interactive session (session 0). I have done this with a process before by using SetTokenInFormation and DuplicateTokenEx and then passing this to CreateProcessAsUser. I was hoping I could do the sa...

Determine if O/S is Windows 7...

Working on a project and need to be able to determine whether the O/S is Windows 7, Vista or default to XP. I understand I could run into Win2K and earlier versions but let's just say that's not a concern as other code will catch that before it gets to this point. My application will be in C++ for the time being using VS2005. I've found ...

Leverging Remote Assistance in Vista

On Windows XP there is a known way to create a Remote Assistance Ticket. http://msdn.microsoft.com/en-us/library/ms811079.aspx But on Vista this does not appear to work. How does one do this on Vista or Windows 7? ...

Listening to debug messages in Vista/Win7/Win2K3

I created a logging service that listens to debug messages (calls to OutputDebugString) from other applications. My starting point was DbMon.Net (http://www.codeproject.com/KB/trace/DbMonNET.aspx?msg=2612567) but I had to fix the following issues: Security descriptor was not used and as a result I did not see messages from applications...

Why is WiX detecting Windows Installer 4.05 when 4.5 is installed?

This is a bit of a strange problem. I have an installer that needs to check the version of Windows Installer on a machine, so I use the VersionMsi property to do this. However, when trying it out on a Vista 32-bit machine, I have found that it reports that I have 4.05 installed. So I checked msi.dll, msiexec, etc and found that they wer...

How to disable automatic appending of wildcard pattern in Vista file open dialog

Hello, I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides t...

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}

Hi all, I am developing an application in ASP.NET 3.5. i am exporting data to excel file using some interops dll's. earlier i have developed the applicaion in Windows 2003 Server. at that time i could able to export the data to excel file. but recently i have upgraded my pc to Vista version.it is working fine in my localhost. when i d...