Creating Win32 events from c#

前端 未结 2 1531
甜味超标
甜味超标 2021-02-13 20:10

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 t

2条回答
  •  一向
    一向 (楼主)
    2021-02-13 20:49

    Take a look at the EventWaitHandle class. It's supported from .Net 2.0 onwards and allows creation of named events. It also supports setting event security, depending on which constructor you use.

提交回复
热议问题