Muokkaa

Jaa


Iasphelp::get_ShareName method

The ShareName property enables an ASP Web page to obtain the printer's shared name.

Syntax

HRESULT get_ShareName(
  [out] BSTR *pVal
);

Parameters

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

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::ShareName property can be queried.

Dim objPrinter, DrvrName
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
DrvrName = objPrinter.ShareName

Requirements

Target platform: Desktop

See also

Iasphelp::Open