On this page
System.Win32.Info.Computer
Copyright | 2012-2013 shelarcy |
---|---|
License | BSD-style |
Maintainer | shelarcy@gmail.com |
Stability | Provisional |
Portability | Non-portable (Win32 API) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Description
Information about your computer.
Environment Strings
expandEnvironmentStrings :: String -> IO String Source
c_ExpandEnvironmentStrings :: LPCTSTR -> LPTSTR -> DWORD -> IO DWORD Source
Computer Name
getComputerName :: IO String Source
setComputerName :: String -> IO () Source
c_GetComputerName :: LPTSTR -> LPDWORD -> IO Bool Source
c_SetComputerName :: LPTSTR -> IO Bool Source
System metrics
getSystemMetrics :: SMSetting -> IO Int Source
sM_CMONITORS :: SMSetting Source
sM_IMMENABLED :: SMSetting Source
sM_MOUSEWHEELPRESENT :: SMSetting Source
sM_REMOTESESSION :: SMSetting Source
sM_SAMEDISPLAYFORMAT :: SMSetting Source
sM_XVIRTUALSCREEN :: SMSetting Source
sM_YVIRTUALSCREEN :: SMSetting Source
sM_SERVERR2 :: SMSetting Source
sM_MEDIACENTER :: SMSetting Source
sM_STARTER :: SMSetting Source
sM_TABLETPC :: SMSetting Source
User name
getUserName :: IO String Source
Get user name. See: https://github.com/haskell/win32/issues/8, http://lpaste.net/41521
c_GetUserName :: LPTSTR -> LPDWORD -> IO Bool Source
Version Info
data OSVERSIONINFOEX Source
Constructors
OSVERSIONINFOEX | |
Fields
|
Instances
Storable OSVERSIONINFOEX Source | |
Defined in System.Win32.Info.Version MethodssizeOf :: 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 |
|
Show OSVERSIONINFOEX Source | |
Defined in System.Win32.Info.Version MethodsshowsPrec :: Int -> OSVERSIONINFOEX -> ShowS Source show :: OSVERSIONINFOEX -> String Source showList :: [OSVERSIONINFOEX] -> ShowS Source |
type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source
type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source
data ProductType Source
Constructors
Instances
Storable ProductType Source | |
Defined in System.Win32.Info.Version MethodssizeOf :: 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 |
|
Show ProductType Source | |
Defined in System.Win32.Info.Version MethodsshowsPrec :: Int -> ProductType -> ShowS Source show :: ProductType -> String Source showList :: [ProductType] -> ShowS Source |
|
Eq ProductType Source | |
Defined in System.Win32.Info.Version |
getVersionEx :: IO OSVERSIONINFOEX Source
c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL Source
Processor features
type ProcessorFeature = DWORD Source
isProcessorFeaturePresent :: ProcessorFeature -> IO BOOL Source
pF_3DNOW_INSTRUCTIONS_AVAILABLE :: ProcessorFeature Source
pF_COMPARE_EXCHANGE_DOUBLE :: ProcessorFeature Source
pF_FLOATING_POINT_EMULATED :: ProcessorFeature Source
pF_FLOATING_POINT_PRECISION_ERRATA :: ProcessorFeature Source
pF_MMX_INSTRUCTIONS_AVAILABLE :: ProcessorFeature Source
pF_PAE_ENABLED :: ProcessorFeature Source
pF_RDTSC_INSTRUCTION_AVAILABLE :: ProcessorFeature Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/Win32-2.12.0.0/System-Win32-Info-Computer.html