System.Win32.Info.Computer

Copyright 2012-2013 shelarcy
License BSD-style
Maintainer [email protected]
Stability Provisional
Portability Non-portable (Win32 API)
Safe Haskell Safe-Inferred
Language Haskell2010

Description

Information about your computer.

Environment Strings

expandEnvironmentStrings :: String -> IO String

c_ExpandEnvironmentStrings :: LPCTSTR -> LPTSTR -> DWORD -> IO DWORD

Computer Name

getComputerName :: IO String

setComputerName :: String -> IO ()

c_GetComputerName :: LPTSTR -> LPDWORD -> IO Bool

c_SetComputerName :: LPTSTR -> IO Bool

System metrics

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

User name

getUserName :: IO String

Get user name. See: https://github.com/haskell/win32/issues/8, http://lpaste.net/41521

c_GetUserName :: LPTSTR -> LPDWORD -> IO Bool

Version Info

data OSVERSIONINFOEX

type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX

type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX

data ProductType

getVersionEx :: IO OSVERSIONINFOEX

c_GetVersionEx :: LPOSVERSIONINFOEX -> IO BOOL

Processor features

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

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/Win32-2.6.1.0/System-Win32-Info-Computer.html