System.Win32.Info

Win32-2.12.0.0: A binding to Windows Win32 API.

Copyright | (c) Alastair Reid 1997-2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell2010

System.Win32.Info

Contents

- Standard directories
- System information
- System metrics
- User name

Description

A collection of FFI declarations for interfacing with Win32.

Synopsis

- type SystemColor = UINT
- cOLOR_SCROLLBAR :: SystemColor
- cOLOR_BACKGROUND :: SystemColor
- cOLOR_ACTIVECAPTION :: SystemColor
- cOLOR_INACTIVECAPTION :: SystemColor
- cOLOR_MENU :: SystemColor
- cOLOR_WINDOW :: SystemColor
- cOLOR_WINDOWFRAME :: SystemColor
- cOLOR_MENUTEXT :: SystemColor
- cOLOR_WINDOWTEXT :: SystemColor
- cOLOR_CAPTIONTEXT :: SystemColor
- cOLOR_ACTIVEBORDER :: SystemColor
- cOLOR_INACTIVEBORDER :: SystemColor
- cOLOR_APPWORKSPACE :: SystemColor
- cOLOR_HIGHLIGHT :: SystemColor
- cOLOR_HIGHLIGHTTEXT :: SystemColor
- cOLOR_BTNFACE :: SystemColor
- cOLOR_BTNSHADOW :: SystemColor
- cOLOR_GRAYTEXT :: SystemColor
- cOLOR_BTNTEXT :: SystemColor
- cOLOR_INACTIVECAPTIONTEXT :: SystemColor
- cOLOR_BTNHIGHLIGHT :: SystemColor
- getSystemDirectory :: IO String
- getWindowsDirectory :: IO String
- getCurrentDirectory :: IO String
- getTemporaryDirectory :: IO String
- getFullPathName :: FilePath -> IO FilePath
- getLongPathName :: FilePath -> IO FilePath
- getShortPathName :: FilePath -> IO FilePath
- searchPath :: Maybe String -> FilePath -> Maybe String -> IO (Maybe FilePath)
- data ProcessorArchitecture
  - = PaUnknown WORD
  - | PaIntel
  - | PaMips
  - | PaAlpha
  - | PaPpc
  - | PaIa64
  - | PaIa32OnIa64
  - | PaAmd64
- data SYSTEM_INFO = SYSTEM_INFO {
  - siProcessorArchitecture :: ProcessorArchitecture
  - siPageSize :: DWORD
  - siMinimumApplicationAddress, siMaximumApplicationAddress :: LPVOID
  - siActiveProcessorMask :: DWORD
  - siNumberOfProcessors :: DWORD
  - siProcessorType :: DWORD
  - siAllocationGranularity :: DWORD
  - siProcessorLevel :: WORD
  - siProcessorRevision :: WORD
  }
- getSystemInfo :: IO SYSTEM_INFO
- type SMSetting = UINT
- sM_ARRANGE :: SMSetting
- sM_CLEANBOOT :: SMSetting
- sM_CMETRICS :: SMSetting
- sM_CMOUSEBUTTONS :: SMSetting
- sM_CXBORDER :: SMSetting
- sM_CYBORDER :: SMSetting
- sM_CXCURSOR :: SMSetting
- sM_CYCURSOR :: SMSetting
- sM_CXDLGFRAME :: SMSetting
- sM_CYDLGFRAME :: SMSetting
- sM_CXDOUBLECLK :: SMSetting
- sM_CYDOUBLECLK :: SMSetting
- sM_CXDRAG :: SMSetting
- sM_CYDRAG :: SMSetting
- sM_CXEDGE :: SMSetting
- sM_CYEDGE :: SMSetting
- sM_CXFRAME :: SMSetting
- sM_CYFRAME :: SMSetting
- sM_CXFULLSCREEN :: SMSetting
- sM_CYFULLSCREEN :: SMSetting
- sM_CXHSCROLL :: SMSetting
- sM_CYVSCROLL :: SMSetting
- sM_CXICON :: SMSetting
- sM_CYICON :: SMSetting
- sM_CXICONSPACING :: SMSetting
- sM_CYICONSPACING :: SMSetting
- sM_CXMAXIMIZED :: SMSetting
- sM_CYMAXIMIZED :: SMSetting
- sM_CXMENUCHECK :: SMSetting
- sM_CYMENUCHECK :: SMSetting
- sM_CXMENUSIZE :: SMSetting
- sM_CYMENUSIZE :: SMSetting
- sM_CXMIN :: SMSetting
- sM_CYMIN :: SMSetting
- sM_CXMINIMIZED :: SMSetting
- sM_CYMINIMIZED :: SMSetting
- sM_CXMINTRACK :: SMSetting
- sM_CYMINTRACK :: SMSetting
- sM_CXSCREEN :: SMSetting
- sM_CYSCREEN :: SMSetting
- sM_CXSIZE :: SMSetting
- sM_CYSIZE :: SMSetting
- sM_CXSIZEFRAME :: SMSetting
- sM_CYSIZEFRAME :: SMSetting
- sM_CXSMICON :: SMSetting
- sM_CYSMICON :: SMSetting
- sM_CXSMSIZE :: SMSetting
- sM_CYSMSIZE :: SMSetting
- sM_CXVSCROLL :: SMSetting
- sM_CYHSCROLL :: SMSetting
- sM_CYVTHUMB :: SMSetting
- sM_CYCAPTION :: SMSetting
- sM_CYKANJIWINDOW :: SMSetting
- sM_CYMENU :: SMSetting
- sM_CYSMCAPTION :: SMSetting
- sM_DBCSENABLED :: SMSetting
- sM_DEBUG :: SMSetting
- sM_MENUDROPALIGNMENT :: SMSetting
- sM_MIDEASTENABLED :: SMSetting
- sM_MOUSEPRESENT :: SMSetting
- sM_NETWORK :: SMSetting
- sM_PENWINDOWS :: SMSetting
- sM_SECURE :: SMSetting
- sM_SHOWSOUNDS :: SMSetting
- sM_SLOWMACHINE :: SMSetting
- sM_SWAPBUTTON :: SMSetting
- getUserName :: IO String

