1 message in net.java.dev.jna.users[jna-users] Calling CreateProcessW
FromSent OnAttachments
Linus EricsonDec 8, 2008 5:04 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] Calling CreateProcessWActions...
From:Linus Ericson (linu@gmail.com)
Date:Dec 8, 2008 5:04:22 pm
List:net.java.dev.jna.users

Hello,

I would like to call CreateProcessW [1] in win32 in order to avoid a bug in Java for windows [2]. Since I am totally new to JNA (and the win32 api) a little bit of assistance (well a lot actually!) would be great. I would like to be able to detect when the process has finished running and if possible be able to grab on to the stderr and stdout streams. Does this sound doable?

Has anyone done this before and is willing to share the code? I'm having trouble figuring out the correct type mappings for the various datatypes (LPTSTR, LPBYTE, LPSECURITY_ATTRIBUTES, etc).

Any help would be greatly appreciated.

[1] http://msdn.microsoft.com/en-us/library/ms682425.aspx [2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4947220

Regards /Linus