Is my Process Virtualized or Redirected?

In some scenarios it might be necessary to know whether a process is actually being redirected or not. A case in point is for example a library that is loaded and needs to know whether the host process and the library have an identical view of the virtualized world. You can use GetTokenInformation with TokenVirtualizationEnabled…

0

Debugging LSASS

For some reason I had to debug LSASS (Local Security Authority Process) recently. Considering that LSASS is rather involved in the functioning of the system with respect to authorization checks, it is cumbersome to debug. The system deadlocks immediately. Try for example attaching to lsass.exe from WinDbg and click the start button when the debugger…

0

Certification Freebie

I had mentioned in a previous post about handy certification tools.  If that sparked your interest in getting your app certified, Microsoft is extending the offer for a refund for the cost of verification testing until the end of June.  You only get a refund if you pass – so, make sure your app meets the requirements…

0

GetCurrentProcess fails on Net 1.1 on Vista

This little snippet compiled with .Net 1.1: using System; using System.Diagnostics; ¬ ¬† class Program { ¬†¬†¬† static void Main(string[] args) ¬†¬†¬† { ¬†¬†¬†¬†¬†¬†¬† try ¬†¬†¬†¬†¬†¬†¬† { ¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† Process c = Process.GetCurrentProcess(); ¬ ¬† ¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† Process[] p = Process.GetProcessesByName(c.ProcessName); ¬†¬†¬†¬†¬†¬†¬† } ¬†¬†¬†¬†¬†¬†¬† catch (Exception e) ¬†¬†¬†¬†¬†¬†¬† { ¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† Console.WriteLine(e.Message); ¬†¬†¬†¬†¬†¬†¬† } ¬†¬†¬† } } ¬…

1

C2065: ‘TOKEN_LINKED_TOKEN’ : undeclared identifier

If you get¬†¬†¬†¬ error C2065: ‘TOKEN_LINKED_TOKEN’ : undeclared identifier¬†¬†¬†¬ when you try to compile a VC++ project that needs to get the linked token through GetTokenInformation, you need to get the Microsoft Windows SDK for Windows Vista. This is true for all the new Vista APIs of course. The SDK that shipped with Visual Studio…

1

SetThreadPriority from Run key

If you add an application to the Run key in the registry (HKLM\Software\Microsoft\Windows\CurrentVersion\Run), you’ll notice that its threads are kept at Normal priority. You can call SetThreadPriority all day long, but it won’t make a difference: the priority of the thread is kept at Normal (to be precise, it is for about a minute or…

4

Vista Certification Testing Tools

In the lab we get a lot of questions about the Vista Certification logo program.  There are two different logos you can get for your product: Works With Windows Vista This one is easy to get and everyone is recommended to go for this logo.  Your app needs to pass the 30 minute compatibility check defined…

1