Capture the details in the "Browse history" window and save the analysis to the binary file screen. dat.
Storage Format ):
A8 88 7E 00...
It is a pixel with three characters, namely, two-color font, two-color font, and two-color font.
The storage class is binary.
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////
/// // Main. CPP ////////////////////////////////
# Include "Main. H"
# Deprecision CX 800
# Define Cy 600
# Define size (CX * Cy * 5-1 + 2 + 1)
Void main (void)
{
Printf ("4 seconds of sleep, please try to minimize the speed of this window.../N ");
Sleep (4000 );
Hwnd hwndgame;
Colorref bit;
HDC;
Unsigned short X, Y;
// Byte Buf [size + 4], * pccurrent = Buf;
Byte pixel [3] = {0x00 };
Printf ("% s", "Start.../N ");
// Hwndgame = getmediatopwindow ();
Hwndgame = findwindow ("#32770", (lpctstr) "QQ game-serialization role edition ");
// Hwndgame = findwindow ("afx: e50000: 8: 10011: 0: 0", "QQ Game ");
// Hwndgame = findwindow ("consolewindowclass", null );
If (hwndgame = NULL)
{
Printf ("/" QQ game-Player version/"Window not found! /N ");
Return;
}
Printf ("hwndgame = 0x % x/N", hwndgame );
HDC = getdc (hwndgame );
If (HDC = NULL)
{
Printf ("HDC failed to get! /N ");
Return;
}
Printf ("HDC = % u/N", HDC );
// Upload the file
File * fpbin = fopen ("screen. dat", "WB ");
If (fpbin = NULL)
{
Printf ("binary file loss! /N ");
Return;
}
// Fprintf (fpbin ,"{");
// Pixel acquisition
For (y = 0; y <= 600; y ++)
{
For (x = 0; X <= 800; X ++)
{
Bit = getpixel (HDC, x, y );
// Upload-extract-token
/* Fprintf (fpbin, "% 02x", (BIT & 0x00ff0000)> 16 );
Fprintf (fpbin, "% 02x", (BIT & 0x0000ff00)> 8 );
Fprintf (fpbin, "% 02x", bit & 0x000000ff );*/
Pixel [0] = (byte) (BIT & 0x00ff0000)> 16;
Pixel [1] = (byte) (BIT & 0x0000ff00)> 8;
Pixel [2] = (byte) bit & 0x000000ff;
Fwrite (pixel, sizeof (byte), 3, fpbin );
/* Printf ("0x % 02x,", (BIT & 0x00ff0000)> 16 );
Printf ("0x % 02x,", (BIT & 0x0000ff00)> 8 );
Printf ("0x % 02x,", bit & 0x000000ff );*/
}
}
Releasedc (hwndgame, HDC );
// Fprintf (fpbin, "}/R/N ");
Fclose (fpbin );
Printf ("/n finished! /N ");
}
//////////////////////////////////////// EOF ////////////////////////////////////