I have one exe which creates set of events.This event creation sometimes return error code 5 sometimes it is successful.
HANDLE event1 = CreateEvent(NULL, FALSE, FALSE,"Global\\event1");
if (NULL == event1)
{
DBG_TRACE_L1("Create event1 failed with an error code: "<< GetLastError());
}
HANDLE hEvent2= CreateEvent(NULL, FALSE, FALSE,"Global\\hEvent2");
if (NULL == hEvent2)
{
DBG_TRACE_L1("Create hEvent2 failed with an error code: "<< GetLastError());
}
HANDLE hEvent3= CreateEvent(NULL, FALSE, FALSE,"Global\\hEvent3");
if (NULL == hEvent3)
{
DBG_TRACE_L1("Create hEvent3 failed with an error code: "<< GetLastError());
}
when i try to open the event am getting error code 5
What I have tried:
I have one exe which creates set of events.This event creation sometimes return error code 5 sometimes it is successful.
HANDLE event1 = CreateEvent(NULL, FALSE, FALSE,"Global\\event1");
if (NULL == event1)
{
DBG_TRACE_L1("Create event1 failed with an error code: "<< GetLastError());
}
HANDLE hEvent2= CreateEvent(NULL, FALSE, FALSE,"Global\\hEvent2");
if (NULL == hEvent2)
{
DBG_TRACE_L1("Create hEvent2 failed with an error code: "<< GetLastError());
}
HANDLE hEvent3= CreateEvent(NULL, FALSE, FALSE,"Global\\hEvent3");
if (NULL == hEvent3)
{
DBG_TRACE_L1("Create hEvent3 failed with an error code: "<< GetLastError());
}
when i try to open the event am getting error code 5