Click here to Skip to main content
15,887,683 members
Articles / Programming Languages / C++

ExeScanner

Rate me:
Please Sign up or sign in to vote.
4.91/5 (67 votes)
6 Jun 20052 min read 115.6K   4.3K   102  
This article explains how to enumerate all the objects in a Portable Executable and manipulate them.
/******************************************************************************
*
* PROJECT:		ExeScanner
* FILE NAME:	ExeLegend.h
*
* DEVELOPER:	Vishalsinh Jhala
* DATE:			2-Apr-2005
*
* DESCRIPTION:	Declaration file for class ExeLegend.
*
* NOTES:		Represents property window. Its a semi-transparent, popup window
*				with non-standard GUI. Allows users to view the properties of
*				each object.
*
******************************************************************************/
#pragma once


// CExeLegend

class CExeLegend : public CWnd
{
	DECLARE_DYNAMIC(CExeLegend)

public:
	CExeLegend();
	virtual ~CExeLegend();

protected:
	DECLARE_MESSAGE_MAP()
	CBrush m_brGrey,m_brDarkGrey;
	CPen m_penWhite;
	CDC m_dcPointer;
	CBitmap m_bmpPointer;
	CRgn m_rgnRoundRect,m_rgnBig;

	CListCtrl m_lstProperty;
	void Populate();
	void Type(int i, int j,CString str);

	void Transparent();

public:
	virtual BOOL CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, LPVOID lpParam = NULL);
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	void Animate();
	BOOL m_bMaximize;//Stores the current state of window. Animate fn. does exactly opposite
					 //of this variable. i.e. Minimize if its value is true.
	CString strInfo;//This stores the property. Each column/row are seperated by \n

	virtual BOOL PreTranslateMessage(MSG* pMsg);
};


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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions