Windows Media Services SDK banner art
PreviousNext

Connect Method

Makes a connection to a server running Windows Media Services.

Syntax

NSChannelMgr.Connect( [Machine] )

Parameters

Machine

A String value specifying the computer name for the connection.

Return Values

Returns an ActiveX HRESULT error code.

Example

On Error Resume Next
NSChannelMgr1.Connect "LocalHost"
If Err.Number = 0 then
  MsgBox ("Connected to LocalHost.")
Else
  MsgBox ("Connection failed: " & Err.Description & “.”)
End If
PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.