ALIGN_DOWN - 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

/**
 * The ALIGN_DOWN macro aligns a value down using sizeof(Type) as the boundary.
 *
 * \param Length The value to align.
 * \param Type   The type whose size is used as the alignment boundary.
 * \return @p Length rounded down to the nearest multiple of sizeof(@p Type).
 * \remarks This is a convenience wrapper over ALIGN_DOWN_BY.
 */
#define ALIGN_DOWN(Length, Type) ALIGN_DOWN_BY(Length, 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

#define ALIGN_DOWN(Length, Type) ALIGN_DOWN_BY(Length, sizeof(Type))

#endif
#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.