Thursday, August 27, 2009

Code 7 Contest - I'm coming for you, Windows 7

To finally jump on the multiprocessor bandwagon, I bought a new computer with AMD Phenom II X4 905e on Monday.

Since I didn't have enough time to install my favorite Gentoo, I decided to quickly give Windows 7 RC a try.

I'm quite impressed with the functionality offered out of the box. All the hardware is usable and I didn't even bothered to install any drivers (except for Catalyst), since I'm going to wipe the partition clean in couple of weeks.

But as I already have Windows 7 up and running, I decided to take part in code7contest. I do not expect to win or anything - I set my goals humbly and want to at least get full version of Windows 7 (hopefully they will give them out to all participants). That's how cheap I am :).

The first couple of milestones/prerequisites are already completed:

  1. Install ViM
  2. Install Visual C++ 2008 Express (for compiler :))
  3. Install Windows 7 SDK RC
  4. Compile program using Win32 API functions introduced in Windows 7

I am very aware about the shortcomings of following code - don't copy paste it - it's just something to test if I can call Windows 7 API functions without any LoadLibrary calls.

 //snip

 WCHAR *a = (WCHAR *) malloc(100);
 
 SetCurrentProcessExplicitAppUserModelID(L"Hello");
 GetCurrentProcessExplicitAppUserModelID((PWSTR *)&a);
 MessageBox(NULL, a, a, MB_OK);

 //snip

Next task is to prepare a plan and post a milestone overview with dates.

Hopefully regular work on the contest entry will force me into updating this blog more regularly.