示例#1
0
 public void InitPerformanceDll(CodeMarkerApp iApp, string strRegRoot)
 {
     this.fUseCodeMarkers = false;
     if (UseCodeMarkers(strRegRoot))
     {
         try
         {
             NativeMethods.AddAtom("VSCodeMarkersEnabled");
             NativeMethods.DllInitPerf((int)iApp);
             this.fUseCodeMarkers = true;
         }
         catch (DllNotFoundException)
         {
         }
     }
 }
 public void InitPerformanceDll(CodeMarkerApp iApp, string strRegRoot)
 {
     this.fUseCodeMarkers = false;
     if (UseCodeMarkers(strRegRoot))
     {
         try
         {
             NativeMethods.AddAtom("VSCodeMarkersEnabled");
             NativeMethods.DllInitPerf((int) iApp);
             this.fUseCodeMarkers = true;
         }
         catch (DllNotFoundException)
         {
         }
     }
 }
示例#3
0
 public void UninitializePerformanceDLL(CodeMarkerApp iApp)
 {
     if (this.fUseCodeMarkers)
     {
         this.fUseCodeMarkers = false;
         ushort atom = NativeMethods.FindAtom("VSCodeMarkersEnabled");
         if (atom != 0)
         {
             NativeMethods.DeleteAtom(atom);
         }
         try
         {
             NativeMethods.DllUnInitPerf((int)iApp);
         }
         catch (DllNotFoundException)
         {
         }
     }
 }
 public void UninitializePerformanceDLL(CodeMarkerApp iApp)
 {
     if (this.fUseCodeMarkers)
     {
         this.fUseCodeMarkers = false;
         ushort atom = NativeMethods.FindAtom("VSCodeMarkersEnabled");
         if (atom != 0)
         {
             NativeMethods.DeleteAtom(atom);
         }
         try
         {
             NativeMethods.DllUnInitPerf((int) iApp);
         }
         catch (DllNotFoundException)
         {
         }
     }
 }