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

/**
 * The BooleanFlagOn macro tests whether any bits in a subset are set and returns a BOOLEAN.
 *
 * \param F  The flag value to test.
 * \param SF The subset of flags to test for.
 * \return `TRUE` if any bits in @p SF are set in @p F; otherwise `FALSE`.
 * \remarks The result is explicitly converted to `BOOLEAN`.
 */
#define BooleanFlagOn(F, SF) ((BOOLEAN)(((F) & (SF)) != 0))

#endif
#endif
#endif
#endif

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

#define BooleanFlagOn(F, SF) ((BOOLEAN)(((F) & (SF)) != 0))

#endif
#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.