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

/**
 * The FlagOn macro tests whether any bits in a subset are set in a flag value.
 *
 * \param _F  The flag value to test.
 * \param _SF The subset of flags to test for.
 * \return Non-zero if any bits in @p _SF are set in @p _F; otherwise zero.
 * \remarks This returns the raw AND result (not normalized to BOOLEAN).
 */
#define FlagOn(_F, _SF) ((_F) & (_SF))

#endif
#endif
#endif
#endif

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

#define FlagOn(_F, _SF) ((_F) & (_SF))

#endif
#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.