ALIGN_DOWN_POINTER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#if defined(__INTELLISENSE__) || defined(DOXYGEN)
#ifndef ALIGN_DOWN_POINTER

/**
 * The ALIGN_DOWN_POINTER macro aligns a pointer down using sizeof(Type) as the boundary.
 *
 * \param Address The pointer to align.
 * \param Type    The type whose size is used as the alignment boundary.
 * \return A pointer at or below @p Address aligned down to sizeof(@p Type).
 * \remarks This is a convenience wrapper over ALIGN_DOWN_POINTER_BY.
 */
#define ALIGN_DOWN_POINTER(Address, Type) ALIGN_DOWN_POINTER_BY(Address, sizeof(Type))

#endif
#endif
#endif
#endif

View code on GitHub
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#if defined(__INTELLISENSE__) || defined(DOXYGEN)
// ...
#else
#ifndef ALIGN_DOWN_POINTER

#define ALIGN_DOWN_POINTER(Address, Type) ALIGN_DOWN_POINTER_BY(Address, sizeof(Type))

#endif
#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.