NotesRegistration.GetUserInfo COM

Hi all,

i want to retrieve Users Mail file and mail server info and i was able to achieve it in domino client Designer using GetUserInfo of NotesRegistration class but am not successful using it in COM… am i missing something?

Sample Code:

Private Sub Command1_Click()

Dim session As New NotesSession

Dim NotesReg As NotesRegistration

Dim mailserver As String

Dim mailfile As String

Dim maildomain As String

Dim mailsystem As Long

Dim profile As String

session.Initialize

Set NotesReg = session.CreateRegistration

NotesReg.RegistrationServer = “devserv”

Call NotesReg.GetUserInfo(“Jordz Lim”, mailserver, mailfile, maildomain, mailsystem, profile)

End Sub

Add Note: Using vb6

Also, an error “User Name not found in Domino Directory” will display which is inconsistent when using domino designer.

Thanks in advance.