Eine Klasse für Windows gibts natürlich auch schon:

http://www.winapi.net/index.php?inhalt=t3