This is the function called by StartKeylogger to start the passive-level thread that will perform file I/O (logging).