Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C++

PasswordSpy - Retrieving lost passwords using Windows hooks

Rate me:
Please Sign up or sign in to vote.
4.84/5 (66 votes)
16 Dec 20037 min read 647.4K   14.7K   252  
A practical application of setting Windows hooks
#pragma once

typedef enum _EOSType
{
	eUnknown = 0,
	eWin95,
	eWin98,
	eWinME,
	eWinNT,
	eWin2000,
	eWinXP,
	eWin2003
} EOSType, *LPEOSType;

class COSInfo
{
public:
	COSInfo();
	virtual ~COSInfo();

	EOSType GetOSType(void) const;
	LPCTSTR GetOSString(void) const;

	bool IsWindows95(void) const;
	bool IsWindows98(void) const;
	bool IsWindowsME(void) const;
	bool IsWindowsNT(void) const;
	bool IsWindows2000(void) const;
	bool IsWindowsXP(void) const;
	bool IsWindows2003(void) const;

	bool IsNT(void) const;

	DWORD GetMajor(void) const;
	DWORD GetMinor(void) const;
	DWORD GetBuild(void) const;
	DWORD GetPlatformId(void) const;
	LPCTSTR GetCSDString(void) const;

protected:
	OSVERSIONINFO m_osvi;
};

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