W3cubDocs

/Haskell 8

System.Win32

Copyright (c) Alastair Reid 1999-2003
License BSD-style (see the file libraries/base/LICENSE)
Maintainer Esa Ilari Vuokko <[email protected]>
Stability provisional
Portability portable
Safe Haskell Safe
Language Haskell2010

Description

An FFI binding to the system part of the Win32 API.

module System.Win32.DLL

module System.Win32.File

module System.Win32.FileMapping

module System.Win32.Info

module System.Win32.Mem

module System.Win32.MinTTY

type LocaleTestFlags = DWORD Source

type LCMapFlags = DWORD Source

type LCTYPE = UINT Source

type CodePage = UINT Source

multiByteToWideChar :: CodePage -> DWORD -> LPCSTR -> CInt -> LPWSTR -> CInt -> IO CInt Source

getOEMCP :: CodePage Source

getSystemDefaultLangID :: LANGID Source

getSystemDefaultLCID :: LCID Source

getThreadLocale :: IO LCID Source

getUserDefaultLangID :: LANGID Source

getUserDefaultLCID :: LCID Source

isValidCodePage :: CodePage -> IO Bool Source

isValidLocale :: LCID -> LocaleTestFlags -> IO Bool Source

c_LCMapString :: LCID -> LCMapFlags -> LPCTSTR -> Int -> LPCTSTR -> Int -> IO Int Source

c_SetLocaleInfo :: LCID -> LCTYPE -> LPCTSTR -> IO Bool Source

setThreadLocale :: LCID -> IO () Source

getACP :: IO CodePage Source

convertDefaultLocale :: LCID -> IO LCID Source

lOCALE_SYSTEM_DEFAULT :: LCID Source

lOCALE_USER_DEFAULT :: LCID Source

lOCALE_NEUTRAL :: LCID Source

cP_ACP :: CodePage Source

cP_MACCP :: CodePage Source

cP_OEMCP :: CodePage Source

lOCALE_ICALENDARTYPE :: LCTYPE Source

lOCALE_SDATE :: LCTYPE Source

lOCALE_ICURRDIGITS :: LCTYPE Source

lOCALE_SDECIMAL :: LCTYPE Source

lOCALE_ICURRENCY :: LCTYPE Source

lOCALE_SGROUPING :: LCTYPE Source

lOCALE_IDIGITS :: LCTYPE Source

lOCALE_SLIST :: LCTYPE Source

lOCALE_IFIRSTDAYOFWEEK :: LCTYPE Source

lOCALE_SLONGDATE :: LCTYPE Source

lOCALE_IFIRSTWEEKOFYEAR :: LCTYPE Source

lOCALE_SMONDECIMALSEP :: LCTYPE Source

lOCALE_ILZERO :: LCTYPE Source

lOCALE_SMONGROUPING :: LCTYPE Source

lOCALE_IMEASURE :: LCTYPE Source

lOCALE_SMONTHOUSANDSEP :: LCTYPE Source

lOCALE_INEGCURR :: LCTYPE Source

lOCALE_SNEGATIVESIGN :: LCTYPE Source

lOCALE_INEGNUMBER :: LCTYPE Source

lOCALE_SPOSITIVESIGN :: LCTYPE Source

lOCALE_SSHORTDATE :: LCTYPE Source

lOCALE_ITIME :: LCTYPE Source

lOCALE_STHOUSAND :: LCTYPE Source

lOCALE_S1159 :: LCTYPE Source

lOCALE_STIME :: LCTYPE Source

lOCALE_S2359 :: LCTYPE Source

lOCALE_STIMEFORMAT :: LCTYPE Source

lOCALE_SCURRENCY :: LCTYPE Source

setLocaleInfo :: LCID -> LCTYPE -> String -> IO () Source

lCMAP_BYTEREV :: LCMapFlags Source

lCMAP_FULLWIDTH :: LCMapFlags Source

lCMAP_HALFWIDTH :: LCMapFlags Source

lCMAP_HIRAGANA :: LCMapFlags Source

lCMAP_KATAKANA :: LCMapFlags Source

lCMAP_LOWERCASE :: LCMapFlags Source

lCMAP_SORTKEY :: LCMapFlags Source

lCMAP_UPPERCASE :: LCMapFlags Source

nORM_IGNORECASE :: LCMapFlags Source

nORM_IGNORENONSPACE :: LCMapFlags Source

nORM_IGNOREKANATYPE :: LCMapFlags Source

