Iasphelp::get_ComputerName method

The ComputerName property enables an ASP Web page to obtain a print server's name.

Syntax

HRESULT get_ComputerName(
  [out] BSTR *pVal
);

Parameters

pVal [out]
Caller-supplied pointer to a location to receive a pointer to a computer name string.

Return value

This method can return one of these values.

Return code Description
S_OK The operation succeeded.
E_OUTOFMEMORY Out of memory.

VBScript Example

Dim objPrinter, CompName
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
CompName = objPrinter.ComputerName

Requirements

Target platform: Desktop