WDF_PTR_GET_OFFSET macro
The WDF_PTR_GET_OFFSET macro subtracts an address from another address and returns the resulting offset value.
Syntax
size_t WDF_PTR_GET_OFFSET(
_base,
_addr
);
Parameters
_base
Specifies the value to subtract from the starting address.
_addr
Specifies the starting address.
Return value
Returns the offset between the two specified addresses.
Remarks
The macro is defined as follows:
#define WDF_PTR_GET_OFFSET(_base, _addr) \
(size_t) (((PUCHAR) _addr) - ((PUCHAR) _base))
Requirements
Target platform |
Universal |
Minimum KMDF version |
1.5 |
Minimum UMDF version |
2.0 |
Header |
Wdfcore.h (include Wdf.h) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for