Creating Win32 events from c#
问题 I'd like create a kernel(aka named events) from C#. Do I have to interop services and wrap the native CreateEvent function or is there already a .NET class that does the job? The function that I need to run should be something like this: hEvent = CreateEvent ( NULL , false , false , "MyCSHARPEvent" ); This should notify all procs that probing forMyCSHARPEvent about the event. If there is a need to wrap the function, how would I translate the SECURITY_ATTRIBUTES struct from C# to win32? 回答1: