' ########################################################################################
' Microsoft Windows
' File: wmseventlog.inc
' Contents: Microsoft Windows Media Technologies
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_wmseventlog_PBI)
#DEFINE PBX_wmseventlog_PBI
%EQUATE `WMSEVENTLOG_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
#INCLUDE ONCE "Legacy/Media/wmsnamedvalues.inc"
$IID_IWMSEventLog = GUID$("{7A0DCFB1-47AF-11D2-9EFF-006097D2D7CF}")
' ########################################################################################
' Interface name = IWMSEventLog
' IID = {7A0DCFB1-47AF-11D2-9EFF-006097D2D7CF}
' Provides a method that allows plug-ins to log events.
' Attributes = 4160 [&H1040] [Dual] [Dispatchable]
' Inherited interface = IDispatch
' ########################################################################################
#IF NOT %DEF(%IWMSEventLog_INTERFACE_DEFINED)
 %IWMSEventLog_INTERFACE_DEFINED = 1
' WMS_EVENT_LOG_LEVEL enum
' IID: {940488C2-8F93-41C1-BBEB-43D1B48D084B}
%EQUATE `WMS_EVENT_LOG_LEVEL_ERROR = &H1
%EQUATE `WMS_EVENT_LOG_LEVEL_WARNING = &H2
%EQUATE `WMS_EVENT_LOG_LEVEL_INFORMATION = &H4
INTERFACE IWMSEventLog $IID_IWMSEventLog
 INHERIT IDispatch
 ' =====================================================================================
 METHOD LogEvent <1> ( ' VTable offset = 28
 BYVAL pPluginNamedValues AS IWMSNamedValues
 , BYVAL ErrorLevel AS LONG
 , BYVAL lErrorCode AS LONG
 , BYVAL bstrAdditionalInfo AS WSTRING
 ) ' void
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMSEventLog_INTERFACE_DEFINED__ */
#ENDIF
