John Lam 1997 — 2026

Jeroen is my hero

Who says that C# can only be used to write user-mode programs? Jeroen Frijters wrote a C# program that displays an artificial horizon on his new Thinkpad T41p by reverse-engineering the IOCTL that corresponds to the data provided by the built-in accelerometer in his T41p. Now, you could argue that Managed C++ was a better tool for the job, but this is an impressive effort nonetheless!

1 archived reader comment

Ian Griffiths (2003-12-20)

In what sense is this not user mode code?

This is just some code that runs in user mode, and uses a user-mode API into a kernel mode feature. So it’s not really any different from System.IO.FileStream, or System.Net.Socket - both of these make use of kernel mode device drivers too.