![]() |
![]() |
![]() |
Retrieves an instance of the specified property.
Syntax
HRESULT GetProp(
LPCWSTR pwszPropName, VARIANT *pvarProp );
Parameters
- pwszPropName
- [in] Specifies the NULL-terminated name of the property.
- pvarProp
- Receives an instance of the property specified in pwszPropName. Check the method's return value and call VariantClear only if the method succeeds.
Return Value
Returns S_OK if successful. Otherwise, returns one of the error codes for VariantCopy or the following value:
E_INVALIDARG An invalid argument was passed to the returning function.