how to detect user's OS?

Quote
"Mark Q" <cragw...@oohay.moc.reverse> wrote in message

news:3c10c528_2@news.iprimus.com.au...

Quote
> Hello,

> How do I detect the user's OS? I want to distinguish between 95/98/ME and
> NT/2000/XP.

See GetVersion in the Win SDK help.