nORM_IGNORESYMBOLS :: LCMapFlags Source

nORM_IGNOREWIDTH :: LCMapFlags Source

sORT_STRINGSORT :: LCMapFlags Source

lCMAP_LINGUISTIC_CASING :: LCMapFlags Source

lCMAP_SIMPLIFIED_CHINESE :: LCMapFlags Source

lCMAP_TRADITIONAL_CHINESE :: LCMapFlags Source

lCMapString :: LCID -> LCMapFlags -> String -> Int -> IO String Source

lCID_INSTALLED :: LocaleTestFlags Source

lCID_SUPPORTED :: LocaleTestFlags Source

lANG_NEUTRAL :: PrimaryLANGID Source

lANG_BULGARIAN :: PrimaryLANGID Source

lANG_CHINESE :: PrimaryLANGID Source

lANG_CZECH :: PrimaryLANGID Source

lANG_DANISH :: PrimaryLANGID Source

lANG_GERMAN :: PrimaryLANGID Source

lANG_GREEK :: PrimaryLANGID Source

lANG_ENGLISH :: PrimaryLANGID Source

lANG_SPANISH :: PrimaryLANGID Source

lANG_FINNISH :: PrimaryLANGID Source

lANG_FRENCH :: PrimaryLANGID Source

lANG_HUNGARIAN :: PrimaryLANGID Source

lANG_ICELANDIC :: PrimaryLANGID Source

lANG_ITALIAN :: PrimaryLANGID Source

lANG_JAPANESE :: PrimaryLANGID Source

lANG_KOREAN :: PrimaryLANGID Source

lANG_DUTCH :: PrimaryLANGID Source

lANG_NORWEGIAN :: PrimaryLANGID Source

lANG_POLISH :: PrimaryLANGID Source

lANG_PORTUGUESE :: PrimaryLANGID Source

lANG_ROMANIAN :: PrimaryLANGID Source

lANG_RUSSIAN :: PrimaryLANGID Source

lANG_CROATIAN :: PrimaryLANGID Source

lANG_SLOVAK :: PrimaryLANGID Source

lANG_SWEDISH :: PrimaryLANGID Source

lANG_TURKISH :: PrimaryLANGID Source

lANG_SLOVENIAN :: PrimaryLANGID Source

lANG_ARABIC :: PrimaryLANGID Source

lANG_CATALAN :: PrimaryLANGID Source

lANG_HEBREW :: PrimaryLANGID Source

lANG_SERBIAN :: PrimaryLANGID Source

lANG_ALBANIAN :: PrimaryLANGID Source

lANG_THAI :: PrimaryLANGID Source

lANG_URDU :: PrimaryLANGID Source

lANG_INDONESIAN :: PrimaryLANGID Source

lANG_BELARUSIAN :: PrimaryLANGID Source

lANG_ESTONIAN :: PrimaryLANGID Source

lANG_LATVIAN :: PrimaryLANGID Source

lANG_LITHUANIAN :: PrimaryLANGID Source

lANG_FARSI :: PrimaryLANGID Source

lANG_VIETNAMESE :: PrimaryLANGID Source

lANG_ARMENIAN :: PrimaryLANGID Source

lANG_AZERI :: PrimaryLANGID Source

lANG_BASQUE :: PrimaryLANGID Source

lANG_MACEDONIAN :: PrimaryLANGID Source

lANG_AFRIKAANS :: PrimaryLANGID Source

lANG_GEORGIAN :: PrimaryLANGID Source

lANG_FAEROESE :: PrimaryLANGID Source

lANG_HINDI :: PrimaryLANGID Source

lANG_MALAY :: PrimaryLANGID Source

lANG_KAZAK :: PrimaryLANGID Source

lANG_SWAHILI :: PrimaryLANGID Source

lANG_UZBEK :: PrimaryLANGID Source

lANG_TATAR :: PrimaryLANGID Source

lANG_BENGALI :: PrimaryLANGID Source

lANG_PUNJABI :: PrimaryLANGID Source

lANG_GUJARATI :: PrimaryLANGID Source

lANG_ORIYA :: PrimaryLANGID Source

lANG_TAMIL :: PrimaryLANGID Source

lANG_TELUGU :: PrimaryLANGID Source

lANG_KANNADA :: PrimaryLANGID Source

lANG_MALAYALAM :: PrimaryLANGID Source

lANG_ASSAMESE :: PrimaryLANGID Source

lANG_MARATHI :: PrimaryLANGID Source

