>Check MSDN for this function:
>GetVersionEx
Nope, that won't tell him, but VerifyVersionInfo() would. The OSVERSIONINFO doesn't have the necessary member to distinguish between XP Home and Pro. VerifyVersionInfo() uses an OSVERSIONINFOEX structure which contains a member that will (wSuiteMask). If this value is set to VER_SUITE_PERSONAL, then it's XP Home. Unfortunately, I have neither XP nor immediate access to the documentation (necessary header file) to be able to state the value of the constant nor test.
George
Ubi caritas et amor, deus ibi est