| Copyright | 2013 shelarcy |
|---|---|
| License | BSD-style |
| Maintainer | [email protected] |
| Stability | Provisional |
| Portability | Non-portable (Win32 API) |
| Safe Haskell | None |
| Language | Haskell2010 |
Utilities for primitive marshalling of Windows' C strings.
type LPWSTR = Ptr CWchar Source
type LPTSTR = Ptr TCHAR Source
type LPCTSTR_ = LPCTSTR Source
withTString :: WindowsString -> (LPTSTR -> IO a) -> IO a Source
withTStringLen :: WindowsString -> ((LPTSTR, Int) -> IO a) -> IO a Source
peekTString :: LPCTSTR -> IO WindowsString Source
peekTStringLen :: (LPCTSTR, Int) -> IO WindowsString Source
newTString :: WindowsString -> IO LPCTSTR Source
withTStringBuffer :: Int -> (LPTSTR -> IO a) -> IO a Source
Marshal a dummy Haskell string into a NUL terminated C wide string using temporary storage.
withTStringBufferLen :: Int -> ((LPTSTR, Int) -> IO a) -> IO a Source
Marshal a dummy Haskell string into a C wide string (i.e. wide character array) in temporary storage, with explicit length information.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/Win32-2.14.1.0-d391/System-Win32-WindowsString-String.html