# Documentation

type SystemColor = UINT Source #

cOLOR_SCROLLBAR :: SystemColor Source #

cOLOR_BACKGROUND :: SystemColor Source #

cOLOR_ACTIVECAPTION :: SystemColor Source #

cOLOR_INACTIVECAPTION :: SystemColor Source #

cOLOR_MENU :: SystemColor Source #

cOLOR_WINDOW :: SystemColor Source #

cOLOR_WINDOWFRAME :: SystemColor Source #

cOLOR_MENUTEXT :: SystemColor Source #

cOLOR_WINDOWTEXT :: SystemColor Source #

cOLOR_CAPTIONTEXT :: SystemColor Source #

cOLOR_ACTIVEBORDER :: SystemColor Source #

cOLOR_INACTIVEBORDER :: SystemColor Source #

cOLOR_APPWORKSPACE :: SystemColor Source #

cOLOR_HIGHLIGHT :: SystemColor Source #

cOLOR_HIGHLIGHTTEXT :: SystemColor Source #

cOLOR_BTNFACE :: SystemColor Source #

cOLOR_BTNSHADOW :: SystemColor Source #

cOLOR_GRAYTEXT :: SystemColor Source #

cOLOR_BTNTEXT :: SystemColor Source #

cOLOR_INACTIVECAPTIONTEXT :: SystemColor Source #

cOLOR_BTNHIGHLIGHT :: SystemColor Source #

# Standard directories

getSystemDirectory :: IO String Source #

getWindowsDirectory :: IO String Source #

getCurrentDirectory :: IO String Source #

getTemporaryDirectory :: IO String Source #

getFullPathName :: FilePath -> IO FilePath Source #

getLongPathName :: FilePath -> IO FilePath Source #

getShortPathName :: FilePath -> IO FilePath Source #

searchPath :: Maybe String -> FilePath -> Maybe String -> IO (Maybe FilePath) Source #

# System information

data ProcessorArchitecture Source #

Constructors

PaUnknown WORD |
PaIntel |
PaMips |
PaAlpha |
PaPpc |
PaIa64 |
PaIa32OnIa64 |
PaAmd64 |

#### Instances

Instances details

Storable ProcessorArchitecture Source # |
Instance details Defined in System.Win32.Info Methods sizeOf :: ProcessorArchitecture -> Int Source # alignment :: ProcessorArchitecture -> Int Source # peekElemOff :: Ptr ProcessorArchitecture -> Int -> IO ProcessorArchitecture Source # pokeElemOff :: Ptr ProcessorArchitecture -> Int -> ProcessorArchitecture -> IO () Source # peekByteOff :: Ptr b -> Int -> IO ProcessorArchitecture Source # pokeByteOff :: Ptr b -> Int -> ProcessorArchitecture -> IO () Source # peek :: Ptr ProcessorArchitecture -> IO ProcessorArchitecture Source # poke :: Ptr ProcessorArchitecture -> ProcessorArchitecture -> IO () Source #
Show ProcessorArchitecture Source # |
Instance details Defined in System.Win32.Info Methods showsPrec :: Int -> ProcessorArchitecture -> ShowS Source # show :: ProcessorArchitecture -> String Source # showList :: [ProcessorArchitecture] -> ShowS Source #
Eq ProcessorArchitecture Source # |
Instance details Defined in System.Win32.Info Methods (==) :: ProcessorArchitecture -> ProcessorArchitecture -> Bool # (/=) :: ProcessorArchitecture -> ProcessorArchitecture -> Bool #

data SYSTEM_INFO Source #

Constructors

SYSTEM_INFO |
Fields siProcessorArchitecture :: ProcessorArchitecture siPageSize :: DWORD siMinimumApplicationAddress, siMaximumApplicationAddress :: LPVOID siActiveProcessorMask :: DWORD siNumberOfProcessors :: DWORD siProcessorType :: DWORD siAllocationGranularity :: DWORD siProcessorLevel :: WORD siProcessorRevision :: WORD

#### Instances

Instances details

Storable SYSTEM_INFO Source # |
Instance details Defined in System.Win32.Info Methods sizeOf :: SYSTEM_INFO -> Int Source # alignment :: SYSTEM_INFO -> Int Source # peekElemOff :: Ptr SYSTEM_INFO -> Int -> IO SYSTEM_INFO Source # pokeElemOff :: Ptr SYSTEM_INFO -> Int -> SYSTEM_INFO -> IO () Source # peekByteOff :: Ptr b -> Int -> IO SYSTEM_INFO Source # pokeByteOff :: Ptr b -> Int -> SYSTEM_INFO -> IO () Source # peek :: Ptr SYSTEM_INFO -> IO SYSTEM_INFO Source # poke :: Ptr SYSTEM_INFO -> SYSTEM_INFO -> IO () Source #
Show SYSTEM_INFO Source # |
Instance details Defined in System.Win32.Info Methods showsPrec :: Int -> SYSTEM_INFO -> ShowS Source # show :: SYSTEM_INFO -> String Source # showList :: [SYSTEM_INFO] -> ShowS Source #

getSystemInfo :: IO SYSTEM_INFO Source #

# System metrics

type SMSetting = UINT Source #

sM_ARRANGE :: SMSetting Source #

sM_CLEANBOOT :: SMSetting Source #

sM_CMETRICS :: SMSetting Source #

sM_CMOUSEBUTTONS :: SMSetting Source #

sM_CXBORDER :: SMSetting Source #

sM_CYBORDER :: SMSetting Source #

sM_CXCURSOR :: SMSetting Source #

sM_CYCURSOR :: SMSetting Source #

sM_CXDLGFRAME :: SMSetting Source #

sM_CYDLGFRAME :: SMSetting Source #

sM_CXDOUBLECLK :: SMSetting Source #

sM_CYDOUBLECLK :: SMSetting Source #

sM_CXDRAG :: SMSetting Source #

sM_CYDRAG :: SMSetting Source #

sM_CXEDGE :: SMSetting Source #

sM_CYEDGE :: SMSetting Source #

sM_CXFRAME :: SMSetting Source #

sM_CYFRAME :: SMSetting Source #

sM_CXFULLSCREEN :: SMSetting Source #

sM_CYFULLSCREEN :: SMSetting Source #

sM_CXHSCROLL :: SMSetting Source #

sM_CYVSCROLL :: SMSetting Source #

sM_CXICON :: SMSetting Source #

sM_CYICON :: SMSetting Source #

sM_CXICONSPACING :: SMSetting Source #

sM_CYICONSPACING :: SMSetting Source #

sM_CXMAXIMIZED :: SMSetting Source #

sM_CYMAXIMIZED :: SMSetting Source #

sM_CXMENUCHECK :: SMSetting Source #

sM_CYMENUCHECK :: SMSetting Source #

sM_CXMENUSIZE :: SMSetting Source #

sM_CYMENUSIZE :: SMSetting Source #

sM_CXMIN :: SMSetting Source #

sM_CYMIN :: SMSetting Source #

sM_CXMINIMIZED :: SMSetting Source #

sM_CYMINIMIZED :: SMSetting Source #

sM_CXMINTRACK :: SMSetting Source #

sM_CYMINTRACK :: SMSetting Source #

sM_CXSCREEN :: SMSetting Source #

sM_CYSCREEN :: SMSetting Source #

sM_CXSIZE :: SMSetting Source #

sM_CYSIZE :: SMSetting Source #

sM_CXSIZEFRAME :: SMSetting Source #

sM_CYSIZEFRAME :: SMSetting Source #

sM_CXSMICON :: SMSetting Source #

sM_CYSMICON :: SMSetting Source #

sM_CXSMSIZE :: SMSetting Source #

sM_CYSMSIZE :: SMSetting Source #

sM_CXVSCROLL :: SMSetting Source #

sM_CYHSCROLL :: SMSetting Source #

sM_CYVTHUMB :: SMSetting Source #

sM_CYCAPTION :: SMSetting Source #

sM_CYKANJIWINDOW :: SMSetting Source #

sM_CYMENU :: SMSetting Source #

sM_CYSMCAPTION :: SMSetting Source #

sM_DBCSENABLED :: SMSetting Source #

sM_DEBUG :: SMSetting Source #

sM_MENUDROPALIGNMENT :: SMSetting Source #

sM_MIDEASTENABLED :: SMSetting Source #

sM_MOUSEPRESENT :: SMSetting Source #

sM_NETWORK :: SMSetting Source #

sM_PENWINDOWS :: SMSetting Source #

sM_SECURE :: SMSetting Source #

sM_SHOWSOUNDS :: SMSetting Source #

sM_SLOWMACHINE :: SMSetting Source #

sM_SWAPBUTTON :: SMSetting Source #

# User name

getUserName :: IO String Source #