Skip to content
Snippets Groups Projects
Commit bd6b8ec1 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Ben Gamari
Browse files

winio: add comment stating failure behaviour for getUniqueFileInfo.

parent d3f94368
No related branches found
No related tags found
No related merge requests found
......@@ -951,9 +951,13 @@ foreign import ccall unsafe "lockFile"
foreign import ccall unsafe "unlockFile"
unlockFile :: CUIntPtr -> IO CInt
-- | Returns -1 on error. Otherwise writes two values representing
-- the file into the given ptrs.
foreign import ccall unsafe "get_unique_file_info_hwnd"
c_getUniqueFileInfo :: HANDLE -> Ptr Word64 -> Ptr Word64 -> IO ()
-- | getUniqueFileInfo assumes the C call to getUniqueFileInfo
-- succeeds.
getUniqueFileInfo :: RawHandle a => a -> IO (Word64, Word64)
getUniqueFileInfo handle = do
with 0 $ \devptr -> do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment