3.2.4.1.3 ImportXMLFiles (Opnum 9)

The ImportXMLFiles method loads a specified WSRM configuration.

 [id(3), helpstring("method ImportXMLFiles")] HRESULT ImportXMLFiles(
   [in] BSTR bstrPMCXml,
   [in] BSTR bstrPolicyXml,
   [in] BSTR bstrCalendarXml,
   [in] BSTR bstrConditionalXml
 );

bstrPMCXml: A string that specifies the PMCs to be loaded by the server, in the form of a ProcessMatchingCriteriaCollection element (section 2.2.5.25). For an example, see ProcessMatchingCriteriaCollection example (section 4.2.21). This parameter is ignored if it is NULL.

bstrPolicyXml: A string that specifies resource policies to be loaded by the server, in the form of a PolicyCollection element (section 2.2.5.22). This parameter is ignored if it is NULL.

bstrCalendarXml: A string that specifies calendars to be loaded by the server, in the form of a CalendarsCollection element (section 2.2.5.11). For an example, see CalendarsCollection example (section 4.2.8). This parameter is ignored if it is NULL.

bstrConditionalXml: A string that specifies conditions to be loaded by the server, in the form of a ConditionalPolicy element (section 2.2.5.12). For an example, see section 4.2.9. This parameter is ignored if it is NULL.

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

0xC1FF0070

WRM_ERR_TAGS_NOT_IN_ORDER

The XML data that is maintained by the management service is invalid or cannot be processed.<27>

The ImportXMLFiles method can be used to manage system resources by importing a valid RAP.

Additional IResourceManager interface methods are specified in section 3.2.4.1.