CLI tool for running Playbooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
920 B

1 year ago
9 months ago
1 year ago
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace TrustedUninstaller.Shared
  4. {
  5. //Byte 0
  6. [Flags]
  7. public enum SignatureStatusFlags : byte
  8. {
  9. UpToDate = 0,
  10. OutOfDate = 16
  11. }
  12. // Byte 1
  13. [Flags]
  14. public enum AVStatusFlags : byte
  15. {
  16. Unknown = 1,
  17. Enabled = 16
  18. }
  19. // Byte 2
  20. [Flags]
  21. public enum ProviderFlags : byte
  22. {
  23. FIREWALL = 1,
  24. AUTOUPDATE_SETTINGS = 2,
  25. ANTIVIRUS = 4,
  26. ANTISPYWARE = 8,
  27. INTERNET_SETTINGS = 16,
  28. USER_ACCOUNT_CONTROL = 32,
  29. SERVICE = 64,
  30. NONE = 0,
  31. }
  32. [StructLayout(LayoutKind.Sequential)]
  33. public struct ProviderStatus
  34. {
  35. public SignatureStatusFlags SignatureStatus;
  36. public AVStatusFlags AVStatus;
  37. public ProviderFlags SecurityProvider;
  38. public bool FileExists;
  39. public string DisplayName;
  40. }
  41. }