Listing 1: signals.h Interface to signal library
/* Number of supported signals */ #define MAX_SIGNALS 4 /* Signal names */ #define SIGNAL0 0 #define SIGNAL1 1 #define SIGNAL2 2 #define SIGNAL3 3 #ifndef SIGNALSLIBAPI #define SIGNALSLIBAPI __declspec(dllimport) #endif /* Set a signal handler */ SIGNALSLIBAPI DWORD SetSignalHandler(DWORD, PVOID); /* Send a signal to a thread */ SIGNALSLIBAPI DWORD SendSignalToThread(HANDLE, DWORD); /* End of File */