netprov.idl 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // File: netprov.idl
  7. //
  8. //----------------------------------------------------------------------------
  9. cpp_quote("//+-------------------------------------------------------------------------")
  10. cpp_quote("//")
  11. cpp_quote("// Microsoft Windows")
  12. cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.")
  13. cpp_quote("//")
  14. cpp_quote("//--------------------------------------------------------------------------")
  15. cpp_quote("#if ( _MSC_VER >= 800 )")
  16. cpp_quote("#pragma warning(disable:4201)")
  17. cpp_quote("#endif")
  18. #ifndef DO_NO_IMPORTS
  19. import "oaidl.idl";
  20. import "unknwn.idl";
  21. import "wtypes.idl";
  22. import "prsht.idl";
  23. import "msxml.idl";
  24. #endif
  25. //
  26. // Reserved GUIDs for our use
  27. //
  28. //
  29. // c96fbd50-24dd-11d8-89fb-00904b2ea9c6 IID_IProvisioningDomain
  30. // c96fbd51-24dd-11d8-89fb-00904b2ea9c6 IID_IProvisioningProfileWireless
  31. // c96fbd52-24dd-11d8-89fb-00904b2ea9c6
  32. // c96fbd53-24dd-11d8-89fb-00904b2ea9c6
  33. // c96fbd54-24dd-11d8-89fb-00904b2ea9c6
  34. // c96fbd55-24dd-11d8-89fb-00904b2ea9c6
  35. // c96fbd56-24dd-11d8-89fb-00904b2ea9c6
  36. // c96fbd57-24dd-11d8-89fb-00904b2ea9c6
  37. // c96fbd58-24dd-11d8-89fb-00904b2ea9c6
  38. // c96fbd59-24dd-11d8-89fb-00904b2ea9c6
  39. //
  40. interface IProvisioningDomain;
  41. interface IProvisioningProfileWireless;
  42. //+---------------------------------------------------------------------------
  43. //
  44. //
  45. [
  46. object,
  47. uuid(c96fbd50-24dd-11d8-89fb-00904b2ea9c6),
  48. pointer_default(unique)
  49. ]
  50. interface IProvisioningDomain : IUnknown
  51. {
  52. HRESULT Add(
  53. [in, string] LPCWSTR pszwPathToFolder
  54. );
  55. HRESULT Query(
  56. [in, string] LPCWSTR pszwDomain,
  57. [in, string] LPCWSTR pszwLanguage,
  58. [in, string] LPCWSTR pszwXPathQuery,
  59. [out] IXMLDOMNodeList** Nodes
  60. );
  61. };
  62. //+---------------------------------------------------------------------------
  63. //
  64. //
  65. cpp_quote("//")
  66. cpp_quote("// WZC Wireless CreateProfile private error codes (returned in *pulStatus)")
  67. cpp_quote("// WZC_PROFILE_SUCCESS is applicable only if the HRESULT returned is also")
  68. cpp_quote("// S_OK")
  69. cpp_quote("//")
  70. cpp_quote("#define WZC_PROFILE_SUCCESS 0")
  71. cpp_quote("#define WZC_PROFILE_XML_ERROR_NO_VERSION 1")
  72. cpp_quote("#define WZC_PROFILE_XML_ERROR_BAD_VERSION 2")
  73. cpp_quote("#define WZC_PROFILE_XML_ERROR_UNSUPPORTED_VERSION 3")
  74. cpp_quote("#define WZC_PROFILE_XML_ERROR_SSID_NOT_FOUND 4")
  75. cpp_quote("#define WZC_PROFILE_XML_ERROR_BAD_SSID 5")
  76. cpp_quote("#define WZC_PROFILE_XML_ERROR_CONNECTION_TYPE 6")
  77. cpp_quote("#define WZC_PROFILE_XML_ERROR_AUTHENTICATION 7")
  78. cpp_quote("#define WZC_PROFILE_XML_ERROR_ENCRYPTION 8")
  79. cpp_quote("#define WZC_PROFILE_XML_ERROR_KEY_PROVIDED_AUTOMATICALLY 9")
  80. cpp_quote("#define WZC_PROFILE_XML_ERROR_1X_ENABLED 10")
  81. cpp_quote("#define WZC_PROFILE_XML_ERROR_EAP_METHOD 11")
  82. cpp_quote("#define WZC_PROFILE_XML_ERROR_BAD_KEY_INDEX 12")
  83. cpp_quote("#define WZC_PROFILE_XML_ERROR_KEY_INDEX_RANGE 13")
  84. cpp_quote("#define WZC_PROFILE_XML_ERROR_BAD_NETWORK_KEY 14")
  85. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_INVALID_AUTH_FOR_CONNECTION_TYPE 15")
  86. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_INVALID_ENCRYPTION_FOR_AUTHMODE 16")
  87. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_KEY_REQUIRED 17")
  88. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_KEY_INDEX_REQUIRED 18")
  89. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_KEY_INDEX_NOT_APPLICABLE 19")
  90. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_1X_NOT_ALLOWED 20")
  91. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_1X_NOT_ALLOWED_KEY_REQUIRED 21")
  92. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_1X_NOT_ENABLED_KEY_PROVIDED 22")
  93. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_EAP_METHOD_REQUIRED 23")
  94. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_EAP_METHOD_NOT_APPLICABLE 24")
  95. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_WPA_NOT_SUPPORTED 25")
  96. cpp_quote("#define WZC_PROFILE_CONFIG_ERROR_WPA_ENCRYPTION_NOT_SUPPORTED 26")
  97. cpp_quote("#define WZC_PROFILE_SET_ERROR_DUPLICATE_NETWORK 27")
  98. cpp_quote("#define WZC_PROFILE_SET_ERROR_MEMORY_ALLOCATION 28")
  99. cpp_quote("#define WZC_PROFILE_SET_ERROR_READING_1X_CONFIG 29")
  100. cpp_quote("#define WZC_PROFILE_SET_ERROR_WRITING_1X_CONFIG 30")
  101. cpp_quote("#define WZC_PROFILE_SET_ERROR_WRITING_WZC_CFG 31")
  102. cpp_quote("#define WZC_PROFILE_API_ERROR_NOT_SUPPORTED 32")
  103. cpp_quote("#define WZC_PROFILE_API_ERROR_FAILED_TO_LOAD_XML 33")
  104. cpp_quote("#define WZC_PROFILE_API_ERROR_FAILED_TO_LOAD_SCHEMA 34")
  105. cpp_quote("#define WZC_PROFILE_API_ERROR_XML_VALIDATION_FAILED 35")
  106. cpp_quote("#define WZC_PROFILE_API_ERROR_INTERNAL 36")
  107. [
  108. object,
  109. uuid(c96fbd51-24dd-11d8-89fb-00904b2ea9c6),
  110. pointer_default(unique)
  111. ]
  112. interface IProvisioningProfileWireless : IUnknown
  113. {
  114. HRESULT CreateProfile(
  115. [in] BSTR bstrXMLWirelessConfigProfile,
  116. [in] BSTR bstrXMLConnectionConfigProfile,
  117. [in] GUID* pAdapterInstanceGuid,
  118. [out] ULONG* pulStatus
  119. );
  120. };
  121. //+---------------------------------------------------------------------------
  122. //
  123. //
  124. //
  125. [
  126. uuid(8244dedf-cf04-41fa-812f-e151f492c5aa),
  127. version(1.0)
  128. ]
  129. interface IFlashConfig : IUnknown
  130. {
  131. typedef enum tagFLASHCONFIG_FLAGS
  132. {
  133. FCF_INFRASTRUCTURE = 0,
  134. FCF_ADHOC = 1
  135. } FLASHCONFIG_FLAGS;
  136. HRESULT RunWizard ([in] HWND hwndParent, [in] FLASHCONFIG_FLAGS eFlags);
  137. };
  138. [
  139. uuid(789ed9b3-4873-49b9-87e0-55f51fcd5420),
  140. version(1.0),
  141. helpstring("NETPROV 1.0 Type Library")
  142. ]
  143. library NETPROVLib
  144. {
  145. importlib("stdole2.tlb");
  146. [
  147. uuid(2aa2b5fe-b846-4d07-810c-b21ee45320e3),
  148. helpstring("NetProvisioning Class")
  149. ]
  150. coclass NetProvisioning
  151. {
  152. [default] interface IProvisioningDomain;
  153. interface IProvisioningProfileWireless;
  154. };
  155. [
  156. uuid(9f63805a-42a7-4472-babc-642466c91d59),
  157. helpstring("FlashConfig Class")
  158. ]
  159. coclass FlashConfig
  160. {
  161. [default] interface IFlashConfig;
  162. };
  163. };