IWbemPath::CreateClassPart method

The IWbemPath::CreateClassPart method initializes the class or key portion of the path. This method is used when creating a path from scratch.

Syntax


HRESULT CreateClassPart(
  [inlong    lFlags,
  [in] LPCWSTR pszName
);

Parameters

lFlags [in]

Reserved. Must be 0 (zero).

pszName [in]

Initial class name.

Return value

This method returns an HRESULT indicating the status of the method call.

S_OK

Method executed successfully.

WBEM_E_INVALID_PARAMETER

Indicates one of two conditions:

  • The lFlags parameter is not 0 (zero).
  • The pszName parameter is NULL.
WBEM_E_OUT_OF_MEMORY

Out of memory.

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: