Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / C++

WindowsNT Event Log Viewer

Rate me:
Please Sign up or sign in to vote.
3.38/5 (12 votes)
30 Nov 19992 min read 265.5K   5.6K   39  
#ifndef __Structures_Defined__
#define __Structures_Defined__

	#include "_GlobalHeader.h"

	#define ASCENDING	 1
	#define NONE		 0
	#define DESCENDING	-1

	#define STRING		 0
	#define NUMERIC		 1
	#define DATE		 2
	#define DATETIME	 3

	typedef struct _tagDLGSORTDATA
	{
		HWND	hDlg;
		int		nSortOrder;
		int		nSortType;
		int		nColIdx;
	} DLGSORTDATA;

	typedef struct _tagEVENTLOGCOL
	{
		TCHAR lpszName[32];
		UINT  uCXCol;
		int   nSortType;
		int   nSortOrder;
	} EVENTLOGCOL;

	typedef struct _tagEVENTLOGFILTER
	{
		BOOL		fApplication;
		BOOL		fSecurity;
		BOOL		fSystem;
		BOOL		fCustom;
		TCHAR		lpszComputerName[_MAX_PATH + 1];
		HWND		hwndLV;
		HWND		hwndDlg;
		HWND		hwndProgr;
		HANDLE		hCancelEvent;
		HANDLE		hCloseEvent;
		unsigned	uThreadId;
		TCHAR		lpszCustomEventFileName[_MAX_PATH + 1];
	} EVENTLOGFILTER, *LPEVENTLOGFILTER;

	typedef struct _tagEVENTID
	{
		TCHAR lpszMachineName[_MAX_PATH + 1];
		TCHAR lpszEventName[_MAX_PATH + 1];
		DWORD   dwEventId;
		HWND  hwndDlg;
	} EVENTID, *LPEVENTID;

	typedef struct _tagEVENTLISTPARAM
	{
		DWORD dwEventId;
		DWORD dwListId;
	} EVENTLISTPARAM;

#endif /* __Structures_Defined__ */

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
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions