Hello,
I think there is no
equivalent library in C#.NET and you need to directly call this win32 API in C#.NET using pInvoke calls..
See some interesting discussions
below..
http://www.codeproject.com/Messages/1889585/WaitForSingleObject-equivalent-in-
Csharp.aspx
http://www.pinvoke.net/default.aspx/kernel32.waitforsingleobject
Also see the thread below..
http://msdn.microsoft.com/en-
us/library/ms173179%28v=vs.80%29.aspx
In principle it should do the same function as WaitforSingleObject, but dont know whether we can trap the same event
message coming form the Driver as the method which this C#.NET wrapper library is expecting might be a different win32 API..
Tom
Adding to Borjas point , you can use
C++/CLI to get the best out of Unmanaged as well as Managed code. For example you can use WaitForSingleObject Unmanaged API as well as .NET managed library if you use
Managed C++ without much difficulty with marshaller etc ..
Tom