BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 5d, 16h, 55m | CPU: 8% | MEM: 1852MB of 3173MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPost subject: Differentiating between NT Server & EE?        Posted: Fri Aug 03, 2007 10:21 pm 
Reply with quote
Donator
Offline

Joined
Sat Sep 30, 2006 5:00 pm

Posts
3557
Hello, just wondering if it is possible to differentiate between NT Server & EE within a script or a program (i.e. by reading an entry from the registry or something) when you "can't have a look" at the system.


Top  Profile
 PostPost subject:        Posted: Sat Aug 04, 2007 1:59 am 
Reply with quote
Donator
Offline

Joined
Tue Oct 17, 2006 8:26 pm

Posts
929
The ONLY difference that I see with enterprise edition and standard server is the NT splash screen at login (says enterprise edition), and what is available in Add/Remove programs under windows components (everything that is on the second CD... like clustering services). And even that doesn't really matter because you can install the enterprise edition services on plain server.


Top  Profile
 PostPost subject:        Posted: Sat Aug 04, 2007 2:06 am 
Reply with quote
Donator
Offline

Joined
Sat Sep 30, 2006 5:00 pm

Posts
3557
Yep, that's also what I noticed. And of course the presence of some Enterprise-related items in Administrative Tools. Maybe I can make something up using this as indicator.


Top  Profile
 PostPost subject: Re: Differentiating between NT Server & EE?        Posted: Sat Aug 04, 2007 5:46 am 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Aug 24, 2006 8:03 am

Posts
1115

Location
Germany
empireum wrote:
Hello, just wondering if it is possible to differentiate between NT Server & EE within a script or a program


you can detect the difference by using the GetVersionEx ad checking for the wSuiteMask Value:

Code:
// Try calling GetVersionEx using the OSVERSIONINFOEX structure.
  // If that fails, try using the OSVERSIONINFO structure.
  ZeroMemory(@osvi,sizeof(TOSVersionInfo));
  osvi.dwOSVersionInfoSize := sizeof(TOSVersionInfo);

  bOsVersionInfoEx := GetVersionEx(osvi);
  if(not bOsVersionInfoEx) then
  begin
    osvi.dwOSVersionInfoSize := VERSIONINFOSIZE;
    if(not GetVersionEx(osvi)) then
    begin
      Result := 'Fehler bei der Ermittlung der Windows-Version';
      exit;
    end;
  end;

if (osvi.dwMajorVersion = 4) and (osvi.dwMinorVersion = 0) then
            begin // Windows NT 4.0
              if(osvi.wSuiteMask and VER_SUITE_ENTERPRISE <> 0) then
              Begin
                FProductType := ptEnterprise;
                Result := Result + 'Server 4.0, Enterprise Edition '
              End
              else
              Begin
                FProductType := ptServer;
                Result := Result + 'Server 4.0 ';
              End;
            end;


if you need the full source let me know

_________________
"Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why."


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS