Piotr Caban <[email protected]> writes:

>  void InitChangeNotifications(void)
>  {
> +    watched_directories = 0;
> +    interrupts_server_terminate = CreateEventW(NULL, FALSE, FALSE, NULL);
> +    interrupts_server = CreateThread(NULL, 0, interrupts_server_thread, 
> NULL, 0, NULL);
>  }

This needs to be done on demand. You can't create a thread in every
process on the off chance that it would use interrupt notifications.
Probably you can use the thread pool for this.

-- 
Alexandre Julliard
[email protected]


Reply via email to