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.8 KiB

  1. #ifndef _QSHIMAPP_H
  2. #define _QSHIMAPP_H
  3. typedef enum {
  4. uSelect = 0,
  5. uDeselect,
  6. uReverse
  7. } SELECTION;
  8. #define ACCESS_READ 0x01
  9. #define ACCESS_WRITE 0x02
  10. #define BML_ADDTOLISTVIEW 0x00000001
  11. #define BML_DELFRLISTVIEW 0x00000002
  12. #define BML_GETFRLISTVIEW 0x00000004
  13. typedef struct tagModule {
  14. struct tagModule* pNext;
  15. TCHAR* pszName;
  16. BOOL fInclude;
  17. } MODULE, *PMODULE;
  18. typedef struct tagFIX {
  19. struct tagFIX* pNext;
  20. BOOL bLayer;
  21. BOOL bFlag;
  22. TCHAR* pszName;
  23. TCHAR* pszDesc;
  24. TCHAR* pszCmdLine;
  25. struct tagFIX** parrShim;
  26. struct tagModule* pModule;
  27. TCHAR** parrCmdLine;
  28. ULONGLONG ullFlagMask;
  29. } FIX, *PFIX;
  30. #define NUM_TABS 2
  31. typedef struct tag_DlgHdr {
  32. HWND hTab; // tab control
  33. HWND hDisplay[NUM_TABS]; // dialog box handles
  34. RECT rcDisplay; // display rectangle for each tab
  35. DLGTEMPLATE *pRes[NUM_TABS]; // DLGTEMPLATE structure
  36. DLGPROC pDlgProc[NUM_TABS];
  37. } DLGHDR, *PDLGHDR;
  38. #if DBG
  39. void LogMsgDbg(LPTSTR pszFmt, ...);
  40. #define LogMsg LogMsgDbg
  41. #else
  42. #define LogMsg
  43. #endif // DBG
  44. BOOL
  45. CenterWindow(
  46. HWND hWnd
  47. );
  48. void
  49. HandleModuleListNotification(
  50. HWND hdlg,
  51. LPARAM lParam
  52. );
  53. void
  54. DoFileSave(
  55. HWND hDlg
  56. );
  57. BOOL
  58. InstallSDB(
  59. TCHAR* pszFileName,
  60. BOOL fInstall
  61. );
  62. INT_PTR CALLBACK
  63. FixesTabDlgProc(
  64. HWND hdlg,
  65. UINT uMsg,
  66. WPARAM wParam,
  67. LPARAM lParam
  68. );
  69. INT_PTR CALLBACK
  70. LayersTabDlgProc(
  71. HWND hdlg,
  72. UINT uMsg,
  73. WPARAM wParam,
  74. LPARAM lParam
  75. );
  76. void
  77. ShowAvailableFixes(
  78. HWND hList
  79. );
  80. void
  81. HandleShimListNotification(
  82. HWND hdlg,
  83. LPARAM lParam
  84. );
  85. #endif // _QSHIMAPP_H