Changelog for Win32
package
- Add getTempFileName
- Add WindowsString variant for getEnv etc
- Implement getEnv and getEnvironment
- Add support for named pipes #220
- Ensure that FilePaths don't contain interior NULs wrt #218
- Add support for GetCommandLineW #218
- Support filepath >= 1.5.0.0 and os-string #226
- Remove unused imports #225
- Add support for semaphores with
System.Win32.Semaphore
(See #214). - Add function
createFile_NoRetry
(see #208) - The type signatures for
loadLibrary
andloadLibraryEx
now refer toHMODULE
instead ofHINSTANCE
for consistency with the official Win32 API documentation. Note thatHMODULE
andHINSTANCE
are both type synonyms for the same thing, so this only changes the presentation of these functions' type signatures, not their behavior.
- Add AFPP support (see #198)
- Add function
createIcon
(see #194) - Add
WindowMessage
valuewM_SETICON
(see #194) - Add
WPARAM
valuesiCON_SMALL
,iCON_BIG
(see #194) - Add functions
getConsoleScreenBufferInfoEx
andgetCurrentConsoleScreenBufferInfoEx
- Set maximum string size for getComputerName. (See #190)
- Update withHandleToHANDLENative to handle duplex and console handles (See #191)
- Fix a bug in which
System.Win32.MinTTY.isMinTTY
would incorrectly returnFalse
on recent versions of MinTTY. (See #187) - Add all flags for CreateToolhelp32Snapshot. (See #185)
- Fix type of c_SetWindowLongPtr. See #180
- A small fix for WinIO usage. See #177
- 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 theFILETIME
arguments are in factMaybe
s.
- Make
System.Win32.NLS
re-exportCodePage
fromGHC.IO.Encoding.CodePage
inbase
when compiled withbase-4.15
or later.
- Remove function
mapFileBs
.
- 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
andWAIT_FAILED
. - Add struct
SECURITY_ATTRIBUTES
- Add function
isWindowVisible
- Add function
getLastInputInfo
- Add function
getTickCount
- Add function
getIdleTime
- Add
enumSystemLocalesEx
,enumSystemLocalesEx'
,getSystemDefaultLocaleName
,getUserDefaultLocaleName
,isValidLocaleName
,getLocaleInfoEx
,getTimeFormatEx
andlCMapStringEx
- Add
trySized
- similar totry
but for API calls that return the required size of the buffer when passed a buffer size of zero. - Add
fromDateFormatPciture
andfromTimeFormatPicture
, to translate from Windows date and time format pictures to format strings used by thetime
package. - Renamed fields of
COORD
andSMALL_RECT
to avoid name clashes. (See #157)
setWindowClosure
now returns the old window closure.defWindowProc
now assumes the data stored inGWLP\_USERDATA
is the window closure (in line withsetWindowClosure
and the supplied CgenericWndProc
)defWindowProc
now frees the window closuregetMessage
andpeekMessage
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.
- Add
getConsoleMode
andsetConsoleMode
(See #137)
- Added function
getWindowText
- Added function
getWindowTextLength
- Add
Module32FirstW
andModule32NextW
(See #121) - Add
Virtual[Alloc/Free]Ex
(See #124)
- Drop use of NegativeLiterals (See #118)
- Fix broken links (See #116)
- Remove unused CPP Lower bounds (See #114)
- GHC 8.8 release
- Deprecated
regQueryValueKey
. (See #105, #108) - Updated
regQueryValue
signature (See #108) - Add
regQueryDefaultValue
(See #108) - Add
regGetValue
andRegTypeRestriction
(See #109) - Remove
sYNCHRONIZE
from System.Win32.Process, use System.Win32.File instead. (See #110)
- Fixed
MOUSEINPUT
storable instance. (See #106)
- Fixed
DWORD_PTR
type (See #99) - Add
lockFile
andunlockFile
(See #103)
- Add
setFilePointerEx
(See #94) - Add
getConsoleScreenBufferInfo
andgetCurrentConsoleScreenBufferInfo
(See #95)
- Add
terminateProcessById
(See #91)
- 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)
- Fixed GetWindowLong on 32-bit Windows
- Fix buffer overflow in
regSetValue
. (See #39) - Added
getPixel
. (See #37) - Drop dependency on
ntdll
because of incorrect import library on x86. (See #79)
- Fix constant underflows with (-1) and unsigned numbers.
- Add
commandLineToArgv
- Add
withHandleToHANDLE
(originally found in theansi-terminal
library) - fixed
PokeTZI
test
failWith
(and the API calls that use it) now throwIOError
s with properIOErrorType
s.- Add function
findWindowByName
- Fix a bug in the implementation of
poke
forTIME_ZONE_INFORMATION
which would cause it to be marshalled incorrectly. - Add
System.Win32.MinTTY
module for detecting the presence of MinTTY. - Add
ULONG
type toSystem.Win32.Types
. - Add function
failIfNeg
toSystem.Win32.Types
, which fails if a negative number is returned. This simulates the behavior of theNT_SUCCESS
macro. - Merged package Win32-extras (See #16)
Graphics.Win32.Misc.messageBox
safely imported now #5- Fixed various alignment calls that were incorrect. These would result in an incorrect alignment being returned on certain platforms. (See #66)
- Add
windows_cconv.h
to theinstall-includes
field ofWin32.cabal
, allowing packages that transitively depend onWin32
to use theWINDOWS_CCONV
CPP macro (which expands tostdcall
orccall
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)
- Release for GHC 8.0.1