Parent of WDFMEMORY object?

Which object is the parent of WDFMEMORY returned by WdfRegistryQueryMemory call? Is it the WDFKEY object which was passed to WdfRegistryQueryMemory?

first, if there is a question like this, please send feedback on the wdk/msdn page asking for clarification. offhand, i don’t know the answer (if the object attributes are not NULL, the parent can be specified in the attributes), but after you make the call run !wdfkd.wdfhandle on the returned handle and it will tell you the answer.


Thanks Doron. I just verified it. It is WDFDRIVER