IFsrmReportManager::SetOutputDirectory method

Sets the local directory path where reports are stored.

Syntax


HRESULT SetOutputDirectory(
  [in]  FsrmReportGenerationContext context,
  [in]  BSTR path
);

Parameters

context [in]

The report context (for example, if the report is scheduled or runs on demand). For possible values, see the FsrmReportGenerationContext enumeration.

path [in]

The full path to the local directory where the reports are stored. The path can contain environment variables. The path is limited to 150 characters.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

E_INVALIDARG

Returned for the following reasons:

  • The path parameter is NULL or the value is too long.
  • The context is not valid.

 

Remarks

The reports are stored in the following folders under the given path.

ContextFolder
FsrmReportGenerationContext_ScheduledReportScheduled
FsrmReportGenerationContext_InteractiveReportInteractive
FsrmReportGenerationContext_IncidentReportIncident

 

For example, if path is set to "C:\StorageReports" and context is set to FsrmReportGenerationContext_ScheduledReport, the path for the scheduled reports would be "C:\StorageReports\Scheduled".

The default output directories are:

  • "%systemdrive%\StorageReports\Scheduled"
  • "%systemdrive%\StorageReports\Incident"
  • "%systemdrive%\StorageReports\Interactive"

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmReports.h (include FsrmReports.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmReportManager is defined as 0058ef37-aa66-4c48-bd5b-2fce432ab0c8

IID

IID_IFsrmReportManager is defined as 27b899fe-6ffa-4481-a184-d3daade8a02b

See also

IFsrmReportManager
FsrmReportManager

 

 

Show:
© 2014 Microsoft