3.2.4.5.1 GetConfig (Opnum 7)

The GetConfig method gets WSRM configuration information concerning accounting and notifications.

 [id(1), helpstring("method GetConfig")] HRESULT GetConfig(
   [out] BSTR* pbstrConfigInfo,
   [in] CONFIGTYPE enumConfigType
 );

pbstrConfigInfo: A pointer to a string that returns WSRM configuration information. The type of information is determined by the value of the enumConfigType parameter.

enumConfigType: A CONFIGTYPE enumeration (section 2.2.3.1) value that specifies the type of WSRM configuration information to get.

Obtaining calendar information is not supported. If this parameter is set to CONFIGTYPE_CALENDARING, ERROR_NOT_SUPPORTED SHOULD be returned.

Value

Meaning

CONFIGTYPE_ACCOUNTING

1

The WSRM configuration information is in the form of an AccountingConfigInfo element (section 2.2.5.2).

CONFIGTYPE_NOTIFICATION

2

The WSRM configuration information is in the form of a NotificationConfigInfo element (section 2.2.5.19).

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.

0x80070032

ERROR_NOT_SUPPORTED

The requested action is not supported.

Additional IWRMConfig interface methods are specified in section 3.2.4.5.