Computing.Net > Forums > Windows NT > Problem with Win NT Validation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Problem with Win NT Validation

Reply to Message Icon

Name: Donald
Date: September 7, 2006 at 04:06:24 Pacific
OS: windows NT
CPU/Ram: 256MB
Product: WIN Xp
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Dirty_Sanchez
Date: September 7, 2006 at 20:43:19 Pacific
Reply:

you'd be better off at a programmer forum for the language you write in.


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Problem with Win NT Validation

Cannot find a digital camera compatible with WIN/NT V4 www.computing.net/answers/windows-nt/cannot-find-a-digital-camera-compatible-with-winnt-v4/10958.html

Nero s/w does not work with Win/NT www.computing.net/answers/windows-nt/nero-sw-does-not-work-with-winnt/3346.html

Win NT 4.0 sound problems www.computing.net/answers/windows-nt/win-nt-40-sound-problems/19955.html