Sets or restores the data set's archived status and other attributes.
#include <smstsapi.h> CCODE NWSMTSSetArchiveStatus ( UINT32 connection, UINT32 dataSetHandle, UINT32 setFlag, UINT32 archivedDateAndTime);
(IN) Specifies the connection information returned by NWSMTSConnectToTargetService or NWSMTSConnectToTargetServicEx.
(IN) Specifies the data set handle returned by NWSMTSOpenDataSetForBackup.
(IN) Specifies the archive information to set.
(IN) Specifies the information to set as the data set's archived date and time.
See Section 9.3, Target Service Return Values for more information.
The following table lists the return values associated with the function.
Before NWSMTSSetArchiveStatus is called, the data set must be open.
NWSMTSSetArchiveStatus should be called before closing the data set.
Check if the resource supports archive attributes using NWSMTSGetUnsupportedOptions and NWSMTSGetTargetResourceInfoEx before invoking the API.
NOTE:Calling NWSMTSOpenDataSetForBackup or NWSMTSReadDataSet does not alter the access date and time.
setFlag can be set to zero or to one of the flags listed in the following table.
archivedDateAndTime is a DOS packed date and time value (see "DOS Date and Time Functions" in Storage Management Services Utilities Library).