Configuration\ETWSafeNativeMethods.cs (8)
109Tail.LoggerName = new char[SafeNativeMethods.MaxTraceLoggerNameLen];
110Tail.LogFileName = new char[SafeNativeMethods.MaxTraceFileNameLen];
117Array.Copy(loggerNameChars, 0, Tail.LoggerName, 0, loggerNameChars.Length);
121Array.Copy(loggerNameChars, 0, Tail.LoggerName, 0, SafeNativeMethods.MaxTraceLoggerNameLen - 1);
130Array.Copy(logFileNameChars, 0, Tail.LogFileName, 0, logFileNameChars.Length);
134Array.Copy(logFileNameChars, 0, Tail.LogFileName, 0, SafeNativeMethods.MaxTraceFileNameLen - 1);
139Head.LogFileNameOffset = (uint)(Marshal.SizeOf(this) - Tail.LogFileName.Length * sizeof(char));
140Head.LoggerNameOffset = (uint)(Head.LogFileNameOffset - Tail.LoggerName.Length * sizeof(char));