Iasphelp::get_SNMPDevice method
The SNMPDevice property enables an ASP Web page to obtain a printer's SNMP device index (as defined by RFC 1759).
Syntax
HRESULT get_SNMPDevice(
[out] DWORD *pVal
);
Parameters
pVal [out]
Caller-supplied location to receive a numeric value representing the printer's SNMP device index.
Return value
Win32 error codes can also be returned.
Return code | Description |
---|---|
S_OK | The operation succeeded. |
E_HANDLE | The Iasphelp::Open method has not been called. |
E_OUTOFMEMORY | Out of memory. |
VBScript Example
The Iasphelp::Open method must be called before the Iasphelp::SNMPDevice property can be queried.
Dim objPrinter, SNMPDeviceIndex
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
SNMPDeviceIndex = objPrinter.SNMPDevice
Requirements
Target platform: Desktop