At the moment i'm building a class for the System API's. It's not finished but i would like to know if i am doing it correctly, this is my first attempt at making a class, so can some one take a look at it and see if there is anything i could do to it to make it better or check for any mistakes. Just requesting feedback from it really.
in the GetOSVersionName function, udtVersionInfo.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS for pre-NT systems, yet in IsWin95/98/ME you're checking it against VER_PLATFORM_WIN32_NT
also you should specify the clauses - just in case the computer decides to interpret it differently:
VB Code:
IsWin98 = [B]([/B]udtVersionInfo.dwPlatformId = [B]VER_PLATFORM_WIN32_WINDOWS)[/B] And _
[B]([/B]udtVersionInfo.dwMajorVersion = 4[b])[/b] And [B]([/B]udtVersionInfo.dwMinorVersion = 10[b])[/b]
use the typed version of the string manip functions, otherwise they return variants: Left$Space$