' ########################################################################################
' Microsoft Windows
' File: wmsinternaladminnetsource.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_wmsinternaladminnetsource_PBI)
#DEFINE PBX_wmsinternaladminnetsource_PBI
%EQUATE `WMSINTERNALADMINNETSOURCE_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
#INCLUDE ONCE "Legacy/Media/wmnetsourcecreator.inc"
$IID_IWMSInternalAdminNetSource = GUID$("{8BB23E5F-D127-4AFB-8D02-AE5B66D54C78}")
$IID_IWMSInternalAdminNetSource2 = GUID$("{E74D58C3-CF77-4B51-AF17-744687C43EAE}")
$IID_IWMSInternalAdminNetSource3 = GUID$("{6B63D08E-4590-44AF-9EB3-57FF1E73BF80}")
' "068A6457-4099-4C72-9AA9-9105C1C03177"
' enum NETSOURCE_URLCREDPOLICY_SETTINGS
%EQUATE `NETSOURCE_URLCREDPOLICY_SETTING_SILENTLOGONOK = 0
%EQUATE `NETSOURCE_URLCREDPOLICY_SETTING_MUSTPROMPTUSER = 1
%EQUATE `NETSOURCE_URLCREDPOLICY_SETTING_ANONYMOUSONLY = 2
' ########################################################################################
' Interface name = IWMSInternalAdminNetSource
' IID = 8BB23E5F-D127-4AFB-8D02-AE5B66D54C78
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMSInternalAdminNetSource_INTERFACE_DEFINED)
 %IWMSInternalAdminNetSource_INTERFACE_DEFINED = 1
