C language function:CreateEventEx sample codes

Search sample code in the internet.It is the result.

TITLE : Direct3D Initialization - DIRECT 3D FOUNDATIONS - Introduction to 3D Game Programming with DirectX 12 (Computer Science) (2016)
HANDLE eventHandle = CreateEventEx(nullptr, false, false, EVENT_ALL_ACCESS);.......

TITLE : Code Analysis produces warning C6387 for valid code - Developer Community
static void Foo() { const HANDLE eventHandle = CreateEventEx(nullptr, false, false, EVENT_ALL_ACCESS); if (Check(eventHandle)) // replacing this line with if (aHandle != nullptr) also produces the warning occasionally { WaitForSingleObject(eventHandle, INFINITE); CloseHandle(eventHandle); } }.......
search Google