16#define EVENT_MESSAGE_EVENTTEXT_BUFFER (1024*10)
48 INT iItem = pDetailData->iEventItem;
115 for (
i = 0;
i < uLength;
i++)
122 for (
i = 0;
i < 9 - uLength;
i++)
129 for (
i = 0;
i < uLength;
i++)
158 for (
i = 0;
i < uLength /
sizeof(
ULONG);
i++)
166 for (
i = (uLength /
sizeof(
ULONG)) *
sizeof(
ULONG);
i < uLength;
i++)
182 BOOL bDisplayWords = pDetailData->bDisplayWords;
183 INT iItem = pDetailData->iEventItem;
189 UINT uBufferSize, uLineLength;
190 PWCHAR pTextBuffer, pLine;
224 pLine = pLine + uLineLength;
269 WCHAR tmpHeader[512];
309 if (hMem ==
NULL)
goto Quit;
319 tmpHeader, szEventType, szSource, szCategory, szEventID,
320 szDate,
szTime, szUser, szComputer, evtDesc);
360 txtRange.chrg = penLink->
chrg;
361 txtRange.lpstrText = pLink;
388 pOriginXY = &
pData->scPos.x;
393 pOriginXY = &
pData->scPos.y;
397 sInfo.
cbSize =
sizeof(sInfo);
445 if (oldPos != sInfo.
nPos)
450 *pOriginXY = sInfo.
nPos;
453 (scOldPos.
x -
pData->scPos.x),
454 (scOldPos.
y -
pData->scPos.y),
473 INT sbVXSize, sbHYSize;
493 if (cx < pData->
cxMin)
cy -= sbHYSize;
494 if (cy < pData->
cyMin)
cx -= sbVXSize;
497 sInfo.
cbSize =
sizeof(sInfo);
501 scOldPos.
y = sInfo.
nPos;
503 scOldPos.
y =
pData->scPos.y;
525 sInfo.
nPos = scOldPos.
y;
530 rect.left =
cx - sbVXSize;
539 scOldPos.
x = sInfo.
nPos;
541 scOldPos.
x =
pData->scPos.x;
563 sInfo.
nPos = scOldPos.
x;
575 if ((scOldPos.
x !=
pData->scPos.x) || (scOldPos.
y !=
pData->scPos.y))
579 (
pData->scPos.x - scOldPos.
x),
581 (
pData->scPos.y - scOldPos.
y),
588 pData->scPos = scOldPos;
812 if (
pData->hMonospaceFont)
825 if (
pData->EventLogFilter)
852 ?
L"You have reached the beginning of the event log. Do you want to continue from the end?"
853 :
L"You have reached the end of the event log. Do you want to continue from the beginning?",
886 pData->iEventItem = iItem;
889 if (
pData->EventLogFilter)
898 if (
pData->EventLogFilter)
905 if (
pData->EventLogFilter)
#define IDC_EVENTCOMPUTERSTATIC
#define IDD_EVENTDETAILS_CTRL
#define IDC_EVENTDATESTATIC
#define IDC_EVENTUSERSTATIC
#define IDC_EVENTTYPESTATIC
#define IDC_EVENTTIMESTATIC
#define IDC_EVENTDATAEDIT
#define IDC_EVENTSOURCESTATIC
#define IDC_EVENTCATEGORYSTATIC
#define IDC_EVENTTEXTEDIT
#define IDC_DETAILS_STATIC
#define IDC_EVENTIDSTATIC
#define HeapFree(x, y, z)
#define EnableDlgItem(hDlg, nID, bEnable)
struct _EVENTLOGFILTER * PEVENTLOGFILTER
BOOL GetEventMessage(IN LPCWSTR KeyName, IN LPCWSTR SourceName, IN PEVENTLOGRECORD pevlr, OUT PWCHAR EventText)
static VOID OnScroll(HWND hDlg, PDETAILDATA pData, INT nBar, WORD sbCode)
static VOID InitDetailsDlgCtrl(HWND hDlg, PDETAILDATA pData)
static INT_PTR CALLBACK EventDetailsCtrl(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID CopyEventEntry(HWND hWnd)
static HFONT CreateMonospaceFont(VOID)
#define EVENT_MESSAGE_EVENTTEXT_BUFFER
struct _DETAILDATA * PDETAILDATA
static VOID DisplayEventData(_In_ HWND hDlg, _In_ PDETAILDATA pDetailData)
static VOID OnLink(HWND hDlg, ENLINK *penLink)
static UINT PrintByteDataLine(PWCHAR pBuffer, UINT uOffset, PBYTE pData, UINT uLength)
static UINT PrintWordDataLine(PWCHAR pBuffer, UINT uOffset, PULONG pData, UINT uLength)
static VOID DisplayEvent(_In_ HWND hDlg, _In_ PDETAILDATA pDetailData)
struct _DETAILDATA DETAILDATA
HWND CreateEventDetailsCtrl(HINSTANCE hInstance, HWND hParentWnd, LPARAM lParam)
static VOID OnSize(HWND hDlg, PDETAILDATA pData, INT cx, INT cy)
struct _EVENTDETAIL_INFO * PEVENTDETAIL_INFO
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
_Out_opt_ int _Out_opt_ int * cy
#define ListView_SetItemState(hwndLV, i, data, mask)
#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_)
#define ListView_GetNextItem(hwnd, i, flags)
#define ListView_GetItemCount(hwnd)
#define ListView_GetItem(hwnd, pitem)
#define ListView_EnsureVisible(hwndLV, i, fPartialOK)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
WCHAR lfFaceName[LF_FACESIZE]
PEVENTLOGFILTER EventLogFilter
PEVENTLOGFILTER EventLogFilter
PEVENTLOG EventLogs[ANYSIZE_ARRAY]
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
struct _EVENTLOGRECORD * PEVENTLOGRECORD
HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
#define GetWindowLongPtrW
#define SW_SCROLLCHILDREN
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
BOOL WINAPI CloseClipboard(void)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define SW_SHOWNOACTIVATE
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EmptyClipboard(void)
struct tagNMHDR * LPNMHDR
HDC WINAPI GetDC(_In_opt_ HWND)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
#define SetWindowLongPtrW
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
int WINAPI GetSystemMetrics(_In_ int)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)