Source code of Windows XP (NT5)
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.

109 lines
1.9 KiB

  1. #ifndef _ACBROWSERWHISTLER_H
  2. #define _ACBROWSERWHISTLER_H
  3. #include <windows.h>
  4. typedef enum {
  5. FIX_SHIM,
  6. FIX_PATCH,
  7. FIX_LAYER,
  8. FIX_FLAG
  9. } FIXTYPE;
  10. typedef enum {
  11. FLAG_USER,
  12. FLAG_KERNEL
  13. } FLAGTYPE;
  14. typedef struct tagFIX {
  15. struct tagFIX* pNext;
  16. char* pszName;
  17. char* pszDescription;
  18. ULONGLONG ullMask; // only for FIX_FLAG
  19. FLAGTYPE flagType; // only for FIX_FLAG
  20. FIXTYPE fixType;
  21. } FIX, *PFIX;
  22. typedef struct tagFIXLIST {
  23. struct tagFIXLIST* pNext;
  24. PFIX pFix;
  25. } FIXLIST, *PFIXLIST;
  26. typedef enum {
  27. APPTYPE_NONE,
  28. APPTYPE_INC_NOBLOCK,
  29. APPTYPE_INC_HARDBLOCK,
  30. APPTYPE_MINORPROBLEM,
  31. APPTYPE_REINSTALL,
  32. APPTYPE_VERSIONSUB,
  33. APPTYPE_SHIM
  34. } SEVERITY;
  35. typedef struct tagAPPHELP {
  36. BOOL bPresent;
  37. SEVERITY severity;
  38. DWORD htmlHelpId;
  39. } APPHELP, *PAPPHELP;
  40. typedef struct tagATTRIBUTE {
  41. struct tagATTRIBUTE* pNext;
  42. char* pszText;
  43. } ATTRIBUTE, *PATTRIBUTE;
  44. typedef struct tagMATCHINGFILE {
  45. struct tagMATCHINGFILE* pNext;
  46. char* pszName;
  47. PATTRIBUTE pFirstAttribute;
  48. } MATCHINGFILE, *PMATCHINGFILE;
  49. typedef struct tagDBENTRY {
  50. struct tagDBENTRY* pNext;
  51. char* pszExeName;
  52. char* pszAppName;
  53. char szGUID[48];
  54. PFIXLIST pFirstShim;
  55. PFIXLIST pFirstPatch;
  56. PFIXLIST pFirstLayer;
  57. PFIXLIST pFirstFlag;
  58. APPHELP appHelp;
  59. PMATCHINGFILE pFirstMatchingFile;
  60. int nMatchingFiles;
  61. BOOL bDisablePerUser;
  62. BOOL bDisablePerMachine;
  63. } DBENTRY, *PDBENTRY;
  64. void LogMsg(LPSTR pszFmt, ... );
  65. BOOL CenterWindow(HWND hWnd);
  66. PDBENTRY
  67. GetDatabaseEntries(
  68. void
  69. );
  70. void
  71. UpdateFixStatus(
  72. char* pszGUID,
  73. BOOL bPerUser,
  74. BOOL bPerMachine
  75. );
  76. #endif // _ACBROWSERWHISTLER_H