Copyright | 2013 shelarcy |
---|---|
License | BSD-style |
Maintainer | [email protected] |
Stability | Provisional |
Portability | Non-portable (Win32 API) |
Safe Haskell | Safe |
Language | Haskell2010 |
Utilities for primitive marshalling of Windows' C strings.
withTString :: String -> (LPTSTR -> IO a) -> IO a
withTStringLen :: String -> ((LPTSTR, Int) -> IO a) -> IO a
peekTString :: LPCTSTR -> IO String
peekTStringLen :: (LPCTSTR, Int) -> IO String
newTString :: String -> IO LPCTSTR
withTStringBuffer :: Int -> (LPTSTR -> IO a) -> IO a
Marshal a dummy Haskell string into a NUL terminated C wide string using temporary storage.
withTStringBufferLen :: Int -> ((LPTSTR, Int) -> IO a) -> IO a
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/8.8.3/docs/html/libraries/Win32-2.6.1.0/System-Win32-String.html