you are viewing a single comment's thread
view the rest of the comments
[–] 95 points 9 months ago (2 children)

Windows does, in fact, have signals. They're just not all the same as Unix signals, and the behavior is different. Here's a write-up.

You're correct there is no "please terminate but you don't have to" signal in Windows. Windowless processes sometimes make up their own nonstandard events to implement the functionality. As you mentioned, windowed processes have WM_CLOSE.

Memory access violations (akin to SIGSEGV), and other system exceptions can be handled through Structured Exception Handling.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 11 points 9 months ago (1 child)

    TIL about the console signaling stuff, good to know. I am aware of SEH but that seemed a little too in the weeds for this discussion since that's as you say akin to SIGSEGV

  • source
  • parent
  • hideshow 1 child comment
  • [–] 13 points 9 months ago

    The NT kernel was all built to emulate object orientation (read Smalltalk, not C++) style message passing. That's because it was the 90s, and it's the new technology kernel.

    So yeah, expect everything to have more flexibility sending data around, and no standardization at all so you can't have any generic functionality.

  • source
  • parent