Пример #1
0
        /// <summary>
        /// Write an empty event.
        /// </summary>
        public void Write()
        {
            EVENT_DESCRIPTOR desc = new EVENT_DESCRIPTOR()
            {
                Id    = 1,
                Level = 4
            };

            Win32NativeMethods.EventWrite(_handle, ref desc, 0, null).ToNtException();
        }
 internal static extern Win32Error EventWrite(
     long RegHandle,
     ref EVENT_DESCRIPTOR EventDescriptor,
     int UserDataCount,
     EVENT_DATA_DESCRIPTOR[] UserData
     );