Click here to Skip to main content
15,886,825 members
Articles / Programming Languages / C#

Minesweeper, Behind the scenes

Rate me:
Please Sign up or sign in to vote.
4.94/5 (203 votes)
13 Jan 2003Ms-PL7 min read 605.1K   12.7K   248  
This article demonstrates directly reading another processes memory in C# using P/Invoke and Win32 Api's.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProcessMemoryReaderLib", "ProcessMemoryReaderLib\ProcessMemoryReaderLib.csproj", "{594702BE-4E44-4F36-8A6F-B95E4180F96B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MineSweeperReader", "MineSweeperReader\MineSweeperReader.csproj", "{799173EF-8FDF-41AB-A027-AD147A4BE3BB}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{594702BE-4E44-4F36-8A6F-B95E4180F96B}.Debug.ActiveCfg = Debug|.NET
		{594702BE-4E44-4F36-8A6F-B95E4180F96B}.Debug.Build.0 = Debug|.NET
		{594702BE-4E44-4F36-8A6F-B95E4180F96B}.Release.ActiveCfg = Release|.NET
		{594702BE-4E44-4F36-8A6F-B95E4180F96B}.Release.Build.0 = Release|.NET
		{799173EF-8FDF-41AB-A027-AD147A4BE3BB}.Debug.ActiveCfg = Debug|.NET
		{799173EF-8FDF-41AB-A027-AD147A4BE3BB}.Debug.Build.0 = Debug|.NET
		{799173EF-8FDF-41AB-A027-AD147A4BE3BB}.Release.ActiveCfg = Release|.NET
		{799173EF-8FDF-41AB-A027-AD147A4BE3BB}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

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 Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior) Verint
Israel Israel
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.

Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).

Comments and Discussions