Passwords.CheckLogin() - parameter problem

Passwords.CheckLogin() - parameter problem

Hi all
For user administration via VSTA I want to check a password entry in order to open a user edit dialog. I want to check if the password is correct, but not to login the entered user...
The online help tells a lot about the Passwords.CheckLogin() - function but only for VBA.
I want to use the function in VSTA and I don't know, which parameter Type I should use for
"ref Object vLevel"
The compiler alows no other data types than object but in the runtime, there is a Type-missmatch exception, if I use a variable of type "object".
How is this function to be used?
Thx Simsuniy

This is a migrated post! Originally posted on 23.09.2014 by user simsuniy. Please be aware that information can be outdated.