AllenDang / w32

A wrapper of windows apis for the Go Programming Language.
Other
766 stars 247 forks source link

Please add SetConsoleCtrlHandler #32

Open anacrolix opened 10 years ago

anacrolix commented 10 years ago

http://msdn.microsoft.com/en-us/library/windows/desktop/ms686016(v=vs.85).aspx

xackery commented 9 years ago

This looks extremely easy to add. I can put time into it if you like, however it's a 2-year-old issue.

anacrolix commented 9 years ago

Yes please.

xackery commented 9 years ago

Well, I have it in and successfully registered. The challenge is, the function isn't being called properly. An event is occurring "exit status -1073741819" instead of my function.

For now I committed my example, and will look at it more later. https://github.com/Xackery/w32/blob/master/example/setconsolectrlhandler.go

anacrolix commented 9 years ago

That sounds like what happened when I tried to implement it.