haskell / win32

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

Provide `GetTempFileNameW` #204

Closed hasufell closed 2 weeks ago

hasufell commented 2 years ago

https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettempfilenamew

While working on a AFPP PR for the directory package I stumbled over the missing openBinaryTempFile function that's only defined for FilePath. Using Win32 bindings is probably easier than copy-pasting code from base.