WdfObjectContextGetObject - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfobject.h

WDFOBJECT WdfObjectContextGetObject(
  [in] PVOID ContextPointer
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfobject-wdfobjectcontextgetobject)

WdfObjectContextGetObject function

Description

[Applies to KMDF and UMDF]

The WdfObjectContextGetObject method returns a handle to the framework object that a specified context space belongs to.

Parameters

ContextPointer [in]

A pointer to object context space. The driver can obtain this pointer by calling WdfObjectGetTypedContext.

Return value

WdfObjectContextGetObject returns a handle to a framework object.

Remarks

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.

Examples

The following code example obtains a handle to the framework object that a specified context space belongs to.

WDFDEVICE  device;

device = WdfObjectContextGetObject(DeviceContext);

See also

WdfObjectGetTypedContext