// wdfobject.h
WDFOBJECT WdfObjectContextGetObject(
[in] PVOID ContextPointer
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfObjectContextGetObject method returns a handle to the framework object that a specified context space belongs to.
ContextPointer
[in]A pointer to object context space. The driver can obtain this pointer by calling WdfObjectGetTypedContext.
WdfObjectContextGetObject returns a handle to a framework object.
For more information about object context space, see Framework Object Context Space.
For more information about the cleanup rules for a framework object hierarchy, see Framework Object Life Cycle.
The following code example obtains a handle to the framework object that a specified context space belongs to.
WDFDEVICE device;
device = WdfObjectContextGetObject(DeviceContext);