Tech Support > Microsoft Windows > Development Resources > catch signal in win32 programming
catch signal in win32 programming
Posted by spleen2060@gmail.com on May 12th, 2008


hi all,
there's a way to do this in win32 programming (C/C++)

#include <signal.h>

void cleanAll()
{
sig = 1;
}

int main(int argc, char **argv)
{

signal(SIGINT, cleanup);
signal(SIGTERM, cleanup);
signal(SIGQUIT, cleanup);
signal(SIGHUP, cleanup);


while (feof(fpin) == 0 && sig == 0) {


Similar Posts