IWbemObjectAccess::GetPropertyInfoByHandle method

The GetPropertyInfoByHandle method returns the name and data type of the property that is associated with a property handle.

Syntax


HRESULT GetPropertyInfoByHandle(
  [in]  long    lHandle,
  [out] BSTR    *pstrName,
  [out] CIMTYPE *pType
);

Parameters

lHandle [in]

Integer that contains the handle identifying the property.

pstrName [out]

Pointer to a string used to return the name of the specified property.

pType [out]

Pointer to a CIMTYPE used to return the type of the property.

Return value

This method returns an HRESULT indicating the status of the method call. The following list lists the value contained withinan HRESULT.

WBEM_S_NO_ERROR

The method was successful.

WBEM_E_INVALID_PARAMETER

A specified parameter is not valid.

WBEM_E_NOT_FOUND

Handle was not found.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Esscli.dll;
Fastprox.dll;
Wbemess.dll

See also

IWbemObjectAccess

 

 

Show: