/// <summary>
 ///     Must be called to initialize anti-managed profiler code. This method should only
 ///     be called once per process. I.e., don't call it from every loaded .NET DLL.
 /// </summary>
 /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
 private static bool InitializeAntiProfiler()
 {
     profilerDetector = CreateProfilerDetector();
     return(profilerDetector.Init());
 }
Esempio n. 2
0
		/// <summary>
		///     Must be called to initialize anti-managed profiler code. This method should only
		///     be called once per process. I.e., don't call it from every loaded .NET DLL.
		/// </summary>
		/// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
		private static bool InitializeAntiProfiler() {
			profilerDetector = CreateProfilerDetector();
			return profilerDetector.Init();
		}