Vitaliy Margolen wine-devel@kievinfo.com writes:
I'm not sure if that's possible. You can't insert mutex or even into named pipe's name space. Same, you can't insert named pipe or desktop into a directory object.
Because we don't have object type objects, I can't think of any other way to check that we are inserting the right object type into the correct place.
You shouldn't need a generic check, each object knows its type when it's created so it can do the check. In fact you don't need a generic directory, you can use completely different types for the different kinds of directories.