Copyright | 2012-2013 shelarcy |
---|---|
License | BSD-style |
Maintainer | shelarcy@gmail.com |
Stability | Provisional |
Portability | Non-portable (Win32 API) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Information about your computer.
Synopsis
- expandEnvironmentStrings :: String -> IO String
- c_ExpandEnvironmentStrings :: LPCTSTR -> LPTSTR -> DWORD -> IO DWORD
- getComputerName :: IO String
- setComputerName :: String -> IO ()
- c_GetComputerName :: LPTSTR -> LPDWORD -> IO Bool
- c_SetComputerName :: LPTSTR -> IO Bool
- getSystemMetrics :: SMSetting -> IO Int
- sM_CMONITORS :: SMSetting
- sM_IMMENABLED :: SMSetting
- sM_MOUSEWHEELPRESENT :: SMSetting
- sM_REMOTESESSION :: SMSetting
- sM_SAMEDISPLAYFORMAT :: SMSetting
- sM_XVIRTUALSCREEN :: SMSetting
- sM_YVIRTUALSCREEN :: SMSetting
- sM_SERVERR2 :: SMSetting
- sM_MEDIACENTER :: SMSetting
- sM_STARTER :: SMSetting
- sM_TABLETPC :: SMSetting
- getUserName :: IO String
- c_GetUserName :: LPTSTR -> LPDWORD -> IO Bool
- 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
- type ProcessorFeature = DWORD
- isProcessorFeaturePresent :: ProcessorFeature -> IO BOOL
- pF_3DNOW_INSTRUCTIONS_AVAILABLE :: ProcessorFeature
- pF_COMPARE_EXCHANGE_DOUBLE :: ProcessorFeature
- pF_FLOATING_POINT_EMULATED :: ProcessorFeature
- pF_FLOATING_POINT_PRECISION_ERRATA :: ProcessorFeature
- pF_MMX_INSTRUCTIONS_AVAILABLE :: ProcessorFeature
- pF_PAE_ENABLED :: ProcessorFeature
- pF_RDTSC_INSTRUCTION_AVAILABLE :: ProcessorFeature
- pF_XMMI_INSTRUCTIONS_AVAILABLE :: ProcessorFeature
- pF_XMMI64_INSTRUCTIONS_AVAILABLE :: ProcessorFeature
Environment Strings
expandEnvironmentStrings :: String -> IO String 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 #
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 #
OSVERSIONINFOEX | |
|
Instances
Show OSVERSIONINFOEX Source # | |
Defined in System.Win32.Info.Version showsPrec :: Int -> OSVERSIONINFOEX -> ShowS show :: OSVERSIONINFOEX -> String showList :: [OSVERSIONINFOEX] -> ShowS | |
Storable OSVERSIONINFOEX Source # | |
Defined in System.Win32.Info.Version 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 #
Instances
Eq ProductType Source # | |
Defined in System.Win32.Info.Version (==) :: ProductType -> ProductType -> Bool (/=) :: ProductType -> ProductType -> Bool | |
Show ProductType Source # | |
Defined in System.Win32.Info.Version showsPrec :: Int -> ProductType -> ShowS show :: ProductType -> String showList :: [ProductType] -> ShowS | |
Storable ProductType Source # | |
Defined in System.Win32.Info.Version 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 #
Processor features
type ProcessorFeature = DWORD Source #
isProcessorFeaturePresent :: ProcessorFeature -> IO BOOL Source #