I am able to launch my desktop 32 bit application in Windows 10, Windows Server 2012 R, 2016. But I am not able to launch the same application when I deploy into Windows server 2019. When I debugged my application I can see WaitForMultipleObjects is going for infinite, which resulted not launching client application. Find the below code snippet for your reference. Can you please suggest me.
hWait = CreateEvent( NULL, TRUE, FALSE, NULL );
hWait = pApp->m_hThread;
DWORD waitForObjects = WaitForMultipleObjects( 2, hWait, FALSE, INFINITE );
Note Using VS 2019 IDE and .NET framework 4.8