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.

94 lines
4.4 KiB

  1. #define TREEVIEW_HEIGHT 250
  2. #define TREEVIEW_WIDTH 205
  3. #define MARGIN 5
  4. #define INFOWINDOW_HEIGHT 70
  5. #define MAX_WINDOW_WIDTH 1000
  6. #define MAX_WINDOW_HEIGHT 1000
  7. #define NUMLANG 100
  8. #define NUM_ICONS 8
  9. #define PAGE_ERROR 2
  10. #define SAVE_ERROR 3
  11. #define SAVE_CANCEL 4
  12. #define IDM_RECENTFILELIST 100
  13. #define UM_SAVE_COMPLETE WM_USER + 101
  14. #define UM_INIT_TREEVIEW WM_USER + 102
  15. typedef struct _insdlg
  16. {
  17. LPTSTR DlgId;
  18. LPTSTR szName;
  19. DLGPROC dlgproc;
  20. HTREEITEM hItem;
  21. HRESULT (WINAPI *pfnFinalCopy)(LPCTSTR psczDestDir, DWORD dwFlags, LPDWORD pdwCabState);
  22. } INSDLG, *LPINSDLG;
  23. typedef HWND (WINAPI * CREATEINSDIALOG)(HWND, int, int, int, LPTSTR, LPTSTR);
  24. typedef LPINSDLG (WINAPI * GETINSDLGSTRUCT)(int *);
  25. typedef BOOL (WINAPI * DESTROYINSDIALOG)(HWND);
  26. typedef void (WINAPI * SETDEFAULTINF)(LPCTSTR);
  27. typedef void (WINAPI * REINITIALIZEINSDIALOGPROCS)();
  28. typedef void (WINAPI * SETPLATFORMINFO)(DWORD);
  29. typedef BOOL (WINAPI * INSDIRTY)();
  30. typedef void (WINAPI * CLEARINSDIRTYFLAG)();
  31. typedef BOOL (WINAPI * SAVEINSDIALOG)(HWND, BOOL);
  32. typedef BOOL (WINAPI * CHECKFOREXCHAR)(int);
  33. CREATEINSDIALOG CreateInsDialog;
  34. GETINSDLGSTRUCT GetInsDlgStruct;
  35. DESTROYINSDIALOG DestroyInsDialog;
  36. SETDEFAULTINF SetDefaultInf;
  37. REINITIALIZEINSDIALOGPROCS ReInitializeInsDialogProcs;
  38. SETPLATFORMINFO SetPlatformInfo;
  39. INSDIRTY InsDirty;
  40. CLEARINSDIRTYFLAG ClearInsDirtyFlag;
  41. SAVEINSDIALOG SaveInsDialog;
  42. CHECKFOREXCHAR CheckForExChar;
  43. extern "C" HRESULT WINAPI ExtractFiles( LPCSTR pszCabName, LPCSTR pszExpandDir, DWORD dwFlags,
  44. LPCSTR pszFileList, LPVOID lpReserved, DWORD dwReserved);
  45. BOOL IsPolicyTree(HTREEITEM hItem);
  46. void CreateCabWorkDirs(LPCTSTR szWorkDir);
  47. void DeleteCabWorkDirs();
  48. void ExtractCabFile();
  49. void PrepareFolderForCabbing(LPCTSTR pcszDestDir, DWORD dwFlags);
  50. BOOL CompressCabFile();
  51. void CabUpFolder(HWND hWnd, LPTSTR szFolderPath, LPTSTR szDestDir, LPTSTR szCabname, BOOL fSubDirs = FALSE);
  52. BOOL DirectoryName(LPCTSTR lpDirectory, LPTSTR szDirectoryPath);
  53. INT_PTR CALLBACK LanguageDialogProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
  54. VOID InitSysFont(HWND hDlg, INT iCtrlID);
  55. INT_PTR CALLBACK SaveAsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  56. LPTSTR GetCabName(LPCTSTR pcszInsFile, DWORD dwCabType, TCHAR szCabFullFileName[]);
  57. BOOL PathIsPathEmpty(LPCTSTR pcszPath);
  58. INT_PTR CALLBACK DisplaySaveDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
  59. void GetDefaultInf(DWORD dwPlatformId);
  60. void GetDefaultCabName(DWORD dwCabType, LPCTSTR pcszPrefix, LPTSTR pszCabName);
  61. BOOL Is8_3FileFormat(LPCTSTR pszFile);
  62. BOOL InitializePlatform(HWND hWnd, HWND hInfoWnd, WORD wPlatform);
  63. void CopyDir(LPCTSTR szSrcDir, LPCTSTR szDestDir);
  64. void IeakPageHelp(HWND hWnd, LPCTSTR pszData);
  65. void UpdateRecentFileListMenu(HWND hWnd, TCHAR pRecentFileList[5][MAX_PATH]);
  66. void ReadRecentFileList(TCHAR pRecentFileList[5][MAX_PATH]);
  67. void UpdateRecentFileList(LPCTSTR pcszFile, BOOL fAdd, TCHAR pRecentFileList[5][MAX_PATH]);
  68. void WriteRecentFileList(TCHAR pRecentFileList[5][MAX_PATH]);
  69. void DrawTrackLine(HWND hWnd, int nXPos);
  70. BOOL IsDirty();
  71. void ClearDirtyFlag();
  72. BOOL SaveCurrentSelItem(HWND hTreeView, DWORD dwFlags);
  73. void SetInfoWindowText(HWND hInfoWnd, LPCTSTR pcszStatusText = NULL);
  74. BOOL PlatformExists(HWND hWnd, LPTSTR pLang, DWORD dwPlatform, BOOL fShowError = FALSE);
  75. void GetLangDesc(LPTSTR szLangId, LPTSTR szLangDesc, int cchLangDescSize, LPDWORD dwLangId);
  76. BOOL EnoughDiskSpace(LPCTSTR szSrcFile, LPCTSTR szDestFile, LPDWORD pdwSpaceReq, LPDWORD pdwSpaceFree);
  77. DWORD GetCabBuildStatus();
  78. void GetCabNameFromINS(LPCTSTR pcszInsFile, DWORD dwCabType, LPTSTR pszCabFullFileName, LPTSTR pszCabInfoLine = NULL);
  79. BOOL CabFilesExist(HWND hWnd, LPCTSTR pcszInsFile);
  80. BOOL IsWin32INSFile(LPCTSTR pcszIns);
  81. // version.cpp stuff
  82. void IncrementDotVer(LPTSTR pszVerStr);
  83. void GenerateNewVersionStr(LPCTSTR pcszInsFile, LPTSTR pszNewVersionStr);
  84. void SetOrClearVersionInfo(LPCTSTR pcszInsFile, DWORD dwCabType, LPCTSTR pcszCabName,
  85. LPCTSTR pcszCabsURLPath, LPTSTR pszNewVersionStr, BOOL fSet);