ValidateAuthenType Method

Description

Checks whether Microsoft Office Project Server 2003 supports the specified authentication type using the Project Server security object.

Syntax

Function ValidateAuthenType( _
   ByVal fNTAccount As Long _
) As Long

Parameters

Parameter Description

fNTAccount

Required Long. Set to 1 to check for Microsoft Windows NT authentication. Set to 0 to check for Project Server authentication.

Return Value

The ValidateAuthenType method returns HRESULT as a Long (4-byte integer) value. A return value of 0 means the authentication type is supported.

Example

The following example is for Microsoft Visual Basic 6.0.

Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.ValidateAuthenType(1)
Set oSec = Nothing