Portability | portable |
---|---|
Stability | provisional |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
A collection of FFI declarations for interfacing with Win32.
Documentation
type AccessMode = UINTSource
type CreateMode = UINTSource
type FileAttributeOrFlag = UINTSource
type MoveFileFlag = DWORDSource
type FilePtrDirection = DWORDSource
type DefineDosDeviceFlags = DWORDSource
type BinaryType = DWORDSource
type FileNotificationFlag = DWORDSource
type LPSECURITY_ATTRIBUTES = Ptr ()Source
deleteFile :: String -> IO ()Source
c_DeleteFile :: LPCTSTR -> IO BoolSource
moveFileEx :: String -> String -> MoveFileFlag -> IO ()Source
c_MoveFileEx :: LPCTSTR -> LPCTSTR -> MoveFileFlag -> IO BoolSource
setCurrentDirectory :: String -> IO ()Source
createDirectory :: String -> Maybe LPSECURITY_ATTRIBUTES -> IO ()Source
createDirectoryEx :: String -> String -> Maybe LPSECURITY_ATTRIBUTES -> IO ()Source
c_CreateDirectoryEx :: LPCTSTR -> LPCTSTR -> LPSECURITY_ATTRIBUTES -> IO BoolSource
removeDirectory :: String -> IO ()Source
c_RemoveDirectory :: LPCTSTR -> IO BoolSource
createFile :: String -> AccessMode -> ShareMode -> Maybe LPSECURITY_ATTRIBUTES -> CreateMode -> FileAttributeOrFlag -> Maybe HANDLE -> IO HANDLESource
c_CreateFile :: LPCTSTR -> AccessMode -> ShareMode -> LPSECURITY_ATTRIBUTES -> CreateMode -> FileAttributeOrFlag -> HANDLE -> IO HANDLESource
closeHandle :: HANDLE -> IO ()Source
c_CloseHandle :: HANDLE -> IO BoolSource
c_CloseHandleFinaliser :: FunPtr (Ptr a -> IO ())Source
getFileType :: HANDLE -> IO FileTypeSource
flushFileBuffers :: HANDLE -> IO ()Source
c_FlushFileBuffers :: HANDLE -> IO BoolSource
setEndOfFile :: HANDLE -> IO ()Source
c_SetEndOfFile :: HANDLE -> IO BoolSource
setFileAttributes :: String -> FileAttributeOrFlag -> IO ()Source
type LPOVERLAPPED = Ptr ()Source
win32_ReadFile :: HANDLE -> Ptr a -> DWORD -> Maybe LPOVERLAPPED -> IO DWORDSource
c_ReadFile :: HANDLE -> Ptr a -> DWORD -> Ptr DWORD -> LPOVERLAPPED -> IO BoolSource
win32_WriteFile :: HANDLE -> Ptr a -> DWORD -> Maybe LPOVERLAPPED -> IO DWORDSource
c_WriteFile :: HANDLE -> Ptr a -> DWORD -> Ptr DWORD -> LPOVERLAPPED -> IO BoolSource
findNextChangeNotification :: HANDLE -> IO ()Source
findCloseChangeNotification :: HANDLE -> IO ()Source
type WIN32_FIND_DATA = ()Source
c_FindFirstFile :: LPCTSTR -> Ptr WIN32_FIND_DATA -> IO HANDLESource
c_FindNextFile :: HANDLE -> Ptr WIN32_FIND_DATA -> IO BOOLSource
c_FindClose :: HANDLE -> IO BOOLSource
defineDosDevice :: DefineDosDeviceFlags -> String -> String -> IO ()Source
c_DefineDosDevice :: DefineDosDeviceFlags -> LPCTSTR -> LPCTSTR -> IO BoolSource
setFileApisToOEM :: IO ()Source
setFileApisToANSI :: IO ()Source
setHandleCount :: UINT -> IO UINTSource
setVolumeLabel :: String -> String -> IO ()Source