Mike Hearn <[EMAIL PROTECTED]> writes: > I am? As far as I can see, the linked list probably should have a > critical section too, but the per item one is to protect access to the > NOTIFYICONDATAA structure, as both the calling thread and the dedicated > trayitem thread could be accessing it, so you need protection on the > item level too.
But you can't use that one to protect the global list. > Better way to do it then? Using SendMessage to do the changes in the proper context; but we need a separate process to manage the window, we don't want to go around creating threads behind the application's back. -- Alexandre Julliard [EMAIL PROTECTED]