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.

41 lines
1.4 KiB

  1. #define IEAKDL_GETINTERFACE_FAILED 0x10
  2. #define IEAKDL_UPDATE_SUCCESSFUL 0x11
  3. #define IEAKDL_MEMALLOC_FAILED 0x12
  4. #define IEAKDL_CANCELLED 0x13
  5. #define IEAKDL_WRONG_VERSION 0x14
  6. // the REGVERSION structure
  7. typedef struct {
  8. WORD wMajor;
  9. WORD wMinor1;
  10. WORD wMinor2;
  11. WORD wBuild;
  12. } REGVERSION;
  13. // the UPDATEJOB structure
  14. typedef struct {
  15. LPSTR szFriendlyName;
  16. LPSTR szSectionName;
  17. } UPDATEJOB;
  18. // the UPDATECOMPONENTS structure
  19. typedef struct {
  20. UINT nSize; // = sizeof( UPDATECOMPONENTS )
  21. LPSTR szDestPath; // destination path
  22. LPSTR szSiteList; // URL for site list
  23. LPSTR szTitle; // Title for Download Servers box
  24. LPSTR szCifCab; // name of cab file containing .cif
  25. LPSTR szCifFile; // name of .cif file
  26. int nJobs; // number of jobs in pJobs
  27. UPDATEJOB *pJobs; // pointer to array of jobs
  28. } UPDATECOMPONENTS;
  29. //DWORD UpdateComponents( LPSTR, LPSTR, LPSTR, LPSTR, DWORD );
  30. DWORD UpdateComponents( UPDATECOMPONENTS * );
  31. INT_PTR CALLBACK DownloadSiteDlgProc( HWND, UINT, WPARAM, LPARAM );
  32. DWORD AddItemsToListBox( HWND, LPSTR );
  33. void CenterDialog( HWND );
  34. DWORD CreateJob( LPSTR, LPSTR, LPSTR, LPSTR, LPSTR, LPSTR );
  35. DWORD ExecuteJobs( LPSTR );