Hi Stefan,
In that case, how do I marshall [String] to Ptr (Ptr CChar)?
Thanks
-John
You have to use a type that C's tiny brain understains. IANAWP
but I'm guessing you want:
type ServiceMainClosure = DWORD -> Ptr (Ptr CChar) -> IO ()
foreign import ccall "wrapper"
mkServiceMainClosure :: ServiceMainClosure -> IO (FunPtr ServiceMainClosure)