Windows Dev Center

IRSOPInformation::GetEventLogEntryText method

The GetEventLogEntryText method returns the text for a specific entry in the event log.

Syntax


HRESULT GetEventLogEntryText(
  [in]  LPOLESTR pszEventSource,
  [in]  LPOLESTR pszEventLogName,
  [in]  LPOLESTR pszEventTime,
  [in]  DWORD    dwEventID,
  [out] LPOLESTR *ppszText
);

Parameters

pszEventSource [in]

Specifies the name of the source (application, service, driver, subsystem) that generated the log entry.

pszEventLogName [in]

Specifies the name of the event log.

pszEventTime [in]

Specifies the time the event was logged, in Windows Management Instrumentation (WMI) format. For more information, see Date and Time Format in the WMI documentation.

dwEventID [in]

Specifies the event ID.

ppszText [out]

Receives the pointer to a buffer containing the text of the event log entry. The calling application must free the memory allocated for this buffer with a call to the CoTaskMemFree function.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes defined in the Platform SDK header file WinError.h.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Gpedit.h

DLL

Gpedit.dll

IID

IID_IRSOPInformation is defined as 9A5A81B5-D9C7-49EF-9D11-DDF50968C48D

See also

Group Policy Overview
Group Policy Interfaces
IRSOPInformation

 

 

Show:
© 2015 Microsoft