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.

130 lines
5.0 KiB

  1. //***************************************************************************
  2. //* Copyright (c) Microsoft Corporation 1995. All rights reserved. *
  3. //***************************************************************************
  4. //* *
  5. //* PAGEFCNS.H - *
  6. //* *
  7. //***************************************************************************
  8. //***************************************************************************
  9. //* DEFINES *
  10. //***************************************************************************
  11. #define IDD_BACK 0x3023 // From commctrl defines...
  12. #define IDD_NEXT 0x3024 // From commctrl defines...
  13. #define MAX_TITLE 128 // Max size of Title
  14. #define MAX_PROMPT 512 // Max size of prompt
  15. #define MAX_CUSTOM 512 // Max size of Custom command
  16. #define MAX_FINISHMSG 512 // Max size of Finished message
  17. /*
  18. #define _SORT_DESCENDING 1 // 0001
  19. #define _SORT_ASCENDING 2 // 0010
  20. #define _SORT_ORDER 3 // 0011
  21. #define _SORT_FILENAME 4 // 0100
  22. #define _SORT_PATH 8 // 1000
  23. */
  24. //***************************************************************************
  25. //* TYPE DEFINITIONS *
  26. //***************************************************************************
  27. // This structure holds the list of files that are in the List View
  28. // Control.
  29. typedef struct _MyItem {
  30. LPSTR aszCols[2]; // Filename and Path
  31. FILETIME ftLastModify;
  32. struct _MyItem *Next;
  33. } MYITEM, *PMYITEM;
  34. // This structure (generally) holds all the information that will be
  35. // saved in the CABPack Directive File.
  36. typedef struct _CDF {
  37. TCHAR achFilename[MAX_PATH];
  38. BOOL fSave;
  39. TCHAR achTitle[MAX_TITLE];
  40. BOOL fPrompt;
  41. TCHAR achPrompt[MAX_PROMPT];
  42. BOOL fLicense;
  43. TCHAR achLicense[MAX_PATH];
  44. TCHAR achTarget[MAX_PATH];
  45. BYTE bShowWindow;
  46. BOOL fFinishMsg;
  47. TCHAR achFinishMsg[MAX_FINISHMSG];
  48. TCHAR achTargetPath[MAX_PATH];
  49. TCHAR achTargetBase[MAX_PATH];
  50. TCHAR achDDF[MAX_PATH];
  51. TCHAR achCAB[MAX_PATH];
  52. TCHAR achCABPath[MAX_PATH];
  53. TCHAR achINF[MAX_PATH];
  54. TCHAR achRPT[MAX_PATH];
  55. BOOL fCustom;
  56. TCHAR achSelectCmd[MAX_PATH];
  57. TCHAR achCustomCmd[MAX_CUSTOM];
  58. LPTSTR szCAB;
  59. FILETIME ftCABMake;
  60. FILETIME ftFileListChange;
  61. // WORD wSortOrder;
  62. PMYITEM pTop;
  63. } CDF, *PCDF;
  64. //***************************************************************************
  65. //* GLOBAL CONSTANTS *
  66. //***************************************************************************
  67. static TCHAR achExtEXE[] = ".EXE";
  68. static TCHAR achExtBAT[] = ".BAT";
  69. static TCHAR achExtCOM[] = ".COM";
  70. static TCHAR achExtINF[] = ".INF";
  71. //***************************************************************************
  72. //* FUNCTION PROTOTYPES *
  73. //***************************************************************************
  74. BOOL WelcomeInit( HWND, BOOL );
  75. BOOL WelcomeCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  76. BOOL WelcomeOK( HWND, BOOL, UINT *, BOOL * );
  77. BOOL ModifyInit( HWND, BOOL );
  78. BOOL ModifyOK( HWND, BOOL, UINT *, BOOL * );
  79. BOOL TitleInit( HWND, BOOL );
  80. BOOL TitleOK( HWND, BOOL, UINT *, BOOL * );
  81. BOOL PromptInit( HWND, BOOL );
  82. BOOL PromptCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  83. BOOL PromptOK( HWND, BOOL, UINT *, BOOL * );
  84. BOOL LicenseTxtInit( HWND, BOOL );
  85. BOOL LicenseTxtCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  86. BOOL LicenseTxtOK( HWND, BOOL, UINT *, BOOL * );
  87. BOOL FilesInit( HWND, BOOL );
  88. BOOL FilesCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  89. BOOL FilesNotify( HWND, WPARAM, LPARAM );
  90. BOOL FilesOK( HWND, BOOL, UINT *, BOOL * );
  91. BOOL CommandInit( HWND, BOOL );
  92. BOOL CommandCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  93. BOOL CommandOK( HWND, BOOL, UINT *, BOOL * );
  94. BOOL ShowWindowInit( HWND, BOOL );
  95. BOOL ShowWindowOK( HWND, BOOL, UINT *, BOOL * );
  96. BOOL FinishMsgInit( HWND, BOOL );
  97. BOOL FinishMsgCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  98. BOOL FinishMsgOK( HWND, BOOL, UINT *, BOOL * );
  99. BOOL TargetInit( HWND, BOOL );
  100. BOOL TargetCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  101. BOOL TargetOK( HWND, BOOL, UINT *, BOOL * );
  102. BOOL SaveInit( HWND, BOOL );
  103. BOOL SaveCmd( HWND, UINT, BOOL *, UINT *, BOOL * );
  104. BOOL SaveOK( HWND, BOOL, UINT *, BOOL * );
  105. BOOL CreateInit( HWND, BOOL );
  106. BOOL CreateOK( HWND, BOOL, UINT *, BOOL * );