Win32-2.14.1.0: A binding to Windows Win32 API.
Copyright2012-2013 shelarcy
LicenseBSD-style
Maintainershelarcy@gmail.com
StabilityProvisional
PortabilityNon-portable (Win32 API)
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Win32.Info.Computer

Description

Information about your computer.

Synopsis

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

Instances

Instances details
Instance details

Defined in System.Win32.Info.Version

Methods

showsPrec :: Int -> OSVERSIONINFOEX -> ShowS

show :: OSVERSIONINFOEX -> String

showList :: [OSVERSIONINFOEX] -> ShowS

Instance details

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

Instances

Instances details
Instance details

Defined in System.Win32.Info.Version

Methods

(==) :: ProductType -> ProductType -> Bool

(/=) :: ProductType -> ProductType -> Bool

Instance details

Defined in System.Win32.Info.Version

Methods

showsPrec :: Int -> ProductType -> ShowS

show :: ProductType -> String

showList :: [ProductType] -> ShowS

Storable ProductType Source #
Instance details

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 #

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 #

pF_XMMI_INSTRUCTIONS_AVAILABLE :: ProcessorFeature Source #

pF_XMMI64_INSTRUCTIONS_AVAILABLE :: ProcessorFeature Source #

AltStyle によって変換されたページ (->オリジナル) /