stevedonovan / winapi

Minimal but useful Lua bindings to the Windows API
http://stevedonovan.github.com/winapi/api.html
Other
192 stars 40 forks source link

Try to open process with PROCESS_TERMINATE flag. #3

Closed ignacio closed 13 years ago

ignacio commented 13 years ago

If it fails, open it with normal flags. Allows to open a process given a pid and kill it.

stevedonovan commented 13 years ago

Thanks, Ignacio - this is a useful addition.

While thinking about a new release, anything else useful you can think of?

steve d.

ignacio commented 13 years ago

Well, not much at the moment. I'm using winapi to spawn and kill processes only, so my use case is very limited. Didn't try the other stuff so I don't have anything to add there.

Maybe, having more control of the process creation options? Like the ability to specify if the process will inherit handles or not, if it will have a console or not, etc.

stevedonovan commented 13 years ago

More control could be useful, if it doesn't complicate the usual simple case. Controlling the console creation is easy, but specifying handle inheritance implies we have some way of setting those handles usefully.