Happy April Fools Day

written by Ryan Olshan on Saturday, April 01 2006

As a computer geek, I'd like to wish everyone a happy April Fools day the geekiest way I know how.

using System;

using System.Runtime.InteropServices;

 

class AprilFoolsDay

{

    [DllImport("user32.dll", ExactSpelling = true, SetLastError = true)]

    internal static extern bool ExitWindowsEx(int flag, int reason);

 

    static void Main(string[] args)

    {

        Console.WriteLine("Happy April Fools Day");

        ExitWindowsEx(0x00000001, 0);

    }

}

Kick this post on .NET Kicks

Similar Posts

  1. Nullable Types
  2. Unit testing events with anonymous methods
  3. Strong Coders Generic Data Access Library

Post a comment