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.

111 lines
2.1 KiB

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