Francois Gouget : winmm: Give a name to the critical sections, make them static and delete them when unloading the dll.