Creating System DSNs on Vista

As stated in the MSDN article that all Keys under HKLM\Software are virtualized, there is still the HKLM\Software\ODBC\ODBC.INI key (For creating System DSNs) that will NOT be virtualized. The rationale behind this was that – Creating a System DSN would essentially be a task of an Administrator and so when you write to this location…

1

Why you don’t want to launch a process with a filtered token from a full token

Our team works extensively with ISVs on Vista application compatibility – porting XP applications to Windows Vista. We frequently get the question “How can I launch a program with a filtered token from a program with a full token?” Although there sure are ways to do this, there is a slight caveat with this scenario. What…

0

Command line application with manifest asInvoker

The recommendation for command line applications is to use requestedExecutionLevel=asInvoker in the manifest. If you would mark your console application as “requireAdministrator” (or “highestAvailable” and you are a member of the administrators group) and launch it  from a filtered token prompt, you will see a new console window popping up. All the output will go…

1

CoCreateInstanceAsAdmin or CreateElevatedComObject sample

The COM elevation moniker is one of the three recommended ways to have a user application do tasks that require admin privileges. The UAC document from September 2006 refers to it as the Admin COM Object model under the section “Key Decisions for Designing Administrator-Only Applications”.   Apparently CoCreateInstanceAsAdmin from the SDK documentation has been…

13