Win32-2.2.0.2: A binding to part of the Win32 librarySource codeContentsIndex
System.Win32.File
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
type AccessMode = UINTSource
gENERIC_NONE :: AccessModeSource
gENERIC_READ :: AccessModeSource
gENERIC_WRITE :: AccessModeSource
gENERIC_EXECUTE :: AccessModeSource
gENERIC_ALL :: AccessModeSource
dELETE :: AccessModeSource
rEAD_CONTROL :: AccessModeSource
wRITE_DAC :: AccessModeSource
wRITE_OWNER :: AccessModeSource
sYNCHRONIZE :: AccessModeSource
sTANDARD_RIGHTS_REQUIRED :: AccessModeSource
sTANDARD_RIGHTS_READ :: AccessModeSource
type ShareMode = UINTSource
sTANDARD_RIGHTS_WRITE :: AccessModeSource
fILE_SHARE_NONE :: ShareModeSource
sTANDARD_RIGHTS_EXECUTE :: AccessModeSource
sTANDARD_RIGHTS_ALL :: AccessModeSource
fILE_SHARE_READ :: ShareModeSource
sPECIFIC_RIGHTS_ALL :: AccessModeSource
fILE_SHARE_WRITE :: ShareModeSource
aCCESS_SYSTEM_SECURITY :: AccessModeSource
mAXIMUM_ALLOWED :: AccessModeSource
type CreateMode = UINTSource
cREATE_NEW :: CreateModeSource
cREATE_ALWAYS :: CreateModeSource
oPEN_EXISTING :: CreateModeSource
oPEN_ALWAYS :: CreateModeSource
tRUNCATE_EXISTING :: CreateModeSource
type FileAttributeOrFlag = UINTSource
fILE_ATTRIBUTE_READONLY :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_HIDDEN :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_SYSTEM :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_DIRECTORY :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_ARCHIVE :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_NORMAL :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_TEMPORARY :: FileAttributeOrFlagSource
fILE_ATTRIBUTE_COMPRESSED :: FileAttributeOrFlagSource
fILE_FLAG_WRITE_THROUGH :: FileAttributeOrFlagSource
fILE_FLAG_OVERLAPPED :: FileAttributeOrFlagSource
sECURITY_ANONYMOUS :: FileAttributeOrFlagSource
fILE_FLAG_NO_BUFFERING :: FileAttributeOrFlagSource
sECURITY_IDENTIFICATION :: FileAttributeOrFlagSource
fILE_FLAG_RANDOM_ACCESS :: FileAttributeOrFlagSource
sECURITY_IMPERSONATION :: FileAttributeOrFlagSource
fILE_FLAG_SEQUENTIAL_SCAN :: FileAttributeOrFlagSource
sECURITY_DELEGATION :: FileAttributeOrFlagSource
fILE_FLAG_DELETE_ON_CLOSE :: FileAttributeOrFlagSource
sECURITY_CONTEXT_TRACKING :: FileAttributeOrFlagSource
fILE_FLAG_BACKUP_SEMANTICS :: FileAttributeOrFlagSource
sECURITY_EFFECTIVE_ONLY :: FileAttributeOrFlagSource
fILE_FLAG_POSIX_SEMANTICS :: FileAttributeOrFlagSource
sECURITY_SQOS_PRESENT :: FileAttributeOrFlagSource
type MoveFileFlag = DWORDSource
sECURITY_VALID_SQOS_FLAGS :: FileAttributeOrFlagSource
mOVEFILE_REPLACE_EXISTING :: MoveFileFlagSource
mOVEFILE_COPY_ALLOWED :: MoveFileFlagSource
mOVEFILE_DELAY_UNTIL_REBOOT :: MoveFileFlagSource
type FilePtrDirection = DWORDSource
fILE_BEGIN :: FilePtrDirectionSource
fILE_CURRENT :: FilePtrDirectionSource
fILE_END :: FilePtrDirectionSource
type DriveType = UINTSource
dRIVE_UNKNOWN :: DriveTypeSource
dRIVE_NO_ROOT_DIR :: DriveTypeSource
dRIVE_REMOVABLE :: DriveTypeSource
dRIVE_FIXED :: DriveTypeSource
dRIVE_REMOTE :: DriveTypeSource
dRIVE_CDROM :: DriveTypeSource
type DefineDosDeviceFlags = DWORDSource
dRIVE_RAMDISK :: DriveTypeSource
dDD_RAW_TARGET_PATH :: DefineDosDeviceFlagsSource
dDD_REMOVE_DEFINITION :: DefineDosDeviceFlagsSource
dDD_EXACT_MATCH_ON_REMOVE :: DefineDosDeviceFlagsSource
type BinaryType = DWORDSource
sCS_32BIT_BINARY :: BinaryTypeSource
sCS_DOS_BINARY :: BinaryTypeSource
sCS_WOW_BINARY :: BinaryTypeSource
sCS_PIF_BINARY :: BinaryTypeSource
sCS_POSIX_BINARY :: BinaryTypeSource
sCS_OS216_BINARY :: BinaryTypeSource
type FileNotificationFlag = DWORDSource
fILE_NOTIFY_CHANGE_FILE_NAME :: FileNotificationFlagSource
fILE_NOTIFY_CHANGE_DIR_NAME :: FileNotificationFlagSource
fILE_NOTIFY_CHANGE_ATTRIBUTES :: FileNotificationFlagSource
fILE_NOTIFY_CHANGE_SIZE :: FileNotificationFlagSource
fILE_NOTIFY_CHANGE_LAST_WRITE :: FileNotificationFlagSource
fILE_NOTIFY_CHANGE_SECURITY :: FileNotificationFlagSource
type FileType = DWORDSource
fILE_TYPE_UNKNOWN :: FileTypeSource
fILE_TYPE_DISK :: FileTypeSource
fILE_TYPE_CHAR :: FileTypeSource
fILE_TYPE_PIPE :: FileTypeSource
fILE_TYPE_REMOTE :: FileTypeSource
type LPSECURITY_ATTRIBUTES = Ptr ()Source
type MbLPSECURITY_ATTRIBUTES = Maybe LPSECURITY_ATTRIBUTESSource
data BY_HANDLE_FILE_INFORMATION Source
Constructors
BY_HANDLE_FILE_INFORMATION
bhfiFileAttributes :: FileAttributeOrFlag
bhfiCreationTime :: FILETIME
bhfiLastAccessTime :: FILETIME
bhfiLastWriteTime :: FILETIME
bhfiVolumeSerialNumber :: DWORD
bhfiSize :: DDWORD
bhfiNumberOfLinks :: DWORD
bhfiFileIndex :: DDWORD
show/hide Instances
deleteFile :: String -> IO ()Source
c_DeleteFile :: LPCTSTR -> IO BoolSource
copyFile :: String -> String -> Bool -> IO ()Source
c_CopyFile :: LPCTSTR -> LPCTSTR -> Bool -> IO BoolSource
moveFile :: String -> String -> IO ()Source
c_MoveFile :: LPCTSTR -> LPCTSTR -> IO BoolSource
moveFileEx :: String -> String -> MoveFileFlag -> IO ()Source
c_MoveFileEx :: LPCTSTR -> LPCTSTR -> MoveFileFlag -> IO BoolSource
setCurrentDirectory :: String -> IO ()Source
c_SetCurrentDirectory :: LPCTSTR -> IO BoolSource
createDirectory :: String -> Maybe LPSECURITY_ATTRIBUTES -> IO ()Source
c_CreateDirectory :: LPCTSTR -> LPSECURITY_ATTRIBUTES -> IO BoolSource
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
getBinaryType :: String -> IO BinaryTypeSource
c_GetBinaryType :: LPCTSTR -> Ptr DWORD -> 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
c_SetFileAttributes :: LPCTSTR -> FileAttributeOrFlag -> IO BoolSource
getFileAttributes :: String -> IO FileAttributeOrFlagSource
c_GetFileAttributes :: LPCTSTR -> IO FileAttributeOrFlagSource
getFileInformationByHandle :: HANDLE -> IO BY_HANDLE_FILE_INFORMATIONSource
c_GetFileInformationByHandle :: HANDLE -> Ptr BY_HANDLE_FILE_INFORMATION -> IO BOOLSource
type LPOVERLAPPED = Ptr ()Source
type MbLPOVERLAPPED = Maybe LPOVERLAPPEDSource
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
findFirstChangeNotification :: String -> Bool -> FileNotificationFlag -> IO HANDLESource
c_FindFirstChangeNotification :: LPCTSTR -> Bool -> FileNotificationFlag -> IO HANDLESource
findNextChangeNotification :: HANDLE -> IO ()Source
c_FindNextChangeNotification :: HANDLE -> IO BoolSource
findCloseChangeNotification :: HANDLE -> IO ()Source
c_FindCloseChangeNotification :: HANDLE -> IO BoolSource
type WIN32_FIND_DATA = ()Source
newtype FindData Source
Constructors
FindData (ForeignPtr WIN32_FIND_DATA)
getFindDataFileName :: FindData -> IO FilePathSource
findFirstFile :: String -> IO (HANDLE, FindData)Source
c_FindFirstFile :: LPCTSTR -> Ptr WIN32_FIND_DATA -> IO HANDLESource
findNextFile :: HANDLE -> FindData -> IO BoolSource
c_FindNextFile :: HANDLE -> Ptr WIN32_FIND_DATA -> IO BOOLSource
findClose :: HANDLE -> IO ()Source
c_FindClose :: HANDLE -> IO BOOLSource
defineDosDevice :: DefineDosDeviceFlags -> String -> String -> IO ()Source
c_DefineDosDevice :: DefineDosDeviceFlags -> LPCTSTR -> LPCTSTR -> IO BoolSource
areFileApisANSI :: IO BoolSource
setFileApisToOEM :: IO ()Source
setFileApisToANSI :: IO ()Source
setHandleCount :: UINT -> IO UINTSource
getLogicalDrives :: IO DWORDSource
c_GetLogicalDrives :: IO DWORDSource
getDiskFreeSpace :: Maybe String -> IO (DWORD, DWORD, DWORD, DWORD)Source
c_GetDiskFreeSpace :: LPCTSTR -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> IO BoolSource
setVolumeLabel :: String -> String -> IO ()Source
c_SetVolumeLabel :: LPCTSTR -> LPCTSTR -> IO BoolSource
Produced by Haddock version 2.6.1