I've two parts in my project. One is a kernel mode driver written in C++ and the other is Windows application written in C#. I've raised an event from the C++ kernel mode driver and I need to handle that event from my C# application. If I was coding in C++ I could use the following function
DWORD WINAPI WaitForSingleObject(
__in HANDLE hHandle,
__in DWORD dwMilliseconds
);
Is there an alternative to this function in C# ?