OpenEvent

[DllImport("coredll.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern IntPtr OpenEvent(
   uint dwDesiredAccess,
   bool bInheritHandle,
   string lpName
);

Microsoft documentation: Link

Last updated