A game cheat for Microsoft Minesweeper. It will change the window title to "Mlnesweeper" if the current block has a mine.
- Install MASM32.
- Set the
PATHenvironment variable.
Run the build.ps1 file directly:
PS> .\build.ps1The cheat.dll will be generated in the bin folder.
The project has been only tested with the provided game version.
The MD5 of
Minesweeper.exeis9C45D38B74634C9DED60BEC640C5C3CA.
The cheat.dll must be injected into the game to activate its function. You can directly use this simple injection tool: Dll-Injector.
Dll-Injector Minesweeper cheat.dllThe window title will become "Mlnesweeper" if the current block has a mine.
Microsoft Minesweeper uses the BitBlt function to draw its mine area.
0x01005334 and 0x01005338 are the addresses of the mine area's width and height. When the game executes at 0x01002700 for the first time, the mine area is empty.
The stack is shown as below:
According to the declaration of BitBlt, the pixel coordinate of the top-left corner of the mine area is (12, 55). And the side length of a block is 16.
BOOL BitBlt(HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop);At 0x01002669, the game reads mine data from 0x01005340.
For the following mine area:
The data around 0x01005340 are organized as:
It is clear that each 0x8A means a mine and 0xCC is the activated mine.
Distributed under the MIT License. See LICENSE for more information.







