| Copyright | 2013 shelarcy |
|---|---|
| License | BSD-style |
| Maintainer | shelarcy@gmail.com |
| Stability | Provisional |
| Portability | Non-portable (Win32 API) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.Win32.Info.Version
Contents
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
- getVersionEx :: IO OSVERSIONINFOEX
- c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL
- isVistaOrLater :: IO Bool
- is7OrLater :: IO Bool
Version Info
data OSVERSIONINFOEX Source #
Constructors
| OSVERSIONINFOEX | |
Fields
| |
Instances
| Show OSVERSIONINFOEX Source # | |
Defined in System.Win32.Info.Version Methods showsPrec :: Int -> OSVERSIONINFOEX -> ShowS show :: OSVERSIONINFOEX -> String showList :: [OSVERSIONINFOEX] -> ShowS | |
| Storable OSVERSIONINFOEX Source # | |
Defined in System.Win32.Info.Version Methods sizeOf :: OSVERSIONINFOEX -> Int alignment :: OSVERSIONINFOEX -> Int peekElemOff :: Ptr OSVERSIONINFOEX -> Int -> IO OSVERSIONINFOEX pokeElemOff :: Ptr OSVERSIONINFOEX -> Int -> OSVERSIONINFOEX -> IO () peekByteOff :: Ptr b -> Int -> IO OSVERSIONINFOEX pokeByteOff :: Ptr b -> Int -> OSVERSIONINFOEX -> IO () peek :: Ptr OSVERSIONINFOEX -> IO OSVERSIONINFOEX poke :: Ptr OSVERSIONINFOEX -> OSVERSIONINFOEX -> IO () | |
type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source #
type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source #
data ProductType Source #
Constructors
| VerUnknow BYTE | |
| VerNTWorkStation | |
| VerNTDomainControler | |
| VerNTServer |
Instances
| Eq ProductType Source # | |
Defined in System.Win32.Info.Version | |
| Show ProductType Source # | |
Defined in System.Win32.Info.Version Methods showsPrec :: Int -> ProductType -> ShowS show :: ProductType -> String showList :: [ProductType] -> ShowS | |
| Storable ProductType Source # | |
Defined in System.Win32.Info.Version Methods sizeOf :: ProductType -> Int alignment :: ProductType -> Int peekElemOff :: Ptr ProductType -> Int -> IO ProductType pokeElemOff :: Ptr ProductType -> Int -> ProductType -> IO () peekByteOff :: Ptr b -> Int -> IO ProductType pokeByteOff :: Ptr b -> Int -> ProductType -> IO () peek :: Ptr ProductType -> IO ProductType poke :: Ptr ProductType -> ProductType -> IO () | |
getVersionEx :: IO OSVERSIONINFOEX Source #
c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL Source #
Verify OS version
isVistaOrLater :: IO Bool Source #
is7OrLater :: IO Bool Source #