lANG_SANSKRIT :: PrimaryLANGID Source

lANG_KONKANI :: PrimaryLANGID Source

lANG_MANIPURI :: PrimaryLANGID Source

lANG_SINDHI :: PrimaryLANGID Source

lANG_KASHMIRI :: PrimaryLANGID Source

lANG_NEPALI :: PrimaryLANGID Source

sORT_DEFAULT :: SortID Source

sORT_JAPANESE_XJIS :: SortID Source

sORT_JAPANESE_UNICODE :: SortID Source

sORT_CHINESE_BIG5 :: SortID Source

sORT_CHINESE_UNICODE :: SortID Source

sORT_KOREAN_KSC :: SortID Source

sORT_KOREAN_UNICODE :: SortID Source

sUBLANG_NEUTRAL :: SubLANGID Source

sUBLANG_DEFAULT :: SubLANGID Source

sUBLANG_SYS_DEFAULT :: SubLANGID Source

sUBLANG_CHINESE_TRADITIONAL :: SubLANGID Source

sUBLANG_CHINESE_SIMPLIFIED :: SubLANGID Source

sUBLANG_CHINESE_HONGKONG :: SubLANGID Source

sUBLANG_CHINESE_SINGAPORE :: SubLANGID Source

sUBLANG_DUTCH :: SubLANGID Source

sUBLANG_DUTCH_BELGIAN :: SubLANGID Source

sUBLANG_ENGLISH_US :: SubLANGID Source

sUBLANG_ENGLISH_UK :: SubLANGID Source

sUBLANG_ENGLISH_AUS :: SubLANGID Source

sUBLANG_ENGLISH_CAN :: SubLANGID Source

sUBLANG_ENGLISH_NZ :: SubLANGID Source

sUBLANG_ENGLISH_EIRE :: SubLANGID Source

sUBLANG_FRENCH :: SubLANGID Source

sUBLANG_FRENCH_BELGIAN :: SubLANGID Source

sUBLANG_FRENCH_CANADIAN :: SubLANGID Source

sUBLANG_FRENCH_SWISS :: SubLANGID Source

sUBLANG_GERMAN :: SubLANGID Source

sUBLANG_GERMAN_SWISS :: SubLANGID Source

sUBLANG_GERMAN_AUSTRIAN :: SubLANGID Source

sUBLANG_ITALIAN :: SubLANGID Source

sUBLANG_ITALIAN_SWISS :: SubLANGID Source

sUBLANG_NORWEGIAN_BOKMAL :: SubLANGID Source

sUBLANG_NORWEGIAN_NYNORSK :: SubLANGID Source

sUBLANG_PORTUGUESE :: SubLANGID Source

sUBLANG_PORTUGUESE_BRAZILIAN :: SubLANGID Source

sUBLANG_SPANISH :: SubLANGID Source

sUBLANG_SPANISH_MEXICAN :: SubLANGID Source

sUBLANG_SPANISH_MODERN :: SubLANGID Source

sUBLANG_ARABIC_SAUDI_ARABIA :: SubLANGID Source

sUBLANG_ARABIC_IRAQ :: SubLANGID Source

sUBLANG_ARABIC_EGYPT :: SubLANGID Source

sUBLANG_ARABIC_LIBYA :: SubLANGID Source

sUBLANG_ARABIC_ALGERIA :: SubLANGID Source

sUBLANG_ARABIC_MOROCCO :: SubLANGID Source

sUBLANG_ARABIC_TUNISIA :: SubLANGID Source

sUBLANG_ARABIC_OMAN :: SubLANGID Source

sUBLANG_ARABIC_YEMEN :: SubLANGID Source

sUBLANG_ARABIC_SYRIA :: SubLANGID Source

sUBLANG_ARABIC_JORDAN :: SubLANGID Source

sUBLANG_ARABIC_LEBANON :: SubLANGID Source

sUBLANG_ARABIC_KUWAIT :: SubLANGID Source

sUBLANG_ARABIC_UAE :: SubLANGID Source

sUBLANG_ARABIC_BAHRAIN :: SubLANGID Source

sUBLANG_ARABIC_QATAR :: SubLANGID Source

sUBLANG_AZERI_CYRILLIC :: SubLANGID Source

sUBLANG_AZERI_LATIN :: SubLANGID Source

sUBLANG_CHINESE_MACAU :: SubLANGID Source

sUBLANG_ENGLISH_SOUTH_AFRICA :: SubLANGID Source

The IO input functions (e.g. getLine) don't automatically convert to Unicode, so this function is provided to make the conversion from a multibyte string in the given code page to a proper Unicode string. To get the code page for the console, use getConsoleCP.

sUBLANG_ENGLISH_JAMAICA :: SubLANGID Source

sUBLANG_ENGLISH_CARIBBEAN :: SubLANGID Source

sUBLANG_ENGLISH_BELIZE :: SubLANGID Source

sUBLANG_ENGLISH_TRINIDAD :: SubLANGID Source

sUBLANG_ENGLISH_PHILIPPINES :: SubLANGID Source

sUBLANG_ENGLISH_ZIMBABWE :: SubLANGID Source

sUBLANG_FRENCH_LUXEMBOURG :: SubLANGID Source

sUBLANG_FRENCH_MONACO :: SubLANGID Source

sUBLANG_GERMAN_LUXEMBOURG :: SubLANGID Source

sUBLANG_GERMAN_LIECHTENSTEIN :: SubLANGID Source

sUBLANG_KASHMIRI_INDIA :: SubLANGID Source

sUBLANG_KOREAN :: SubLANGID Source

sUBLANG_LITHUANIAN :: SubLANGID Source

sUBLANG_MALAY_MALAYSIA :: SubLANGID Source

sUBLANG_MALAY_BRUNEI_DARUSSALAM :: SubLANGID Source

sUBLANG_NEPALI_INDIA :: SubLANGID Source

sUBLANG_SERBIAN_LATIN :: SubLANGID Source

sUBLANG_SERBIAN_CYRILLIC :: SubLANGID Source

sUBLANG_SPANISH_GUATEMALA :: SubLANGID Source

sUBLANG_SPANISH_COSTA_RICA :: SubLANGID Source

sUBLANG_SPANISH_PANAMA :: SubLANGID Source

sUBLANG_SPANISH_DOMINICAN_REPUBLIC :: SubLANGID Source

sUBLANG_SPANISH_VENEZUELA :: SubLANGID Source

sUBLANG_SPANISH_COLOMBIA :: SubLANGID Source

sUBLANG_SPANISH_PERU :: SubLANGID Source

sUBLANG_SPANISH_ARGENTINA :: SubLANGID Source

sUBLANG_SPANISH_ECUADOR :: SubLANGID Source

sUBLANG_SPANISH_CHILE :: SubLANGID Source

sUBLANG_SPANISH_URUGUAY :: SubLANGID Source

sUBLANG_SPANISH_PARAGUAY :: SubLANGID Source

sUBLANG_SPANISH_BOLIVIA :: SubLANGID Source

sUBLANG_SPANISH_EL_SALVADOR :: SubLANGID Source

sUBLANG_SPANISH_HONDURAS :: SubLANGID Source

sUBLANG_SPANISH_NICARAGUA :: SubLANGID Source

sUBLANG_SPANISH_PUERTO_RICO :: SubLANGID Source

sUBLANG_SWEDISH :: SubLANGID Source

sUBLANG_SWEDISH_FINLAND :: SubLANGID Source

sUBLANG_URDU_PAKISTAN :: SubLANGID Source

sUBLANG_URDU_INDIA :: SubLANGID Source

sUBLANG_UZBEK_LATIN :: SubLANGID Source

sUBLANG_UZBEK_CYRILLIC :: SubLANGID Source

stringToUnicode :: CodePage -> String -> IO String Source

module System.Win32.Process

module System.Win32.Registry

module System.Win32.Time

module System.Win32.Console

module System.Win32.Security

module System.Win32.Types

module System.Win32.Shell

module System.Win32.Automation

module System.Win32.HardLink

module System.Win32.SymbolicLink

module System.Win32.Thread

maybePtr :: Maybe (Ptr a) -> Ptr a Source

ptrToMaybe :: Ptr a -> Maybe (Ptr a) Source

maybeNum :: Num a => Maybe a -> a Source

numToMaybe :: (Eq a, Num a) => a -> Maybe a Source

tryWithoutNull :: String -> (LPTSTR -> UINT -> IO UINT) -> UINT -> IO String Source

try' :: Storable a => String -> (Ptr a -> PDWORD -> IO BOOL) -> DWORD -> IO [a] Source

peekMaybe :: Storable a => Ptr a -> IO (Maybe a) Source

See also: maybePeek function.

withMaybe :: Storable a => Maybe a -> (Ptr a -> IO b) -> IO b Source

See also: maybeWith function.

© 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.html