' ########################################################################################
' Microsoft Windows
' File: bits2_5.inc
' Contents: IBackgroundCopyJobHttpOptions interface
' Copyright (c) 2010 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_bits2_5_PBI)
#DEFINE PBX_bits2_5_PBI
%EQUATE `BITS2_5_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/System/Bits.inc"
#INCLUDE ONCE "Legacy/System/bits1_5.inc"
#INCLUDE ONCE "Legacy/System/bits2_0.inc"
$CLSID_BackgroundCopyManager2_5 = GUID$("{03CA98D6-FF5D-49B8-ABC6-03DD84127020}")
' ########################################################################################
' IBackgroundCopyJobHttpOptions interface
' IID = F1BD1079-9F01-4BDC-8036-F09B70095066
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED)
 %IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED = 1
' enum BG_CERT_STORE_LOCATION
MACRO BG_CERT_STORE_LOCATION_ENUM = LONG
%EQUATE `BG_CERT_STORE_LOCATION_CURRENT_USER = 0
%EQUATE `BG_CERT_STORE_LOCATION_LOCAL_MACHINE = %BG_CERT_STORE_LOCATION_CURRENT_USER + 1
%EQUATE `BG_CERT_STORE_LOCATION_CURRENT_SERVICE = %BG_CERT_STORE_LOCATION_LOCAL_MACHINE + 1
%EQUATE `BG_CERT_STORE_LOCATION_SERVICES = %BG_CERT_STORE_LOCATION_CURRENT_SERVICE + 1
%EQUATE `BG_CERT_STORE_LOCATION_USERS = %BG_CERT_STORE_LOCATION_SERVICES + 1
%EQUATE `BG_CERT_STORE_LOCATION_CURRENT_USER_GROUP_POLICY = %BG_CERT_STORE_LOCATION_USERS + 1
%EQUATE `BG_CERT_STORE_LOCATION_LOCAL_MACHINE_GROUP_POLICY = %BG_CERT_STORE_LOCATION_CURRENT_USER_GROUP_POLICY + 1
%EQUATE `BG_CERT_STORE_LOCATION_LOCAL_MACHINE_ENTERPRISE = %BG_CERT_STORE_LOCATION_LOCAL_MACHINE_GROUP_POLICY + 1
$IID_IBackgroundCopyJobHttpOptions = GUID$("{F1BD1079-9F01-4BDC-8036-F09B70095066}")
INTERFACE IBackgroundCopyJobHttpOptions $IID_IBackgroundCopyJobHttpOptions
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetClientCertificateByID ( ' VTable offset = 12
 BYVAL StoreLocation AS BG_CERT_STORE_LOCATION_ENUM
 , BYREF StoreName AS WSTRINGZ
 , BYVAL pCertHashBlob AS BYTE PTR
 ) AS LONG
 ' =====================================================================================
 METHOD SetClientCertificateByName ( ' VTable offset = 16
 BYVAL StoreLocation AS BG_CERT_STORE_LOCATION_ENUM
 , BYREF StoreName AS WSTRINGZ
 , BYREF SubjectName AS WSTRINGZ
 ) AS LONG
 ' =====================================================================================
 METHOD RemoveClientCertificate ( ' VTable offset = 20
 ) AS LONG
 ' =====================================================================================
 METHOD GetClientCertificate ( ' VTable offset = 24
 BYREF pStoreLocation AS BG_CERT_STORE_LOCATION_ENUM
 , BYREF pStoreName AS DWORD
 , BYREF ppCertHashBlob AS DWORD
 , BYREF pSubjectName AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD SetCustomHeaders ( ' VTable offset = 28
 BYREF RequestHeaders AS WSTRINGZ
 ) AS LONG
 ' =====================================================================================
 METHOD GetCustomHeaders ( ' VTable offset = 32
 BYREF pRequestHeaders AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD SetSecurityFlags ( ' VTable offset = 36
 BYVAL Flags AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetSecurityFlags ( ' VTable offset = 40
 BYREF pFlags AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED__ */
%EQUATE `BG_SSL_ENABLE_CRL_CHECK = &H0001
%EQUATE `BG_SSL_IGNORE_CERT_CN_INVALID = &H0002
%EQUATE `BG_SSL_IGNORE_CERT_DATE_INVALID = &H0004
%EQUATE `BG_SSL_IGNORE_UNKNOWN_CA = &H0008
%EQUATE `BG_SSL_IGNORE_CERT_WRONG_USAGE = &H0010
%EQUATE `BG_HTTP_REDIRECT_POLICY_MASK = &H0700
%EQUATE `BG_HTTP_REDIRECT_POLICY_ALLOW_SILENT = &H0000
%EQUATE `BG_HTTP_REDIRECT_POLICY_ALLOW_REPORT = &H0100
%EQUATE `BG_HTTP_REDIRECT_POLICY_DISALLOW = &H0200
%EQUATE `BG_HTTP_REDIRECT_POLICY_ALLOW_HTTPS_TO_HTTP = &H0800
#INCLUDE ONCE "Legacy/System/Bits3_0.inc"
#ENDIF
