I've got an multiple copies of an app running in multiple terminal sessions
In the user mode, I've created an event (CreateEvent, manual reset) and I
pass this off to a kernel driver. In the kernel, I do KeSetEvent, and then
KeClearEvent right away to clear it.

I am expecting that all the sessions , which I know are all waiting on the
event, would see the signal. This is not the case.
The signal is seen only by one session. And it does not matter which is the
active session, it is only seen by the last session that created the event .
Help?
--
Gak -
Finecats

Re: Multiple terminal sessions, events not seen by all. by Ivan

Ivan
Fri Oct 14 02:55:14 CDT 2005

If this is a named object, probably it should be created
in the "Global" object namespace.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"usfinecats" <usfinecats@nospam.nospam> wrote in message
news:0CC48D0C-ADE6-4F09-8DF5-087FF2AE610B@microsoft.com...
> I've got an multiple copies of an app running in multiple terminal
> sessions
> In the user mode, I've created an event (CreateEvent, manual reset) and I
> pass this off to a kernel driver. In the kernel, I do KeSetEvent, and
> then
> KeClearEvent right away to clear it.
>
> I am expecting that all the sessions , which I know are all waiting on the
> event, would see the signal. This is not the case.
> The signal is seen only by one session. And it does not matter which is
> the
> active session, it is only seen by the last session that created the event
> .
> Help?
> --
> Gak -
> Finecats



RE: Multiple terminal sessions, events not seen by all. by usfinecats

usfinecats
Fri Oct 14 11:54:01 CDT 2005


1st call goes through, and I create the event, 2nd process got back error
5, denied access. Here's how I created the event:

SECURITY_ATTRIBUTES SA;

SA.bInheritHandle = TRUE;
SA.lpSecurityDescriptor = NULL;
SA.nLength = sizeof(SECURITY_ATTRIBUTES);

Event.NewQueue = CreateEvent(
&SA, // lpEventAttributes
TRUE, // bManualReset
FALSE, // bInitialState
L"Global\\NewQueue"
);



I've also tried to simply open the event and got the same error

Event.NewQueuedFile = OpenEvent(NULL,FALSE,L"Global\\NewQueuedFile");



--
Gak -
Finecats


"usfinecats" wrote:

> I've got an multiple copies of an app running in multiple terminal sessions
> In the user mode, I've created an event (CreateEvent, manual reset) and I
> pass this off to a kernel driver. In the kernel, I do KeSetEvent, and then
> KeClearEvent right away to clear it.
>
> I am expecting that all the sessions , which I know are all waiting on the
> event, would see the signal. This is not the case.
> The signal is seen only by one session. And it does not matter which is the
> active session, it is only seen by the last session that created the event .
> Help?
> --
> Gak -
> Finecats