2013-09-19

I have created a windows service. Under which I am creating a event "test". I want to use the same event object to be set/reset by my application. But I do not seem to get the Handle of the event object through my app. But can see the Event being listed in the BaseNamed objects.

I think I need to do something with the security Attribute of the create Event.

I am creating this event in my service

CreateEvent(NULL,
TRUE,
FALSE,
TEXT("Test"))

and using OpenEvent in my application.

OpenEvent( EVENT_ALL_ACCESS,
TRUE,
TEXT("Test"))

Please suggest what changes I would need to make, for my app to get the handle.

Show more