dsound: Properly implement DllCanUnloadNow

James Hawkins truiken at gmail.com
Mon Feb 7 12:06:47 CST 2005


On Mon, 07 Feb 2005 12:37:15 -0500, Robert Reif <reif at earthlink.net> wrote:
> James Hawkins wrote:
> 
> >Hi,
> >
> >Changelog
> >* Properly implement DllCanUnloadNow ref counting.
> >
> >
> >
> dsound.dll is a strange dll that doesn't really follow proper COM
> reference counting rules for buffers.  This is intentional by Microsoft
> (don't know why) and was made common by the example code from
> "Inside Direct X" .
> 
> You may want to add a test to the dsound.dll regression tests to
> verify what Microsoft does.
> 

I've been reading a lot about COM and trying to catch up, but I don't
know exactly what I need to test.  My guess for what you're looking
for is to create some buffers and release them all the while keeping
track of the ref count and when the dll can unload.  Is this close to
what is needed?  Could you point me in the right direction concerning
documentation (should I get "Inside Direct X") or examples for the
tests.  Thanks a lot.

-- 
James Hawkins



More information about the wine-patches mailing list