Hi Stefan,

In that case, how do I marshall [String] to Ptr (Ptr CChar)?

Thanks

-John

On 2/6/07, Stefan O'Rear < stefanor@cox.net> wrote:
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)