// wdfcore.h
_type WDF_PTR_ADD_OFFSET_TYPE(
_ptr,
_offset,
_type
);
View the official Windows hardware development documentationNo description available.
The WDF_PTR_ADD_OFFSET_TYPE macro adds an offset value to an address and returns the resulting address cast to the specified type.
_ptr Specifies an address.
_offset Specifies the offset value in bytes.
_type Specifies the data type to return.
Returns a pointer to the resulting address. You select the data type of the return value in the _type parameter of the macro.
The macro is defined as follows:
#define WDF_PTR_ADD_OFFSET_TYPE(_ptr, _offset, _type) \
((_type) (((PUCHAR) (_ptr)) + (_offset)))
| Target platform | Universal |
| Minimum KMDF version | 1.5 |
| Minimum UMDF version | 2.0 |
| Header | Wdfcore.h (include Wdf.h) |