// wdfobject.h
void WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE(
_attributes,
_contexttype
);
View the official Windows hardware development documentationNo description available.
[Applies to KMDF and UMDF]
The WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE macro inserts an object's driver-defined context information into the object's WDF_OBJECT_ATTRIBUTES structure.
_attributes A pointer to an object's WDF_OBJECT_ATTRIBUTES structure.
_contexttype The structure type name of a driver-defined structure that describes the contents of an object's context space.
This macro does not return a value.
You should use the WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE macro after calling WDF_OBJECT_ATTRIBUTES_INIT.
For more information about using the WDF_OBJECT_ATTRIBUTES_SET_CONTEXT_TYPE macro, see Framework Object Context Space.
For a code example that uses this macro, see WDF_DECLARE_CONTEXT_TYPE.
| Target platform | Universal |
| Minimum KMDF version | 1.0 |
| Minimum UMDF version | 2.0 |
| Header | Wdfobject.h (include Wdf.h) |
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE