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.

59 lines
1.8 KiB

  1. #ifndef __WIZARD_H
  2. #define __WIZARD_H
  3. #endif
  4. #define STAGE_ENTRY 0
  5. #define STAGE_LAYER1 1
  6. #define STAGE_FILEMATCH 2
  7. #define STAGE_SHIM1 3
  8. #define STAGE_SHIM2 4
  9. #define STAGE_SHIM3 5
  10. #define STAGE_APPNAME 6
  11. #define STAGE_DONE 7
  12. #define STAGE_FINISH 8
  13. #define STAGE_CANCEL -1
  14. #define MAX_AUTO_MATCH 7
  15. enum {
  16. TYPE_LAYER=0,
  17. TYPE_SHIM,
  18. TYPE_APPHELP,
  19. TYPE_FORCEDWORD=0xFFFFFFFF
  20. };
  21. class CShimWizard {
  22. public:
  23. HWND m_hDlg;
  24. UINT m_uType;
  25. DBRECORD m_Record;
  26. CSTRING m_szLongName;
  27. BOOL m_bManualMatch;
  28. public:
  29. void STDCALL WipeRecord(BOOL bMatching, BOOL bShims, BOOL bLayers, BOOL bAppHelp = FALSE);
  30. void STDCALL GrabMatchingInfo(void);
  31. void STDCALL GetFileAttributes(PMATCHENTRY pNew);
  32. void STDCALL AddMatchFile(PPMATCHENTRY, CSTRING & szFile);
  33. void STDCALL WalkDirectory(PMATCHENTRY * ppHead, LPCTSTR szDirectory, int nDepth);
  34. CSTRING STDCALL ShortFile(CSTRING &);
  35. BOOL STDCALL InsertMatchingInfo(PMATCHENTRY pNew);
  36. //CSTRING STDCALL RelativePath(void);
  37. BOOL STDCALL BeginWizard(HWND hParent);
  38. };
  39. BOOL CALLBACK EntryPoint(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  40. BOOL CALLBACK GetAppName(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  41. BOOL CALLBACK SelectLayer(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  42. BOOL CALLBACK SelectMatching(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  43. BOOL CALLBACK SelectShims(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  44. BOOL CALLBACK SelectFiles(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  45. BOOL CALLBACK WizardDone(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  46. INT_PTR CALLBACK EditCmdLineDlgProc(HWND hdlg,UINT uMsg,WPARAM wParam,LPARAM lParam);