Iasphelp::getIsTCPMonSupported method
The IsTCPMonSupported property enables an ASP Web page to determine if Microsoft's standard TCP/IP port monitor is being used with a printer.
Syntax
HRESULT get_IsTCPMonSupported(
[out] BOOL *pVal
);
Parameters
pVal [out]
Caller-supplied pointer to a location to receive TRUE if the TCP/IP port monitor is being used with the printer, or FALSE if it is not.
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::IsTCPMonSupported property can be queried.
Dim objPrinter, UseStdMon
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
UseStdMon = objPrinter.IsTCPMonSupported
Requirements
Target platform: Desktop