MCPcopy Create free account
hub / github.com/bwapi/bwapi / CreateUniqueEvent

Function CreateUniqueEvent

bwapi/BWAPI/Source/DLLMain.cpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214HANDLE CreateUniqueEvent()
215{
216 static char szEventName[32]; // The name of the event, unique for this process
217 sprintf(szEventName, "BWAPI #%u", GetCurrentProcessId());
218
219 HANDLE hEvent = CreateEventA(NULL, FALSE, FALSE, szEventName);
220 if (GetLastError() == ERROR_ALREADY_EXISTS) // There is a BWAPI module already injected
221 hEvent = nullptr;
222
223 return hEvent;
224}
225
226void SetDebug()
227{

Callers 1

DllMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected