System.Win32.Info.Version

Win32-2.5.4.1: A binding to part of the Win32 library

Copyright | 2013 shelarcy
License | BSD-style
Maintainer | shelarcy@gmail.com
Stability | Provisional
Portability | Non-portable (Win32 API)
Safe Haskell | Safe
Language | Haskell98

System.Win32.Info.Version (signature[?])

Contents

- Version Info
- Verify OS version

Description

Version information about your computer.

Synopsis

- data OSVERSIONINFOEX = OSVERSIONINFOEX {
  - dwMajorVersion :: DWORD
  - dwMinorVersion :: DWORD
  - dwBuildNumber :: DWORD
  - dwPlatformId :: DWORD
  - szCSDVersion :: String
  - wServicePackMajor :: WORD
  - wServicePackMinor :: WORD
  - wSuiteMask :: WORD
  - wProductType :: ProductType
  }
- type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX
- type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX
- data ProductType
  - = VerUnknow BYTE
  - | VerNTWorkStation
  - | VerNTDomainControler
  - | VerNTServer
- getVersionEx :: IO OSVERSIONINFOEX
- c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL
- isVistaOrLater :: IO Bool
- is7OrLater :: IO Bool

# Version Info

data OSVERSIONINFOEX Source #

Constructors

OSVERSIONINFOEX |
Fields dwMajorVersion :: DWORD dwMinorVersion :: DWORD dwBuildNumber :: DWORD dwPlatformId :: DWORD szCSDVersion :: String wServicePackMajor :: WORD wServicePackMinor :: WORD wSuiteMask :: WORD wProductType :: ProductType

Instances

Show OSVERSIONINFOEX # |
Methods showsPrec :: Int -> OSVERSIONINFOEX -> ShowS Source # show :: OSVERSIONINFOEX -> String Source # showList :: [OSVERSIONINFOEX] -> ShowS Source #
Storable OSVERSIONINFOEX # |
Methods sizeOf :: OSVERSIONINFOEX -> Int Source # alignment :: OSVERSIONINFOEX -> Int Source # peekElemOff :: Ptr OSVERSIONINFOEX -> Int -> IO OSVERSIONINFOEX Source # pokeElemOff :: Ptr OSVERSIONINFOEX -> Int -> OSVERSIONINFOEX -> IO () Source # peekByteOff :: Ptr b -> Int -> IO OSVERSIONINFOEX Source # pokeByteOff :: Ptr b -> Int -> OSVERSIONINFOEX -> IO () Source # peek :: Ptr OSVERSIONINFOEX -> IO OSVERSIONINFOEX Source # poke :: Ptr OSVERSIONINFOEX -> OSVERSIONINFOEX -> IO () Source #

type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source #

type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source #

data ProductType Source #

Constructors

VerUnknow BYTE |
VerNTWorkStation |
VerNTDomainControler |
VerNTServer |

Instances

Eq ProductType # |
Methods (==) :: ProductType -> ProductType -> Bool # (/=) :: ProductType -> ProductType -> Bool #
Show ProductType # |
Methods showsPrec :: Int -> ProductType -> ShowS Source # show :: ProductType -> String Source # showList :: [ProductType] -> ShowS Source #
Storable ProductType # |
Methods sizeOf :: ProductType -> Int Source # alignment :: ProductType -> Int Source # peekElemOff :: Ptr ProductType -> Int -> IO ProductType Source # pokeElemOff :: Ptr ProductType -> Int -> ProductType -> IO () Source # peekByteOff :: Ptr b -> Int -> IO ProductType Source # pokeByteOff :: Ptr b -> Int -> ProductType -> IO () Source # peek :: Ptr ProductType -> IO ProductType Source # poke :: Ptr ProductType -> ProductType -> IO () Source #

getVersionEx :: IO OSVERSIONINFOEX Source #

c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL Source #

# Verify OS version

isVistaOrLater :: IO Bool Source #

is7OrLater :: IO Bool Source #