Leaked source code of windows server 2003
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.

60 lines
1.9 KiB

  1. //*** uareg.h -- UAssist registry settings and flags
  2. //
  3. //*** SZ_* -- registry locations
  4. //
  5. #define SZ_UASSIST TEXT("UserAssist")
  6. #define SZ_UASSIST2 TEXT("UserAssist2")
  7. #define SZ_SETTINGS TEXT("Settings")
  8. #define SZ_SESSTIME TEXT("SessionTime")
  9. #define SZ_IDLETIME TEXT("IdleTime")
  10. #define SZ_CLEANTIME TEXT("CleanupTime")
  11. #define SZ_NOPURGE TEXT("NoPurge") // (debug) don't nuke 0s
  12. #define SZ_BACKUP TEXT("Backup") // (debug) simulate deletes
  13. #define SZ_NOLOG TEXT("NoLog")
  14. #define SZ_INSTRUMENT TEXT("Instrument")
  15. #define SZ_NOENCRYPT TEXT("NoEncrypt") // (debug) don't encrypt
  16. //{guid}
  17. #define SZ_UAVERSION TEXT("Version")
  18. #define SZ_COUNT TEXT("Count")
  19. // #define SZ_CTLSESSION TEXT("UEME_CTLSESSION")
  20. // #define SZ_CUACount_ctor TEXT("UEME_CTLCUACount:ctor")
  21. //*** UA*F_* -- flags
  22. // standard, shared by some of {CUserAssist,CUADbase,CUACount}
  23. #define UAXF_NOPURGE 0x01000000
  24. #define UAXF_BACKUP 0x02000000
  25. #define UAXF_NOENCRYPT 0x04000000
  26. #define UAXF_NODECAY 0x08000000
  27. #define UAXF_RESERVED2 0x10000000
  28. #define UAXF_RESERVED3 0x20000000
  29. #define UAXF_RESERVED4 0x40000000
  30. #define UAXF_RESERVED5 0x80000000
  31. #define UAXF_XMASK 0xff000000
  32. // for CUserAssist API
  33. #define UAAF_NOLOG 0x01
  34. #define UAAF_INSTR 0x02
  35. // for CUADbase
  36. #define UADF_UNUSED 0x01
  37. // for CUACount
  38. #define UACF_UNUSED 0x01
  39. //***
  40. //
  41. #define UEMIND_NINSTR 0
  42. #ifdef UAAF_INSTR
  43. #undef UEMIND_NINSTR
  44. #define UEMIND_NINSTR 2
  45. #define UEMIND_SHELL2 (UEMIND_SHELL + UEMIND_NINSTR)
  46. #define UEMIND_BROWSER2 (UEMIND_BROWSER + UEMIND_NINSTR)
  47. #endif
  48. #define IND_NONINSTR(iGrp) \
  49. (!IND_ISINSTR(iGrp) ? (iGrp) : ((iGrp) - UEMIND_NINSTR))
  50. #define IND_ISINSTR(iGrp) (UEMIND_NINSTR && iSvr >= UEMIND_NINSTR)