Share

AcTcRefreshItem

C++

ACTC_PORT BOOL AcTcRefreshItem(
    AcTcCatalogItem** pItems, 
    int nNumItems, 
    DWORD dwItemTypes = -1, 
    DWORD dwRefreshFlag = kRefreshAll
);

File

AcTc.h

Description

This function refreshes each item in the pItems array to match the item's source. For an item to be refreshed, it must have source information, and refresh must not be currently disabled. If either of these conditions is not met, refresh fails.

To refresh items, this function connects to each item's source and downloads it. The source refers to a catalog item file in either the intranet or Internet. The source file can contain the item to be refreshed directly in the root or in another item. For example, if the item to be refreshed is a tool, the source URL may point directly to a tool file or a catalog file that contains the tool. It downloads the source URL and searches the downloaded item for the item to be refreshed using the item's ID. If the item is found, the function refreshes the item.

Returns nonzero if all items were refreshed successfully, or zero if refresh failed for one or more items.

Parameters

Parameters Description
pItems Input array of catalog items to be refreshed
nNumItems Input number of items in the pItems array
dwItemTypes Input item types to refresh
dwRefreshFlag Input one or more AcTc::RefreshOption flags

Was this information helpful?