WdfObjectGetCustomTypeData macro

[Applies to KMDF and UMDF]

The WdfObjectGetCustomTypeData macro retrieves the data that the driver previously associated with a framework object and custom type.

Syntax

PULONG WdfObjectGetCustomTypeData(
  [in]  Handle,
  [in]  Type
);

Parameters

Handle [in]
A handle to a framework object.

Type [in]
The symbol name of a custom type.

Return value

WdfObjectGetCustomTypeData returns the data that the driver associated with a framework object and custom type in a previous call to WdfObjectAddCustomTypeWithData.

Remarks

For more information about object driver types, see Framework Object Custom Types.

Requirements

Target platform

Universal

Minimum KMDF version

1.11

Minimum UMDF version

2.0

Header

Wdfobject.h (include Wdf.h)

See also

WDF_DECLARE_CUSTOM_TYPE

WdfObjectAddCustomType

WdfObjectAddCustomTypeWithData

WdfObjectIsCustomType