#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#ifndef BYTE_OFFSET
#define BYTE_OFFSET(Address) ((SIZE_T)((ULONG_PTR)(Address) & PAGE_MASK))
View code on GitHub
// wdm.h
void BYTE_OFFSET(
[in] Va
);
View the official Windows Driver Kit DDI reference
No description available.
The BYTE_OFFSET macro takes a virtual address and returns the byte offset of that address within the page.
Va
[in]Pointer to the virtual address.
BYTE_OFFSET returns the offset portion of the virtual address.