This is the function called by insertKeyboardFilter, which is called by DriverEntry when the rootkit is loaded. This function performs all the initialization required for key logging.