haskell / win32

Haskell support for the Win32 API
http://hackage.haskell.org/package/Win32
Other
97 stars 63 forks source link

Add constant `INVALID_SET_FILE_POINTER` #201

Closed hasufell closed 2 years ago

hasufell commented 2 years ago

It is needed when dealing with setFilePointerEx.

The definition seems to be

#define INVALID_SET_FILE_POINTER ((DWORD)-1)

which translates to 4294967295. That's also why I found it confusing that setFilePointerEx returns LARGE_INTEGER, although the documentation says it should be DWORD: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfilepointer