Here's a question that floated past some time ago:
In my code, I have multiple objects that want to talk to thesame handle (via DeviceIoControl).Each time I create an object, I use DuplicateHandleto increment the reference count on the handle.That way, when each object calls CloseHandle,only the last one actually closes the handle.However, when I run the code, I find as soon as the first objectcalls CloseHandle, the handle is no longer validand nobody else can use it.What flags do I need to pass to
read more »
Be the first to post a Comment!