INTERFACE IWMSInternalAdminNetSource $IID_IWMSInternalAdminNetSource
 INHERIT IUnknown
 ' =====================================================================================
 METHOD Initialize ( ' VTable offset = 12
 BYVAL pSharedNamespace AS IUnknown
 , BYVAL pNamespaceNode AS IUnknown
 , BYVAL pNetSourceCreator AS INSNetSourceCreator
 , BYVAL fEmbeddedInServer AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetNetSourceCreator ( ' VTable offset = 16
 BYREF ppNetSourceCreator AS INSNetSourceCreator
 ) AS LONG
 ' =====================================================================================
 METHOD SetCredentials ( ' VTable offset = 20
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrName AS WSTRING
 , BYVAL bstrPassword AS WSTRING
 , BYVAL fPersist AS LONG
 , BYVAL fConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentials ( ' VTable offset = 24
 BYVAL bstrRealm AS WSTRING
 , BYREF pbstrName AS WSTRING
 , BYREF pbstrPassword AS WSTRING
 , BYREF pfConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD DeleteCredentials ( ' VTable offset = 28
 BYVAL bstrRealm AS WSTRING
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentialFlags ( ' VTable offset = 32
 BYREF lpdwFlags AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD SetCredentialFlags ( ' VTable offset = 36
 BYVAL dwFlags AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD FindProxyForURL ( ' VTable offset = 40
 BYVAL bstrProtocol AS WSTRING
 , BYVAL bstrHost AS WSTRING
 , BYREF pfProxyEnabled AS LONG
 , BYREF pbstrProxyServer AS WSTRING
 , BYREF pdwProxyPort AS DWORD
 , BYREF pdwProxyContext AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD RegisterProxyFailure ( ' VTable offset = 44
 BYVAL hrParam AS LONG
 , BYVAL dwProxyContext AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD ShutdownProxyContext ( ' VTable offset = 48
 BYVAL dwProxyContext AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD IsUsingIE ( ' VTable offset = 52
 BYVAL dwProxyContext AS DWORD
 , BYREF pfIsUsingIE AS LONG
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMSInternalAdminNetSource_INTERFACE_DEFINED__ */
' ########################################################################################
' Interface name = IWMSInternalAdminNetSource2
' IID = E74D58C3-CF77-4B51-AF17-744687C43EAE
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMSInternalAdminNetSource2_INTERFACE_DEFINED)
 %IWMSInternalAdminNetSource2_INTERFACE_DEFINED = 1
INTERFACE IWMSInternalAdminNetSource2 $IID_IWMSInternalAdminNetSource2
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetCredentialsEx ( ' VTable offset = 12
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYVAL bstrName AS WSTRING
 , BYVAL bstrPassword AS WSTRING
 , BYVAL fPersist AS LONG
 , BYVAL fConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentialsEx ( ' VTable offset = 16
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYREF pdwUrlPolicy AS LONG
 , BYREF pbstrName AS WSTRING
 , BYREF pbstrPassword AS WSTRING
 , BYREF pfConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD DeleteCredentialsEx ( ' VTable offset = 20
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD FindProxyForURLEx ( ' VTable offset = 24
 BYVAL bstrProtocol AS WSTRING
 , BYVAL bstrHost AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYREF pfProxyEnabled AS LONG
 , BYREF pbstrProxyServer AS WSTRING
 , BYREF pdwProxyPort AS DWORD
 , BYREF pdwProxyContext AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMSInternalAdminNetSource2_INTERFACE_DEFINED__ */
' ########################################################################################
' Interface name = IWMSInternalAdminNetSource3
' IID = 6B63D08E-4590-44AF-9EB3-57FF1E73BF80
' Inherited interface = IWMSInternalAdminNetSource2
' ########################################################################################
#IF NOT %DEF(%IWMSInternalAdminNetSource3_INTERFACE_DEFINED)
 %IWMSInternalAdminNetSource3_INTERFACE_DEFINED = 1
INTERFACE IWMSInternalAdminNetSource3 $IID_IWMSInternalAdminNetSource3
 INHERIT IUnknown
 ' =====================================================================================
 ' IWMSInternalAdminNetSource2 methods
 ' =====================================================================================
 METHOD SetCredentialsEx ( ' VTable offset = 12
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYVAL bstrName AS WSTRING
 , BYVAL bstrPassword AS WSTRING
 , BYVAL fPersist AS LONG
 , BYVAL fConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentialsEx ( ' VTable offset = 16
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYREF pdwUrlPolicy AS LONG
 , BYREF pbstrName AS WSTRING
 , BYREF pbstrPassword AS WSTRING
 , BYREF pfConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD DeleteCredentialsEx ( ' VTable offset = 20
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD FindProxyForURLEx ( ' VTable offset = 24
 BYVAL bstrProtocol AS WSTRING
 , BYVAL bstrHost AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYREF pfProxyEnabled AS LONG
 , BYREF pbstrProxyServer AS WSTRING
 , BYREF pdwProxyPort AS DWORD
 , BYREF pdwProxyContext AS DWORD
 ) AS LONG
 ' =====================================================================================
 ' =====================================================================================
 ' IWMSInternalAdminNetSource3 methods
 ' =====================================================================================
 METHOD GetNetSourceCreator2 ( ' VTable offset = 28
 BYREF ppNetSourceCreator AS IUnknown
 ) AS LONG
 ' =====================================================================================
 METHOD FindProxyForURLEx2 ( ' VTable offset = 32
 BYVAL bstrProtocol AS WSTRING
 , BYVAL bstrHost AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYREF pfProxyEnabled AS LONG
 , BYREF pbstrProxyServer AS WSTRING
 , BYREF pdwProxyPort AS DWORD
 , BYREF pqwProxyContext AS QUAD
 ) AS LONG
 ' =====================================================================================
 METHOD RegisterProxyFailure2 ( ' VTable offset = 36
 BYVAL hrParam AS LONG
 , BYVAL qwProxyContext AS QUAD
 ) AS LONG
 ' =====================================================================================
 METHOD ShutdownProxyContext2 ( ' VTable offset = 40
 BYVAL qwProxyContext AS QUAD
 ) AS LONG
 ' =====================================================================================
 METHOD IsUsingIE2 ( ' VTable offset = 44
 BYVAL qwProxyContext AS QUAD
 , BYREF pfIsUsingIE AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD SetCredentialsEx2 ( ' VTable offset = 48
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYVAL bstrName AS WSTRING
 , BYVAL bstrPassword AS WSTRING
 , BYVAL fPersist AS LONG
 , BYVAL fConfirmedGood AS LONG
 , BYVAL fClearTextAuthentication AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetCredentialsEx2 ( ' VTable offset = 52
 BYVAL bstrRealm AS WSTRING
 , BYVAL bstrUrl AS WSTRING
 , BYVAL fProxy AS LONG
 , BYVAL fClearTextAuthentication AS LONG
 , BYREF pdwUrlPolicy AS LONG
 , BYREF pbstrName AS WSTRING
 , BYREF pbstrPassword AS WSTRING
 , BYREF pfConfirmedGood AS LONG
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMSInternalAdminNetSource3_INTERFACE_DEFINED__ */
#ENDIF
