IWSDScopeMatchingRule::MatchScopes method (wsddisco.h)

Is called to compare two scopes to determine if they match.

Syntax

HRESULT MatchScopes(
  [in]  LPCWSTR pszScope1,
  [in]  LPCWSTR pszScope2,
  [out] BOOL    *pfMatch
);

Parameters

[in] pszScope1

Pointer to the first scope matching rule.

[in] pszScope2

Pointer to the second scope matching rule.

[out] pfMatch

Set to TRUE if the scopes received via pszScope1 and pszScope2 match, FALSE otherwise.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.

Remarks

MatchScopes will be called on custom scope matching rules to determine whether or not the two scopes provided match. pfMatch should be assigned either TRUE or FALSE to indicate the match status.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsddisco.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDScopeMatchingRule