IUPnPDevice::get_ModelNumber method (upnp.h)
The ModelNumber property specifies a human-readable form of the model number of the device.
Syntax
HRESULT get_ModelNumber(
[out] BSTR *pbstr
);
Parameters
[out] pbstr
Receives a reference to a string that contains the model number. Release this string with SysFreeString when it is no longer required. If the device does not specify a model number, this parameter is set to NULL.
Return value
For C++: If this property's "get" method succeeds, the return value is S_OK. If the device does not specify a model number, the return value is S_FALSE and pbstr is NULL. Otherwise, the method returns one of the COM error codes defined in WinError.h.
Remarks
This property is optional and pbstr can return NULL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | upnp.h |
DLL | Upnp.dll |