Windows Dev Center

IWbemPath::IsRelativeOrChild method

The IWbemPath::IsRelativeOrChild method tests if the path, as already set in the parser, is relative to or a child of a particular computer and namespace.

Syntax


BOOL IsRelativeOrChild(
  [in] LPWSTR wszMachine,
  [in] LPWSTR wszNamespace,
  [inlong   lFlags
);

Parameters

wszMachine [in]

Name of the computer.

wszNamespace [in]

Namespace being tested.

lFlags [in]

Reserved. Must be 0 (zero).

Return value

This method returns a BOOL indicating whether the path is relative to the specified computer and namespace.

Return codeDescription
TRUE

Path is relative to the specified computer and namespace. The path is NULL, "." or matches the computer name.

FALSE

Path is not relative to the specified computer and namespace.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath
IWbemPathKeyList

 

 

Show:
© 2015 Microsoft