May 18, 2016

Building Robust Software

Software is infamously hard. This notion dates back to the 70s with the software crisis and the “No Silver Bullet” paper by Fred Brooks. The bigger the system, the more complicated it is to build software for it. The traditional trajectory is build a system to spec and watch it

Locking Your Computer with C#

In order to lock your computer, you need to use the following two APIs: [DllImport(“user32.dll”)] public static extern void LockWorkStation(); [DllImport(“user32.dll”)] public static extern int ExitWindowsEx(int uFlags, int dwReason); You should implement it as follows: // Lock computer void btnLock_Click(object sender, System.EventArgs e) { LockWorkStation(); }// Log Off void btnLogOff_Click(object