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.

42 lines
1.4 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: safearr.h
  6. //
  7. // Purpose: Safe array creation
  8. //
  9. //=======================================================================
  10. #ifndef _SAFEARR_H
  11. #define _SAFEARR_H
  12. #include "stdafx.h"
  13. #include "WUV3IS.h"
  14. #include <stdio.h>
  15. #define USEWUV3INCLUDES
  16. #include <wuv3.h>
  17. #undef USEWUV3INCLUDES
  18. #include <cstate.h>
  19. #include "progress.h"
  20. #include "history.h"
  21. #include "install.h"
  22. #include "locstr.h"
  23. void AddSafeArrayRecord(LPVARIANT rgElems, int record, int nRcrds, LPSTR szFmt, ...);
  24. void DeleteSafeArrayRecord(LPVARIANT rgElems, int record, int nRcrds, LPSTR szFmt);
  25. int GetItemReturnStatus(PINVENTORY_ITEM pItem);
  26. int CalcDownloadTime(int size, int downloadTime);
  27. BOOL FilterCatalogItem(PINVENTORY_ITEM pItem, long lFilters);
  28. HRESULT MakeReturnItemArray(PINVENTORY_ITEM pItem, VARIANT *pvaVariant);
  29. HRESULT MakeDependencyArray(Varray<DEPENDPUID>& vDepPuids, const int cDepPuids, VARIANT *pvaVariant);
  30. HRESULT MakeInstallMetricArray(PSELECTITEMINFO pSelInfo, int iSelItems, VARIANT *pvaVariant);
  31. HRESULT MakeEulaArray(PSELECTITEMINFO pInfo, int iTotalItems, VARIANT *pvaVariant);
  32. HRESULT MakeInstallStatusArray(PSELECTITEMINFO pInfo, int iTotalItems, VARIANT *pvaVariant);
  33. HRESULT MakeInstallHistoryArray(Varray<HISTORYSTRUCT>& History, int iTotalItems, VARIANT *pvaVariant);
  34. #endif // _SAFEARR_H