Re: Different profiles on the same PC?
From: Dan Mitchell (djmitchella_at_yahoo.com)
Date: 01/10/05
- Next message: Bill Billmire: "Re: OLK2K3: Programmatically setting checkboxes in printout to tem"
- Previous message: Michael Bauer: "Re: Tasks and Calendar"
- In reply to: Bingo: "Re: Different profiles on the same PC?"
- Next in thread: Bingo: "Re: Different profiles on the same PC?"
- Reply: Bingo: "Re: Different profiles on the same PC?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 Jan 2005 13:35:57 -0800
"Bingo" <anonymous@discussions.microsoft.com> wrote in news:1bcc01c4f73c
$f8b9a170$a401280a@phx.gbl:
> One quick follow-up. I modified your code to test with
> two others' profiles. I logged on the network as
> myself. When the first session logon is called, a dialog
> box pops up asking asking for the uid and password. Once
> the logon is verified, the second session logon does not
> pop up the dialog. I use two different profiles. Why
> does this happen? Thanks.
Ah, this stuff is only easy as long as all the mailboxes you're trying
to log in to are accessible to the currently logged in user. When that
changes, things get complicated..
I don't quite know why you're getting the login dialog, I don't see
that in my environment so there's something different in your setup, but
what's going on is that when you log in, that thread of execution is now
going to be authenticated as the person you first logged in as.
When you try and log in as the second person from the same thread,
there's two things that can happen -- either it can keep the thread
running as the first user you entered userid/pw for, in which case the
second person won't work -- or it could ask you to re-authenticate as
the second person, which would break the first person's login.
It looks like it's the former that's happening. There's no way around
this -- you can use the LogonUser/ImpersonateLoggedOnUser APIs to change
the login identity of a thread from code, but each thread can only be
one person at once.
I don't know how you'd do multiple threads in VB, sorry, you'd be
better off asking in one of the VB newsgroups for that (and I don't know
if the VB runtime will work nicely for that sort of thing, either, I
only know the basics there).
Alternative 2: you could run multiple instances of your app, one for
each person you need to be logged in as. Possibly the easiest solution.
Alternative 3: log in as some sort of administrator who can open
everyone's mailbox. Maybe easy, maybe not, depends on if you have the
power to do that sort of thing yourself. Where I work, I sure don't..
-- dan
- Next message: Bill Billmire: "Re: OLK2K3: Programmatically setting checkboxes in printout to tem"
- Previous message: Michael Bauer: "Re: Tasks and Calendar"
- In reply to: Bingo: "Re: Different profiles on the same PC?"
- Next in thread: Bingo: "Re: Different profiles on the same PC?"
- Reply: Bingo: "Re: Different profiles on the same PC?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|