W3cubDocs

/Haskell 8

System.Win32.Info.Computer

Copyright 2012-2013 shelarcy
License BSD-style
Maintainer [email protected]
Stability Provisional
Portability Non-portable (Win32 API)
Safe Haskell Safe
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

type POSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source

type LPOSVERSIONINFOEX = Ptr OSVERSIONINFOEX Source

data ProductType Source

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

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