Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Memory Management » Downloads
 
Add your own
alternative version

How to write a Memory Scanner using C#

, 23 Sep 2006 CPOL
Search a process' memory to find specified 16, 32 or 64 bit data values.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{D46EDECD-F63D-419B-AC4D-0C418CF52F86}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>MemoryScanner</RootNamespace>
    <AssemblyName>MemoryScanner</AssemblyName>
    <ApplicationIcon>Hat.ico</ApplicationIcon>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="FreezeValues.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="FreezeValues.Designer.cs">
      <DependentUpon>FreezeValues.cs</DependentUpon>
    </Compile>
    <Compile Include="FreezeWindow.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="FreezeWindow.Designer.cs">
      <DependentUpon>FreezeWindow.cs</DependentUpon>
    </Compile>
    <Compile Include="MemoryScanner.cs" />
    <Compile Include="ProcessWindow.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="ProcessWindow.Designer.cs">
      <DependentUpon>ProcessWindow.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="FreezeValues.resx">
      <SubType>Designer</SubType>
      <DependentUpon>FreezeValues.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="FreezeWindow.resx">
      <SubType>Designer</SubType>
      <DependentUpon>FreezeWindow.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="ProcessWindow.resx">
      <SubType>Designer</SubType>
      <DependentUpon>ProcessWindow.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="ReScan.resx">
      <SubType>Designer</SubType>
      <DependentUpon>ReScan.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="SplashWindow.resx">
      <SubType>Designer</SubType>
      <DependentUpon>SplashWindow.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="WholeMemoryScan.resx">
      <SubType>Designer</SubType>
      <DependentUpon>WholeMemoryScan.cs</DependentUpon>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="ReScan.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="ReScan.Designer.cs">
      <DependentUpon>ReScan.cs</DependentUpon>
    </Compile>
    <Compile Include="SplashWindow.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="SplashWindow.Designer.cs">
      <DependentUpon>SplashWindow.cs</DependentUpon>
    </Compile>
    <Compile Include="WholeMemoryScan.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="WholeMemoryScan.Designer.cs">
      <DependentUpon>WholeMemoryScan.cs</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Hat.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Splash.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\LiveMessenger.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Close.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\CloseButton.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\NextButton.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Refresh.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\ProcessImage.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\CubeImage.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\EarthBlue.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\CalculatorImage.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Search.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\EarthGreen.png" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Hat.ico" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- 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">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rojan Gh.
CEO Atrin Design Group
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
MVC/SPA designer and programmer.
C# programmer on .net/mono/monomac/monotouch/monodroid frameworks.
jQuery/Knockout/Angular programmer.
And has been working since 2002.
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411023.1 | Last Updated 23 Sep 2006
Article Copyright 2006 by Rojan Gh.
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid