' ########################################################################################
' Microsoft Windows
' File: wmsproxy.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_wmsproxy_PBI)
#DEFINE PBX_wmsproxy_PBI
%EQUATE `WMSPROXY_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/ObjIdl.inc"
#INCLUDE ONCE "Legacy/Media/wmscontext.inc"
$IID_IWMSProxyContext = GUID$("{2E34AB85-0D3D-11D2-9EEE-006097D2D7CF}")
' ########################################################################################
' Interface name = IWMSProxyContext
' IID = {2E34AB85-0D3D-11D2-9EEE-006097D2D7CF}
' Provides methods to discover upstream proxy settings and credentials to facilitate cache proxy binding.
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMSProxyContext_INTERFACE_DEFINED)
 %IWMSProxyContext_INTERFACE_DEFINED = 1
INTERFACE IWMSProxyContext $IID_IWMSProxyContext
 INHERIT IUnknown
 ' =====================================================================================
 METHOD FindProxyForURL ( ' VTable offset = 12
 BYVAL pUserContext AS IWMSContext
 , BYVAL bstrUrl AS WSTRING
 , BYREF pbstrProxyServer AS WSTRING
 , BYREF pdwProxyPort AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentials ( ' VTable offset = 16
 BYVAL pUserContext AS IWMSContext
 , BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYREF pbstrName AS WSTRING
 , BYREF pbstrPassword AS WSTRING
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMSProxyContext_INTERFACE_DEFINED__ */
#ENDIF
