<div class="content" name="GetOutputDirectory" uuid="f41b323d-9c8b-4336-b481-dcc2a44d6c97"><p>The GetOutputDirectory method returns the output directory
where storage reports generated with the specified context will be stored.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_REPORT_MANAGER | 0x04)] HRESULT GetOutputDirectory(
   [in] FsrmReportGenerationContext context,
   [out, retval] BSTR* path
 );
</pre></div>
</dd></dl><p><b>context: </b>Contains the value from the <a href="4477f327-f8b1-46c8-b8fa-8d96eeabe421" data-linktype="relative-path">FsrmReportGenerationContext (section 2.2.1.2.15)</a>
enumeration of the context to get.</p><p><b>path: </b>Pointer to a variable that upon
completion contains the output directory where storage <b>reports</b> generated
with the specified context will be stored.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>This code is returned for the following reasons:  The context parameter is not a valid FsrmReportGenerationContext (section 2.2.1.2.15) value.  The path parameter is NULL.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>context</i> is a valid
FsrmReportGenerationContext (section 2.2.1.2.15) value. If the
context is <b>FsrmReportGenerationContext_Undefined</b>, the parameter MUST be
considered an invalid value.</p>
</li><li><p><span><span> 
</span></span>Verify that <i>path</i> is not NULL.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>Upon successful validation of parameters, the server MUST
perform one of the following actions:</p><ul><li><p><span><span> 
</span></span>If the <i>context</i> parameter is equal to
FsrmReportGenerationContext_ScheduledReport then the server MUST set <i>path</i>
to the <b>scheduled output directory</b>.</p>
</li><li><p><span><span> 
</span></span>If the <i>context</i> parameter is equal to
FsrmReportGenerationContext_InteractiveReport then the server MUST set <i>path</i>
to the <b>interactive output directory</b>.</p>
</li><li><p><span><span> 
</span></span>If the <i>context</i> parameter is equal to
FsrmReportGenerationContext_IncidentReport then the server MUST set <i>path</i>
to the <b>incident output directory</b>.</p>
</li></ul></div>