windows-vista

Pimp my UAC and a few questions about it

Hi, I have this application that need to do some things in protected paths (like %PROGRAMFILES%), I know that I should be using %APPDATA%, but I can't change that for now. I have isolated all the things that could require UAC to show up on another project, here's a sample code: using System; using System.Diagnostics; using System.IO; u...

"The specified table does not exist" - for the administrator it does! Vista only issue

Hello, I've got a weird bug occurring in a compact database on a Vista deployment machine. Basically the sdf file seem to be schizophrenic. The client application get the entitled error when running as a user but not when I use run as administrator. I don't see this problem on my XP development machine. I installed management studio o...

"Printer..." button in the Windows Page Setup Dialog (Vista)

We're using the Windows Forms "Page Setup" dialog to allow the user to select a page size prior to print preview. On XP, the dialog displays a "Printer..." button which allows the user to select a printer and select from a list of page sizes supported by only that printer. On Vista, the very same code displays the dialog without any butt...

Winlogon: How to run app after explorer terminates during logoff?

Windows XP/VISTA/7 How might it be possible to run an application during the logoff procedure of a user, after explorer.exe terminates? The purpose is to block shutdown but with an application that runs after explorer has terminated. It is of course possible to temporararily block shutdown in vista with ShutdownBlockReasonCreate, or t...

Vista services: Can show form on invisible desktop?

I am attempting to show a form from a service on Vista (using .NET winforms) Obviously the form would not show to the console user, as services are isolated in session 0. However the experiment is to see if it is possible to "show" an invisible form and obtain a window handle & message loop I have tried but when I issue form.Show(), o...

Writing To The Registry In COM+ On Vista

I have an assembly written in C# with a COM interface. This assemby is hosted in COM+ as a COM+ service running in dllhost.exe. I am using an Interactive User Identity, which means that the dllhost.exe process is started with the user that Activates the COM object. The user that starts the dllhost.exe object is and Administrator and h...

capture a picture from using CPP

hi, i need a program to capture pictures from multiple webcams, and save it automatically in vista. i got the basic code from this link. http://www.cs.ru.nl/lab/des/marsrover/communication/pc%5Fimageprocessing%5Fcoordinates/VFWCapture.cpp the code runs in windows XP but when i tried using it on vista and it says failed. different errors...

Which Is The Major Differences Between Windows XP, Vista And 7 At The Development Side

Hello, Recently I installed Windows 7 in my development machine just to test, with it I installed Visual Studio 2010, but I was thinking in what are the major differences between the development for/under Windows XP, Windows Vista and Windows 7?, how about .Net Framework 4? ...

How to prevent program may have been uninstalled message in Vista?

After uninstalling our application (a web server) in Vista or newer Windows, an error message box appears that says, 'An error occurred while trying to uninstall My App. It may have already been uninstalled. Would you like to remove My App from the Programs and Features list?'; and there are 'Yes' and 'No' buttons. This happens right aft...

LookupAccountName fails on vista with ERROR_NONE_MAPPED

Hi, I'm trying to call LookupAccountName on Vista - it always fails with the error ERROR_NONE_MAPPED. What could be the reason?? Thanks!! ...

Getting bssid-s from WMI

I tried to get information about available networks using WMI. Unfortunately I always get an empty list. I tried it both via VBScript (using http://www.scriptinternals.com/new/us/support/Internal/WMI%5FMSNdis%5F80211%5FBSSIList.htm) and with Jacob package for Java. It seems that winmgmts://localhost/root/WMI / MSNdis_80211_BSSIList and ...

netsh htpp add urlacl : add reservation for a group

This article explain how to configure a namespace reservation for a user using netsh.exe as follows: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user The parameter user= is said to be either user or user-group. It works as described when I configure for a single user, but if I replace DOMAN\user with DOMAIN\Administra...

.Net Runtime Optimization Service Is Turning My System Unstable

Hello, I'm using Windows Vista Ultimate and today I've installed the Visual Studio 2008 SP1, now that I restarted my computer, it's very unstable and when I got in the Task Manager I see that it's taking 88% of my CPU! What I can do to solve this? Thanks. ...

tortoisesvn context menu's and windows 7 / Vista UAC

Hi, I'm using Windows 7 and Tortoise SVN. (although the same applies to Vista) If, for exampe, I want to download a repo by using the context menu option "SVN Checkout", and want to checkout the files inetpub folder (UAC protected), tortoise SVN cannot due to UAC and gives an "Access Denied" error. How can I run Tortoise SVN via the ...

c# vista - how to implement color scheme in code? framework 2.0

I have an application which I run on vista. when i tried to change the color scheme of windows (right click on desktop ->personalize->window color and appearance -> change color scheme to high contrast black) I cannot see the text and background images I use. any idea what to do? ...

Vista and out-of-process COM server

I'm having a hell of a time trying to figure out user privilidges and security settings on Vista. The situation is this: I have a 32 bit C++ application that acts as an out-of-process (==standalone exe) COM server. I have several .Net, FoxPro, X++ and C/AL client applications that use this server. They all work on WindowsXP. They often ...

How do I turn Password Protected Sharing on or off programmatically?

Windows Vista and 7 has this switch in Network and Sharing Center. It's on by default, and that prevents unauthenticated access to shares even if they're shared with Everyone (like the Public folder). I need to teach my application to turn it on and off automagically. How? I suspect there is a value somewhere in the registry that's respo...

How do I control my application's name in the UAC dialog?

I would like to control the name of my application as it appears in the UAC dialog. Right now it shows up as something like "MyCompany.MyApp.exe"; I would prefer something like "MyApp Pro". In other words, I would like a short, friendly phrase instead of the raw EXE file name. I noticed that MMC.EXE appears in the UAC dialog as "Microso...

Why are named pipes local?

I remember using Named Pipes for communicating between 2 machines (back in Windows NT). How come now I read that Named Pipes are only for Inter Process Communication in the SAME machine? (in Vista and Windows 7) ...

WCF performance issue in Vista

Hi there, I am having performance issues with Vista when trying to connect with wsHttpBindings and NetNamedPipeBindings on Vista. I'm having 4 WCF services where the first one connects to the second and the second one connect to two others. The problem is when I run this setup on my Vista (64 bit) desktop the response times a really w...