GetProperty method
Gets a specified property.
Syntax
HRESULT retVal = object.GetProperty(pszName, pvarProperty);
Parameters
pszName [in]
Type: LPCOLESTRThe property name.
pvarProperty [out]
Type: VARIANTReceives a pointer to the property.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.