Skip to content

Instantly share code, notes, and snippets.

@MauRiEEZZZ
Created April 13, 2020 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MauRiEEZZZ/f77d96bdd2bb7a49fc97642c877b57d7 to your computer and use it in GitHub Desktop.
Save MauRiEEZZZ/f77d96bdd2bb7a49fc97642c877b57d7 to your computer and use it in GitHub Desktop.
BitFlag Enumerators for State or productState
[Flags()] enum ProductState
{
Off = 0x0000
On = 0x1000
Snoozed = 0x2000
Expired = 0x3000
}
[Flags()] enum SignatureStatus
{
UpToDate = 0x00
OutOfDate = 0x10
}
[Flags()] enum ProductOwner
{
NonMs = 0x000
Windows = 0x100
}
[Flags()] enum ProductFlags
{
SignatureStatus = 0x000000F0
ProductOwner = 0x00000F00
ProductState = 0x0000F000
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment