HANDLE hEvent; hEvent= ::CreateEvent(NULL, FALSE, FALSE, _T("MyEvent")); if (::GetLastError() != ERROR_ALREADY_EXISTS) { ....... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)