BSD-3-Clause licensed by Alastair Reid, shelarcy, Tamar Christina
Maintained by Haskell Libraries
This version can be pinned in stack with:Win32-2.13.4.0@sha256:9b8a82743985f8a95c03b2bc64be33ad1cd603e2493cb8b48d3cb923556dbb61,5585

Module documentation for 2.13.4.0

  • Graphics
    • Graphics.Win32
      • Graphics.Win32.Control
      • Graphics.Win32.Dialogue
      • Graphics.Win32.GDI
        • Graphics.Win32.GDI.AlphaBlend
        • Graphics.Win32.GDI.Bitmap
        • Graphics.Win32.GDI.Brush
        • Graphics.Win32.GDI.Clip
        • Graphics.Win32.GDI.Font
        • Graphics.Win32.GDI.Graphics2D
        • Graphics.Win32.GDI.HDC
        • Graphics.Win32.GDI.Palette
        • Graphics.Win32.GDI.Path
        • Graphics.Win32.GDI.Pen
        • Graphics.Win32.GDI.Region
        • Graphics.Win32.GDI.Types
      • Graphics.Win32.Icon
      • Graphics.Win32.Key
      • Graphics.Win32.LayeredWindow
      • Graphics.Win32.Menu
      • Graphics.Win32.Message
      • Graphics.Win32.Misc
      • Graphics.Win32.Resource
      • Graphics.Win32.Window
        • Graphics.Win32.Window.AnimateWindow
        • Graphics.Win32.Window.ForegroundWindow
        • Graphics.Win32.Window.HotKey
        • Graphics.Win32.Window.IMM
        • Graphics.Win32.Window.PostMessage
  • Media
    • Media.Win32
  • System
    • System.Win32
      • System.Win32.Automation
        • System.Win32.Automation.Input
          • System.Win32.Automation.Input.Key
          • System.Win32.Automation.Input.Mouse
      • System.Win32.Console
        • System.Win32.Console.CtrlHandler
        • System.Win32.Console.HWND
        • System.Win32.Console.Title
      • System.Win32.DLL
      • System.Win32.DebugApi
      • System.Win32.Encoding
      • System.Win32.Event
      • System.Win32.Exception
        • System.Win32.Exception.Unsupported
      • System.Win32.File
      • System.Win32.FileMapping
      • System.Win32.HardLink
      • System.Win32.Info
        • System.Win32.Info.Computer
        • System.Win32.Info.Version
      • System.Win32.Mem
      • System.Win32.MinTTY
      • System.Win32.NLS
      • System.Win32.Path
      • System.Win32.Process
      • System.Win32.Registry
      • System.Win32.Security
      • System.Win32.Semaphore
      • System.Win32.Shell
      • System.Win32.SimpleMAPI
      • System.Win32.String
      • System.Win32.SymbolicLink
      • System.Win32.Thread
      • System.Win32.Time
      • System.Win32.Types
      • System.Win32.Utils
      • System.Win32.Word
Depends on 2 packages(full list with versions):
Used by 2 packages in nightly-2024-11-10(full list with versions):

This library contains direct bindings to the Windows Win32 APIs for Haskell.

Changes

Changelog for Win32 package

