Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IFsrmPropertyBag::GetFileStreamInterface method

Retrieves a file stream interface that you can use to access the contents of the file.

Syntax


HRESULT GetFileStreamInterface(
  [in]  FsrmFileStreamingMode          accessMode,
  [in]  FsrmFileStreamingInterfaceType interfaceType,
  [out] VARIANT                        **streamInterface
);

Parameters

accessMode [in]

One or more access modes. For possible values, see the FsrmFileStreamingMode enumeration.

interfaceType [in]

The type of streaming interface to use. For possible interface types, see the FsrmFileStreamingInterfaceType enumeration.

streamInterface [out]

A VARIANT that contains the streaming interface that you can use to access the contents of the file. The variant is of type VT_DISPATCH. Query the dispval member of the variant to get the specified streaming interface.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

E_ACCESSDENIED

The caller is not authorized for the specified level of access to the file. For more information, see the Remarks section.

 

Remarks

To ensure the caller can be authorized for access, it must be a module that has its IFsrmPipelineModuleDefinition::NeedsFileContent property set to TRUE. If the accessMode parameter is set to FsrmFileStreamingMode_Write, the caller must also be a storage module and have its IFsrmStorageModuleDefinition::UpdatesFileContent property set to TRUE.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmPipeline.h

DLL

SrmSvc.dll

IID

IID_IFsrmPropertyBag is defined as 774589d1-d300-4f7a-9a24-f7b766800250

See also

IFsrmPropertyBag

 

 

Show:
© 2015 Microsoft