HELP Windows Version API 
Author Message
 HELP Windows Version API

I would be most grateful if someone could please help with the following.  

I have an installation routine which needs to check what platform it is
operating on (this is needed for knowing whether to install a 16 or 32 bit
version program).  Trouble is because the installation program is written
in 16 bit, NT responds to the GETVERSION API saying it is also a 16 Windows
version.  Clearly NT has decided because I have been asked by a 16 bit
program I had better tell it I am capable of running 16 bit programs.

What API should I call to get the true state of a Windows operating
platform?

Thanks, in advance.

Mark Thompson



Fri, 04 Feb 2000 03:00:00 GMT  
 HELP Windows Version API

->I would be most grateful if someone could please help with the
following.  
->
->I have an installation routine which needs to check what platform it
is
->operating on (this is needed for knowing whether to install a 16 or
32 bit
->version program).  Trouble is because the installation program is
written
->in 16 bit, NT responds to the GETVERSION API saying it is also a 16
Windows
->version.  Clearly NT has decided because I have been asked by a 16
bit
->program I had better tell it I am capable of running 16 bit
programs.
->
->What API should I call to get the true state of a Windows operating
->platform?
->

The GetWinFlags API function call will tell you whether you are
running under NT. There is an example in MS KB
(http://www.microsoft.com/kb/default.asp) article Q122353.

FWIW, there is no 16-bit API function call that can determine whether
you are running under NT 4.0.

Paul
~~~~



Sat, 05 Feb 2000 03:00:00 GMT  
 HELP Windows Version API

GetWinFlags is a good way but the SysInfo control is easier:

Private Sub Command1_Click()
        Dim MsgEnd As String
        Select Case SysInfo1.OSPlatform
                Case 0
                        MsgEnd = Unidentified
                Case 1
                        MsgEnd = Windows 95, ver.  & CStr(SysInfo1.OSVersion)
                Case 2
                        MsgEnd = Windows NT, ver.  & CStr(SysInfo1.OSVersion)
        End Select
        MsgBox System:  & MsgEnd
End Sub

--
Kerry B. Rogers, President
The Pentone Group, Inc.
Visit us at http://www.pentone.com
Home of ModPeek32:
---- Sample ModPeek32 Listing ---
This Exe
    Needs This DLL
        Which Needs This DLL
            Which... (you get the picture)
-------------- End of Sample --------------



Thu, 17 Feb 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Windows 2000 Version Api

2. Old version Windows API Bible.

3. Windows API across versions

4. How get the File Version with VB or API Windows

5. Windows Version API Query

6. Windows API call to set windows colors (HELP Please)

7. I need Windows 3.11 API / Necesito API de Windows 3.11

8. I need Windows 3.11 API / Necesito API de Windows 3.11

9. Help:Netware API Help File(in Windows Help file format)

10. Get the system version Windows version

11. Help - Need newer version of Windows Message

12. Getting Current Windows Version and Memory Status :HELP PLEASE

 

 
Powered by phpBB® Forum Software