IFsrmQuotaTemplateManager::CreateTemplate method

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

Creates a quota template object.

Syntax


HRESULT CreateTemplate(
  [out]  IFsrmQuotaTemplate **quotaTemplate
);

Parameters

quotaTemplate [out]

An IFsrmQuotaTemplate interface to the newly create template. To add the template to FSRM, call IFsrmQuotaTemplate::Commit method.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

E_INVALIDARG

The quotaTemplate parameter is NULL.

 

Examples

For an example, see Using Templates to Define Quotas.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h (include FsrmQuota.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmQuotaTemplateManager is defined as 97d3d443-251c-4337-81e7-b32e8f4ee65e

IID

IID_IFsrmQuotaTemplateManager is defined as 4173ac41-172d-4d52-963c-fdc7e415f717

See also

IFsrmQuotaTemplateManager
FsrmQuotaTemplateManager
MSFT_FSRMQuota

 

 

Show:
© 2014 Microsoft