deviceSupports method
Checks whether the printer supports a specified feature.
Syntax
HRESULT retVal = object.deviceSupports(bstrProperty, pvar);
Parameters
- bstrProperty [in]
-
Type: BSTR
Required. String that indicates which property to query. This parameter can be set to one of the following three strings.
- pvar [out, retval]
-
Type: VARIANT
Pointer to a VARIANT value that receives the information requested.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
ITemplatePrinter2::deviceSupports was introduced in Microsoft Internet Explorer 6.
The type of information received by pvar depends on which property you query for, as indicated in the following table.
| copies | int value that indicates the number of copies the printer can make. |
| collate | BOOL value that indicates whether the printer supports collating. |
| duplex | BOOL value that indicates whether the printer supports duplex printing. |
Show: