3.2.4.5.6 SetExclusionList (Opnum 12)

The SetExclusionList method updates the contents of the exclusion list which is of type USER_EXCLUSION_LIST.

 [id(6), helpstring("method SetExclusionList")] HRESULT SetExclusionList(
   [in] BSTR bstrExclusionList
 );

bstrExclusionList: A string that specifies a list of processes, in the form of an ExclusionList element (section 2.2.5.16). For an example, see (section 4.2.13).

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.

0xC1FF006B

WRM_ERR_TOO_LONG_PROCESS_NAME

The exclusion list could not be returned because the number of characters in a process name has exceeded an implementation-defined limit.<81>.

0xC1FF006C

WRM_ERR_EXCLUSION_LIST_LIMIT_EXCEEDED

The exclusion list could not be returned because the number of processes that can be excluded has exceeded an implementation-defined limit.<82>

Additional IWRMConfig interface methods are specified in section 3.2.4.5.