Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I'm writing a code to validate windows Nt sp 6 OS. Here is the snippet of my code.
else if ((osvi.dwMajorVersion == 4) && ((osvi.wProductType == 1) || (osvi.wProductType == 3)))
if (osvi.wServicePackMajor >6)
return 1;
else
return -7;
else
Unfortnately it is passing even if it has SP < 6 . how do i precicely validate only for windows Nt With SP6 installed..
please advice...Appreciate your help..Thanks in advance.
else if ((osvi.dwMajorVersion == 4) && ((osvi.wProductType == 1) || (osvi.wProductType == 3)))
if (osvi.wServicePackMajor >6)
return 1;
else
return -7;
else

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |