We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec12f8b commit 45a2bc6Copy full SHA for 45a2bc6
phnt/include/phnt_ntdef.h
@@ -333,6 +333,20 @@ typedef struct _KSYSTEM_TIME
333
334
#include <poppack.h>
335
336
+// NT macros used to test, set and clear flags
337
+#ifndef FlagOn
338
+#define FlagOn(_F, _SF) ((_F) & (_SF))
339
+#endif
340
+#ifndef BooleanFlagOn
341
+#define BooleanFlagOn(F, SF) ((BOOLEAN)(((F) & (SF)) != 0))
342
343
+#ifndef SetFlag
344
+#define SetFlag(_F, _SF) ((_F) |= (_SF))
345
346
+#ifndef ClearFlag
347
+#define ClearFlag(_F, _SF) ((_F) &= ~(_SF))
348
349
+
350
#endif
351
352
0 commit comments