Windows Dev Center

IFsrmClassificationManager::CreateModuleDefinition method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMClassification class.]

Creates a module definition of the specified type.

Syntax


HRESULT CreateModuleDefinition(
  [in]  FsrmPipelineModuleType        moduleType,
  [out] IFsrmPipelineModuleDefinition **moduleDefinition
);

Parameters

moduleType [in]

The type of module to create (for example, a classifier or storage module). For possible types, see the FsrmPipelineModuleType enumeration.

moduleDefinition [out]

An IFsrmPipelineModuleDefinition interface to the new module definition. Query the IFsrmPipelineModuleDefinition interface to get the interface for the specified module. For example, if moduleType is FsrmPipelineModuleType_Classifier, query the IFsrmPipelineModuleDefinition interface for the IFsrmClassifierModuleDefinition interface.

To save the module definition, call IFsrmPipelineModuleDefinition::Commit method.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

 

Remarks

There is no limit to the number of modules that you can define.

In addition to defining the module with FSRM, you must also register the class with COM. This needs to be a registration of a COM class that implements IFsrmClassifierModuleImplementation or IFsrmStorageModuleImplementation, depending on the type of module.

FSRM provides the following built-in classifiers: the Folder Classifier and the Content Classifier. The Folder Classifier classifies files based on the folder in which they are stored. The Content Classifier classifies by searching for strings and regular expressions in the file using Windows text extraction methods.

FSRM provides the following three built-in storage modules:

  • System Cache Storage Module—stores properties in an NTFS Alternate Data Stream cache.
  • Office 97 - 2003 In-File Storage Module—stores properties within a Microsoft Office 97 - 2003 file.
  • Office 2007 In-File Storage Module—stores properties within a Microsoft Office 2007 file.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmPipeline.h (include FsrmPipeline.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmClassificationManager is defined as b15c0e47-c391-45b9-95c8-eb596c853f3a

IID

IID_IFsrmClassificationManager is defined as d2dc89da-ee91-48a0-85d8-cc72a56f7d04

IID_IFsrmClassificationManager2 is defined as 0004c1c9-127e-4765-ba07-6a3147bca112

See also

IFsrmClassificationManager2
IFsrmClassificationManager
IFsrmClassificationManager::EnumModuleDefinitions
IFsrmClassificationManager::GetModuleDefinition
IFsrmClassifierModuleDefinition
IFsrmPipelineModuleConnector::Bind
IFsrmStorageModuleDefinition
FsrmClassificationManager
MSFT_FSRMClassification

 

 

Show:
© 2015 Microsoft