Skip to content

tayp1n/spy

Repository files navigation

spy

The Spy program is written in C++ in Visual Studio using the Windows API. It listens for events from menus, child windows, mouse and keyboard, and displays information about the messages being monitored. The message itself (WM_COMMAND type) is displayed, as well as the values of the first (wParam) and second (lPara) parameters.

The program window consists of several areas. Below is the Edit control, which displays information about the message. Top center is another Edit control where the user can type. And the unoccupied area belongs to the main window. At the very beginning, the program creates a map of monitored messages. For this, std::unordered_map<UINT, string> is used. It maps the message number to the line with that message (like WM_COMMAND -> “WM_COMMAND”). There about 20 events are tracked (see the MainWindow::MainWindow constructor). There is a window procedure - MainWindow::WndProc - in which all messages are processed. So, before processing the message, the program checks if the message is in the map, then display information about it in the lower Edit control.

There are several files in the project: Main.cpp is the entry point to the program. An instance of the MainWindow class is created there. MainWindow.h and MainWindow.cpp - here all the main functionality of the program is concentrated. Menu and related functions: Menu processing occurs through the WM_COMMAND message in the OnCommand function.

  1. File: -Capture Events - turns on or off the display of messages (you can also press and hold Alt, and then alternately press F and C). -Exit – exit the program.

  2. Help: -About - about the program Безымянный

if you have any questions don't hesitate to contact me. Looking forward to hearing from you.

My account LinkedIn

LinkedIn.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published