internal CodeMarkerExStartEnd(int begin, int end, string stringData) : this( begin, end, CodeMarkers.StringToBytesZeroTerminated(stringData) ) { }
public bool InitPerformanceDll(int iApp, string strRegRoot, RegistryView registryView) { if (this.IsEnabled) { return(true); } if (!CodeMarkers.UseCodeMarkers(strRegRoot, registryView)) { this.state = CodeMarkers.State.DisabledViaRegistryCheck; return(false); } try { int num = (int)CodeMarkers.NativeMethods.AddAtom("VSCodeMarkersEnabled"); CodeMarkers.NativeMethods.DllInitPerf(iApp); this.state = CodeMarkers.State.Enabled; } catch (DllNotFoundException ex) { this.state = CodeMarkers.State.DisabledDueToDllImportException; return(false); } return(true); }