
7 Nov
2006
7 Nov
'06
7:54 p.m.
On 11/7/06, Neil Mitchell
foreign import stdcall unsafe "windows.h GetModuleFileNameA" getModuleFileName :: Ptr () -> CString -> Int -> IO Int32
That's the only one. Wouldn't it make more sense to put this FFI call in Cabal (which is always there, and always required) instead of Win32, which isn't an existing dependancy?
Just a sidenote about this. If you import this code into Cabal, please consider using uncode version of this function GetModuleFileNameW (altghough that has slight problems with windows me and older if they don't have unicode extensions installed.) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas... Best regards, Esa