2.13.4.0 October 2022

  • Add support for semaphores with System.Win32.Semaphore (See #214).
  • Add function createFile_NoRetry (see #208)
  • The type signatures for loadLibrary and loadLibraryEx now refer to HMODULE instead of HINSTANCE for consistency with the official Win32 API documentation. Note that HMODULE and HINSTANCE are both type synonyms for the same thing, so this only changes the presentation of these functions’ type signatures, not their behavior.

2.13.3.0 July 2022

  • Add AFPP support (see #198)

2.13.2.1 July 2022

  • Add function createIcon (see #194)
  • Add WindowMessage value wM_SETICON (see #194)
  • Add WPARAM values iCON_SMALL, iCON_BIG (see #194)
  • Add functions getConsoleScreenBufferInfoEx and getCurrentConsoleScreenBufferInfoEx

2.13.2.0 November 2021

  • Set maximum string size for getComputerName. (See #190)
  • Update withHandleToHANDLENative to handle duplex and console handles (See #191)

2.13.1.0 November 2021

  • Fix a bug in which System.Win32.MinTTY.isMinTTY would incorrectly return False on recent versions of MinTTY. (See #187)
  • Add all flags for CreateToolhelp32Snapshot. (See #185)

2.13.0.0 August 2021

  • Fix type of c_SetWindowLongPtr. See #180

2.12.0.1 June 2021

  • A small fix for WinIO usage. See #177

2.12.0.0 March 2021

  • Win32 for GHC 9.2.x
  • Add export lists to all modules, hiding numerous internal c_ bindings.
  • Update the type of setFileTime to reflect the fact that the FILETIME arguments are in fact Maybes.

2.11.1.0 February 2021

  • Make System.Win32.NLS re-export CodePage from GHC.IO.Encoding.CodePage in base when compiled with base-4.15 or later.

2.11.0.0 January 2021

  • Remove function mapFileBs.

2.10.1.0 October 2020

  • Add System.Win32.Event module
  • Add function openEvent
  • Add function createEvent
  • Add function duplicateHandle
  • Add function setEvent
  • Add function resetEvent
  • Add function pulseEvent
  • Add function signalObjectAndWait
  • Add function waitForSingleObject
  • Add function waitForSingleObjectEx
  • Add function waitForMultipleObjects
  • Add function waitForMultipleObjectsEx
  • Add enums DUPLICATE_CLOSE_SOURCE, DUPLICATE_SAME_ACCESS, EVENT_ALL_ACCESS, EVENT_MODIFY_STATE, WAIT_ABANDONED, WAIT_IO_COMPLETION, WAIT_OBJECT_0, WAIT_TIMEOUT and WAIT_FAILED.
  • Add struct SECURITY_ATTRIBUTES

2.10.0.0 September 2020

  • Add function isWindowVisible
  • Add function getLastInputInfo
  • Add function getTickCount
  • Add function getIdleTime
  • Add enumSystemLocalesEx, enumSystemLocalesEx', getSystemDefaultLocaleName, getUserDefaultLocaleName, isValidLocaleName, getLocaleInfoEx, getTimeFormatEx and lCMapStringEx
  • Add trySized - similar to try but for API calls that return the required size of the buffer when passed a buffer size of zero.
  • Add fromDateFormatPciture and fromTimeFormatPicture, to translate from Windows date and time format pictures to format strings used by the time package.
  • Renamed fields of COORD and SMALL_RECT to avoid name clashes. (See #157)

2.9.0.0 June 2020

  • setWindowClosure now returns the old window closure.
  • defWindowProc now assumes the data stored in GWLP\_USERDATA is the window closure (in line with setWindowClosure and the supplied C genericWndProc)
  • defWindowProc now frees the window closure
  • getMessage and peekMessage test for -1 to identify the error condition
  • Support creating symbolic links without Administrator privilege (See #147)
  • Support for winio the new Windows I/O manager.

2.8.5.0 Dec 2019

  • Add getConsoleMode and setConsoleMode (See #137)

2.8.4.0 Oct 2019

  • Added function getWindowText
  • Added function getWindowTextLength

2.8.3.0 Feb 2019

  • Add Module32FirstW and Module32NextW (See #121)
  • Add Virtual[Alloc/Free]Ex (See #124)

2.8.2.0 Dec 2018

  • Drop use of NegativeLiterals (See #118)

2.8.1.0 Nov 2018

  • Fix broken links (See #116)
  • Remove unused CPP Lower bounds (See #114)
  • GHC 8.8 release

2.8.0.0 May 2018

  • Deprecated regQueryValueKey. (See #105, #108)
  • Updated regQueryValue signature (See #108)
  • Add regQueryDefaultValue (See #108)
  • Add regGetValue and RegTypeRestriction (See #109)
  • Remove sYNCHRONIZE from System.Win32.Process, use System.Win32.File instead. (See #110)

2.7.1.0 April 2018

  • Fixed MOUSEINPUT storable instance. (See #106)

2.7.0.0 March 2018

  • Fixed DWORD_PTR type (See #99)
  • Add lockFile and unlockFile (See #103)

2.6.2.0 December 2017

  • Add setFilePointerEx (See #94)
  • Add getConsoleScreenBufferInfo and getCurrentConsoleScreenBufferInfo (See #95)

2.6.1.0 November 2017

  • Add terminateProcessById (See #91)

2.6.0.0 September 2017

  • Make cabal error out on compilation on non-Windows OSes. (See #80)
  • Update cabal format to 1.10 and set language default to Haskell2010. (See #81)
  • Use Maybe in wrappers for functions with nullable pointer parameters (See #83)
  • Improve cross compilation support. (See #87)

2.5.4.1 April 2017

  • Fixed GetWindowLong on 32-bit Windows

2.5.3.0 March 2017

  • Fix buffer overflow in regSetValue. (See #39)
  • Added getPixel. (See #37)
  • Drop dependency on ntdll because of incorrect import library on x86. (See #79)

2.5.2.0 March 2017

  • Fix constant underflows with (-1) and unsigned numbers.
  • Add commandLineToArgv

2.5.1.0 Feb 2017

  • Add withHandleToHANDLE (originally found in the ansi-terminal library)
  • fixed PokeTZI test

2.5.0.0 Jan 2017

  • failWith (and the API calls that use it) now throw IOErrors with proper IOErrorTypes.
  • Add function findWindowByName
  • Fix a bug in the implementation of poke for TIME_ZONE_INFORMATION which would cause it to be marshalled incorrectly.
  • Add System.Win32.MinTTY module for detecting the presence of MinTTY.
  • Add ULONG type to System.Win32.Types.
  • Add function failIfNeg to System.Win32.Types, which fails if a negative number is returned. This simulates the behavior of the NT_SUCCESS macro.
  • Merged package Win32-extras (See #16)
  • Graphics.Win32.Misc.messageBox safely imported now https://github.com/haskell/win32/pull/5
  • Fixed various alignment calls that were incorrect. These would result in an incorrect alignment being returned on certain platforms. (See #66)

2.4.0.0 Nov 2016

  • Add windows_cconv.h to the install-includes field of Win32.cabal, allowing packages that transitively depend on Win32 to use the WINDOWS_CCONV CPP macro (which expands to stdcall or ccall appropriately depending on the system architecture)
  • Added function getLongPathName
  • Added function getShortPathName
  • Added function getUserName
  • Added file attribute fILE_ATTRIBUTE_REPARSE_POINT
  • Added more File Access Rights constants
  • Added function getCurrentProcessId
  • Added function filepathRelativePathTo
  • Added function pathRelativePathTo
  • Corrected 64 bit types (See #53)

2.3.1.1 May 2016

  • Release for GHC 8.0.1