Implement SetInterruptFunction for Windows.