Monday, August 4, 2008

SdLogonUserInformation

I discovered a interesting tidbit today -- SdLogonUserInformation only works with one user. It has a single set of properties it uses to gather user information. If run this dialog more than once to get multiple users, the last set of credentials wins.

2 comments:

Anonymous said...

Hi there,
I just found your blog since you blogged about using the LogonInformation Dialog. I am having problems with it, because I can do what I want, it doesn't work here but instead always show errors like "The list is empty" or "Server not found" when I try to browse of enter any values.

Do you happen to know these issues?

Regards,
Chris.

Yevi said...

My first guess is network. The dialog uses the Windows API to retrieve the information from Active Directory Services. If you are trying to access domain systems and users, then the target system needs to be on the domain. The same applies if you are using a workgroup.