' ########################################################################################
' Microsoft Windows
' File: netprov.inc
' 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.
' ########################################################################################
' ########################################################################################
' Library name: NETPROVLib
' Version: 1.0, Locale ID = 0
' Documentation string: NETPROV 1.0 Type Library
' Library GUID: {789ED9B3-4873-49B9-87E0-55F51FCD5420}
' ########################################################################################
#IF NOT %DEF(PBX_netprov_PBI)
#DEFINE PBX_netprov_PBI
%EQUATE `NETPROV_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
#INCLUDE ONCE "Legacy/System/PrSht.inc"
#INCLUDE ONCE "Legacy/System/MSXML.inc"
$LIBID_NETPROVLib = GUID$("{789ED9B3-4873-49B9-87E0-55F51FCD5420}")
' ========================================================================================
' ClsIDs (Class identifiers)
' ========================================================================================
$CLSID_NetProvisioning = GUID$("{2AA2B5FE-B846-4D07-810C-B21EE45320E3}")
' ========================================================================================
' IIDs (Interface identifiers)
' ========================================================================================
$IID_IProvisioningDomain = GUID$("{C96FBD50-24DD-11D8-89FB-00904B2EA9C6}")
$IID_IProvisioningProfileWireless = GUID$("{C96FBD51-24DD-11D8-89FB-00904B2EA9C6}")
' ########################################################################################
' Interface name = IProvisioningDomain
' IID = {C96FBD50-24DD-11D8-89FB-00904B2EA9C6}
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IProvisioningDomain_INTERFACE_DEFINED)
 %IProvisioningDomain_INTERFACE_DEFINED = 1
INTERFACE IProvisioningDomain $IID_IProvisioningDomain
 INHERIT IUnknown
 ' =====================================================================================
 METHOD Add ( ' VTable offset = 12
 BYREF pszwPathToFolder AS WSTRINGZ
 ) AS LONG
 ' =====================================================================================
 METHOD Query ( ' VTable offset = 16
 BYREF pszwDomain AS WSTRINGZ
 , BYREF pszwLanguage AS WSTRINGZ
 , BYREF pszwXPathQuery AS WSTRINGZ
 , BYREF Nodes AS IXMLDOMNodeList
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IProvisioningDomain_INTERFACE_DEFINED__ */
'//
'// WZC Wireless CreateProfile private error codes (returned in *pulStatus)
'// WZC_PROFILE_SUCCESS is applicable only if the HRESULT returned is also
'// S_OK
'//
%EQUATE `WZC_PROFILE_SUCCESS = 0
%EQUATE `WZC_PROFILE_XML_ERROR_NO_VERSION = 1
%EQUATE `WZC_PROFILE_XML_ERROR_BAD_VERSION = 2
%EQUATE `WZC_PROFILE_XML_ERROR_UNSUPPORTED_VERSION = 3
%EQUATE `WZC_PROFILE_XML_ERROR_SSID_NOT_FOUND = 4
%EQUATE `WZC_PROFILE_XML_ERROR_BAD_SSID = 5
%EQUATE `WZC_PROFILE_XML_ERROR_CONNECTION_TYPE = 6
%EQUATE `WZC_PROFILE_XML_ERROR_AUTHENTICATION = 7
%EQUATE `WZC_PROFILE_XML_ERROR_ENCRYPTION = 8
%EQUATE `WZC_PROFILE_XML_ERROR_KEY_PROVIDED_AUTOMATICALLY = 9
%EQUATE `WZC_PROFILE_XML_ERROR_1X_ENABLED = 10
%EQUATE `WZC_PROFILE_XML_ERROR_EAP_METHOD = 11
%EQUATE `WZC_PROFILE_XML_ERROR_BAD_KEY_INDEX = 12
%EQUATE `WZC_PROFILE_XML_ERROR_KEY_INDEX_RANGE = 13
%EQUATE `WZC_PROFILE_XML_ERROR_BAD_NETWORK_KEY = 14
%EQUATE `WZC_PROFILE_CONFIG_ERROR_INVALID_AUTH_FOR_CONNECTION_TYPE = 15
%EQUATE `WZC_PROFILE_CONFIG_ERROR_INVALID_ENCRYPTION_FOR_AUTHMODE = 16
%EQUATE `WZC_PROFILE_CONFIG_ERROR_KEY_REQUIRED = 17
%EQUATE `WZC_PROFILE_CONFIG_ERROR_KEY_INDEX_REQUIRED = 18
%EQUATE `WZC_PROFILE_CONFIG_ERROR_KEY_INDEX_NOT_APPLICABLE = 19
%EQUATE `WZC_PROFILE_CONFIG_ERROR_1X_NOT_ALLOWED = 20
%EQUATE `WZC_PROFILE_CONFIG_ERROR_1X_NOT_ALLOWED_KEY_REQUIRED = 21
%EQUATE `WZC_PROFILE_CONFIG_ERROR_1X_NOT_ENABLED_KEY_PROVIDED = 22
%EQUATE `WZC_PROFILE_CONFIG_ERROR_EAP_METHOD_REQUIRED = 23
%EQUATE `WZC_PROFILE_CONFIG_ERROR_EAP_METHOD_NOT_APPLICABLE = 24
%EQUATE `WZC_PROFILE_CONFIG_ERROR_WPA_NOT_SUPPORTED = 25
%EQUATE `WZC_PROFILE_CONFIG_ERROR_WPA_ENCRYPTION_NOT_SUPPORTED = 26
%EQUATE `WZC_PROFILE_SET_ERROR_DUPLICATE_NETWORK = 27
%EQUATE `WZC_PROFILE_SET_ERROR_MEMORY_ALLOCATION = 28
%EQUATE `WZC_PROFILE_SET_ERROR_READING_1X_CONFIG = 29
%EQUATE `WZC_PROFILE_SET_ERROR_WRITING_1X_CONFIG = 30
%EQUATE `WZC_PROFILE_SET_ERROR_WRITING_WZC_CFG = 31
%EQUATE `WZC_PROFILE_API_ERROR_NOT_SUPPORTED = 32
%EQUATE `WZC_PROFILE_API_ERROR_FAILED_TO_LOAD_XML = 33
%EQUATE `WZC_PROFILE_API_ERROR_FAILED_TO_LOAD_SCHEMA = 34
%EQUATE `WZC_PROFILE_API_ERROR_XML_VALIDATION_FAILED = 35
%EQUATE `WZC_PROFILE_API_ERROR_INTERNAL = 36
' ########################################################################################
' Interface name = IProvisioningProfileWireless
' IID = {C96FBD51-24DD-11D8-89FB-00904B2EA9C6}
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IProvisioningProfileWireless_INTERFACE_DEFINED)
 %IProvisioningProfileWireless_INTERFACE_DEFINED = 1
INTERFACE IProvisioningProfileWireless $IID_IProvisioningProfileWireless
 INHERIT IUnknown
 ' =====================================================================================
 METHOD CreateProfile ( ' VTable offset = 12
 BYVAL bstrXMLWirelessConfigProfile AS WSTRING
 , BYVAL bstrXMLConnectionConfigProfile AS WSTRING
 , BYREF pAdapterInstanceGuid AS GUID
 , BYREF pulStatus AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IProvisioningProfileWireless_INTERFACE_DEFINED__ */
#ENDIF
