IWbemPath::GetScopeCount method

The IWbemPath::GetScopeCount method returns the number of scopes in the path.

Syntax


HRESULT GetScopeCount(
  [out] ULONG *puCount
);

Parameters

puCount [out]

Number of scopes in the path. When there is a scope it is basically the class or key portion of the path.

Return value

This method returns the following values.

S_OK

Method executed successfully.

WBEM_E_INVALID_PARAMETER

The puCount parameter is NULL.

WBEM_E_OUT_OF_MEMORY

Insufficient memory to perform this method.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath

 

 

Show: