|
|
Hi all,
I'm using the WMDM_MODE_THREAD flag when calling the Insert method. I saw that: 1. if I use CoInitialize, the Insert method returns immediately but the process does not look like "really" threaded. For instance, a call to Sleep(1000) after my Insert will make the transfer to pause and resume after the Sleep. Like if it was executed in the same thread. 2. if I use CoInitializeEx with the COINIT_MULTITHREADED flag, everything works fine: a Sleep won't stop the transfer, which seems to be really executed in a separate thread.
Now, the people who'll use my library would prefer me to use a simple CoInitialize... but then the thread mode works odd.
Did I miss something? Or is WMDM absolutely designed to work with CoInitializeEx and COINIT_MULTITHREADED?
Thank you for your help. Jérôme.
|
|
|