-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateProcess does not exist? #115
Comments
Hi Yotam,
Is there a particular reason you can't call the function from C and expose a simplified interface to your Haskell code via foreign imports? That's how most programs requiring non-standard process creation options do it. |
Thanks for the reply. |
I also would strongly recommend avoiding exposing CreateProcess at all. Instead, explicitly bind to CreateProcessW (Unicode version), and maybe CreateProcessA (ANSI version). (the win32 package does seem to only expose the Unicode versions anyway, something that technically inverts the default behavior of the native APIs, since, if, for example, you call only CreateProcess, Windows will treat that as a call to CreateProcessA, and never as a call to CreateProcessW.) ...you might also want to know that Windows also has ZwCreateProcess & NtCreateProcess. :) (I don't think there exist [Zw/Nt]CreateProcess[A/W], however. Not sure tho.) |
Hello,
I'm working on a small debugger for windows which means I need to pass creation flags that I cannot pass with the
process
library. I found it strange that there is no binding for that function in Win32. Even more, as there is DebugApi which seems to me that it can only be used on an already started process.Yotam
The text was updated successfully, but these errors were encountered: