Has anyone had any luck getting mutexes to work across users with Fast User
Switching active? We’ve created our mutex with the “Globals\MutexName”.
This works fine within the same user but if you have two users running
simultaneously, there is no sign that the mutex is working.
Any ideas or experiences with this?
Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
I don’t know the specific answer, but that strikes me as something that
ought to work. Can you get other named objects to work across users this
way? For example, can you create a named event and have one user’s
process wait on it while the other user’s process signals it?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@thermonicolet.com
Sent: Thursday, January 10, 2002 5:57 PM
To: NT Developers Interest List
Subject: [ntdev] WinXP Fast user switching & mutexes
Has anyone had any luck getting mutexes to work across users with Fast
User Switching active? We’ve created our mutex with the
“Globals\MutexName”. This works fine within the same user but if you
have two users running simultaneously, there is no sign that the mutex
is working.
Any ideas or experiences with this?
Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division
You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
What kind of problem are you seeing?
For example, does the initial CreateMutex()
in the first process succeed?
Does the second CreateMutex() / OpenMutex()
in the second process succeed?
If the answer to either of these questions
is no, what is the value of GetLastError()?
Perhaps it is a permissions problem? Does
the second user / process have permissions
to access the Mutex (they probably don’t
be default.)
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Thursday, January 10, 2002 15:57
Subject: [ntdev] WinXP Fast user switching & mutexes
> Has anyone had any luck getting mutexes to work across users with Fast
User
> Switching active? We’ve created our mutex with the “Globals\MutexName”.
> This works fine within the same user but if you have two users running
> simultaneously, there is no sign that the mutex is working.
>
> Any ideas or experiences with this?
>
> - Dennis
>
> —
> Dennis Merrill
> Embedded Systems Engineer
> Thermo Electron Corporation
> Spectroscopy Division
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@vandyke.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Both of the CreateMutex() calls succeed. The problem is that one user grabs
this mutex, then the users get switched and the second user does not see the
mutex as grabbed. Therefore it allows access to something that should not
be allowed access to.
We have not tried events yet but they should be the same, right?
Dennis Merrill
Embedded Systems Engineer
Thermo Electron Corporation
Spectroscopy Division
-----Original Message-----
From: Joseph Galbraith [mailto:xxxxx@vandyke.com]
Sent: Friday, January 11, 2002 9:49 AM
To: NT Developers Interest List
Subject: [ntdev] Re: WinXP Fast user switching & mutexes
What kind of problem are you seeing?
For example, does the initial CreateMutex()
in the first process succeed?
Does the second CreateMutex() / OpenMutex()
in the second process succeed?
If the answer to either of these questions
is no, what is the value of GetLastError()?
Perhaps it is a permissions problem? Does
the second user / process have permissions
to access the Mutex (they probably don’t
be default.)
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Thursday, January 10, 2002 15:57
Subject: [ntdev] WinXP Fast user switching & mutexes
> Has anyone had any luck getting mutexes to work across users with Fast
User
> Switching active? We’ve created our mutex with the “Globals\MutexName”.
> This works fine within the same user but if you have two users running
> simultaneously, there is no sign that the mutex is working.
>
> Any ideas or experiences with this?
>
> - Dennis
>
> —
> Dennis Merrill
> Embedded Systems Engineer
> Thermo Electron Corporation
> Spectroscopy Division
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@vandyke.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com