Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates wrt move to github

  • Loading branch information...
commit 2351598086e71b7a7ac910ac4a7aafa63ea544fb 1 parent a4133df
Garrett Serack fearthecowboy authored
27 .bzrignore
View
@@ -1,27 +0,0 @@
-coapp-trace.sdf
-coapp-trace.5.0.ReSharper.user
-coapp-trace.vcxproj.user
-ipch
-coapp-trace.suo
-*.tmh
-obj
-bin
-tmp
-*vc*proj*.filters
-coapp-trace.5.0.ReSharper.user
-coapp-trace.vcxproj.user
-trace.vcxproj.user
-src/resource.aps
-src/resource.aps
-src/RCa03572
-src/RCa04236
-src/RCa04712
-src/RCa05580
-src/RCa06140
-src/RCa07988
-src/RCb06140
-src/RDa04236
-src/RDa04712
-src/RDa05580
-*.user
-.old
6 .gitignore
View
@@ -0,0 +1,6 @@
+*.suo
+*.user
+*.sdf
+*.opensdf
+obj
+bin
2  Constants.cs
View
@@ -15,7 +15,7 @@ internal static class Constants {
public static readonly string CoAppTraceHost = Assembly.GetExecutingAssembly().Location;
public static readonly string DetouredDllName = Path.Combine( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location ) , Environment.Is64BitProcess ? "detoured-x64.dll" : "detoured-x86.dll");
public static readonly string DetoursDllName = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Environment.Is64BitProcess ? "detours-x64.dll" : "detours-x86.dll");
- public static readonly string CoAppTraceExeOpposite = Path.Combine( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location ) , Environment.Is64BitProcess ? "CoApp-Trace-x86.exe" : "CoApp-Trace-x64.exe");
+ public static readonly string CoAppTraceExeOpposite = Path.Combine( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location ) , Environment.Is64BitProcess ? "Trace-x86.exe" : "Trace-x64.exe");
public static int SizeOfStartupInformation = Environment.Is64BitProcess ? 104 :68;
public static int SizeOfProcessInformation = Environment.Is64BitProcess ? 24: 16;
}
6 Controller.cs
View
@@ -27,7 +27,7 @@ public class Controller
Usage:
------
-CoApp-Trace [options] <target>
+Trace [options] <target>
Options:
--------
@@ -253,8 +253,8 @@ public int Run(string[] args)
//
scribe.Write(_traceFile.format((int) pi.dwProcessId));
using (new ConsoleColors(ConsoleColor.White, ConsoleColor.Black)) {
- Console.WriteLine("COAPP-TRACE COMPLETE");
- Console.WriteLine("COAPP-TRACE File: {0} ", _traceFile.format((int) pi.dwProcessId).GetFullPath());
+ Console.WriteLine("TRACE COMPLETE");
+ Console.WriteLine("TRACE File: {0} ", _traceFile.format((int) pi.dwProcessId).GetFullPath());
}
}
36 Scribe.cs
View
@@ -72,8 +72,8 @@ public void DocumentFileOpen(int pid, string file, IntPtr handle,string currentD
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -98,8 +98,8 @@ public void DocumentFileDelete(int pid, string file, string currentDirectory)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -121,8 +121,8 @@ public void DocumentFileMove(int pid, string before, string after)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -145,8 +145,8 @@ public void DocumentFileRead(int pid, IntPtr handle)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -169,8 +169,8 @@ public void DocumentFileWrite(int pid, IntPtr handle)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -192,8 +192,8 @@ public void DocumentFileCopy(int pid, string source, string target)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -218,8 +218,8 @@ public void DocumentFileProbe(int pid, string file, string currentDirectory)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -241,8 +241,8 @@ public void DocumentEnvQuery(int pid, string varName)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]" + e.Message);
- Debug.Print(e.StackTrace.Replace(" at", "[CoApp-Trace] at"));
+ Debug.Print("[Trace]" + e.Message);
+ Debug.Print(e.StackTrace.Replace(" at", "[Trace] at"));
}
});
}
@@ -347,8 +347,8 @@ public State RetrieveState(int ticket)
}
catch (Exception e)
{
- Debug.Print("[CoApp-Trace]"+e.Message);
- Debug.Print(e.StackTrace.Replace(" at","[CoApp-Trace] at"));
+ Debug.Print("[Trace]"+e.Message);
+ Debug.Print(e.StackTrace.Replace(" at","[Trace] at"));
}
});
}
4 trace-x64.csproj
View
@@ -9,7 +9,7 @@
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CoApp.Trace.x64</RootNamespace>
- <AssemblyName>coapp-trace-x64</AssemblyName>
+ <AssemblyName>trace-x64</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
@@ -57,7 +57,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="$(SolutionDir)\..\coapp-solution\Source\AssemblyStrongName.cs" />
+ <Compile Include="$(SolutionDir)\..\solution\Source\AssemblyStrongName.cs" />
<Compile Include="TraceMain.cs" />
</ItemGroup>
<ItemGroup>
4 trace-x86.csproj
View
@@ -9,7 +9,7 @@
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CoApp.Trace.x86</RootNamespace>
- <AssemblyName>coapp-trace-x86</AssemblyName>
+ <AssemblyName>trace-x86</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
@@ -44,7 +44,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="$(SolutionDir)\..\coapp-solution\Source\AssemblyStrongName.cs" />
+ <Compile Include="$(SolutionDir)\..\solution\Source\AssemblyStrongName.cs" />
<Compile Include="TraceMain.cs" />
</ItemGroup>
<ItemGroup>
13 trace.csproj
View
@@ -9,7 +9,7 @@
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CoApp.Trace</RootNamespace>
- <AssemblyName>CoApp-Trace</AssemblyName>
+ <AssemblyName>Trace</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
@@ -39,7 +39,7 @@
<DefineConstants>TRACE;DEBUG</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
- <CodeAnalysisLogFile>..\output\x86\debug\bin\CoApp-Trace.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisLogFile>..\output\x86\debug\bin\Trace.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
@@ -54,7 +54,7 @@
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
- <CodeAnalysisLogFile>..\output\x86\release\bin\CoApp-Trace.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisLogFile>..\output\x86\release\bin\Trace.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
@@ -111,7 +111,7 @@
<Compile Include="DetourAttribute.cs" />
<Compile Include="ExternAttribute.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="$(SolutionDir)\..\coapp-solution\Source\AssemblyStrongName.cs" />
+ <Compile Include="$(SolutionDir)\..\solution\Source\AssemblyStrongName.cs" />
<Compile Include="TraceMain.cs" />
</ItemGroup>
<ItemGroup>
@@ -140,12 +140,15 @@
<Content Include="CoApp.ico" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\coapp-toolkit\CoApp.Toolkit.csproj">
+ <ProjectReference Include="..\toolkit\CoApp.Toolkit.csproj">
<Project>{8B7E0D2F-6CA0-4E5E-BF52-1E4BDB132BBC}</Project>
<Name>CoApp.Toolkit</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PreBuildEvent>copy /Y $(SolutionDir)ext\detours\$(ConfigurationName)\* $(TargetDir)</PreBuildEvent>
+ </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Please sign in to comment.
Something went wrong with that request. Please try again.