[1166] | 1 | /**
|
---|
| 2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
| 3 | * This file is part of the mingw-w64 runtime package.
|
---|
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | cpp_quote("#include <winapifamily.h>")
|
---|
| 8 |
|
---|
| 9 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
| 10 |
|
---|
| 11 | #ifndef DO_NO_IMPORTS
|
---|
| 12 | import "unknwn.idl";
|
---|
| 13 | import "wtypes.idl";
|
---|
| 14 | import "netcfgx.idl";
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | cpp_quote("")
|
---|
| 18 | [local, object, uuid(8d84bd35-e227-11d2-b700-00a0c98a6a85), pointer_default(unique)]
|
---|
| 19 | interface INetCfgPnpReconfigCallback : IUnknown {
|
---|
| 20 | typedef [v1_enum] enum tagNCPNP_RECONFIG_LAYER {
|
---|
| 21 | NCRL_NDIS = 1,
|
---|
| 22 | NCRL_TDI = 2
|
---|
| 23 | } NCPNP_RECONFIG_LAYER;
|
---|
| 24 |
|
---|
| 25 | HRESULT SendPnpReconfig ([in] NCPNP_RECONFIG_LAYER Layer, [in] LPCWSTR pszwUpper, [in] LPCWSTR pszwLower, [in] PVOID pvData, [in] DWORD dwSizeOfData);
|
---|
| 26 | };
|
---|
| 27 |
|
---|
| 28 | cpp_quote("")
|
---|
| 29 | [local, object, uuid(932238df-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 30 | interface INetCfgComponentControl : IUnknown {
|
---|
| 31 | HRESULT Initialize ([in] INetCfgComponent *pIComp, [in] INetCfg *pINetCfg, [in] WINBOOL fInstalling);
|
---|
| 32 | HRESULT ApplyRegistryChanges ();
|
---|
| 33 | HRESULT ApplyPnpChanges ([in] INetCfgPnpReconfigCallback *pICallback);
|
---|
| 34 | HRESULT CancelChanges ();
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 | cpp_quote("")
|
---|
| 38 | [local, object, uuid(932238e3-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 39 | interface INetCfgComponentSetup : IUnknown {
|
---|
| 40 | typedef [v1_enum] enum tagNETWORK_INSTALL_TIME {
|
---|
| 41 | NSF_PRIMARYINSTALL = 0x00000001,
|
---|
| 42 | NSF_POSTSYSINSTALL = 0x00000002
|
---|
| 43 | } NETWORK_INSTALL_TIME;
|
---|
| 44 |
|
---|
| 45 | typedef [v1_enum] enum tagNETWORK_UPGRADE_TYPE {
|
---|
| 46 | NSF_WIN16_UPGRADE = 0x00000010,
|
---|
| 47 | NSF_WIN95_UPGRADE = 0x00000020,
|
---|
| 48 | NSF_WINNT_WKS_UPGRADE = 0x00000040,
|
---|
| 49 | NSF_WINNT_SVR_UPGRADE = 0x00000080,
|
---|
| 50 | NSF_WINNT_SBS_UPGRADE = 0x00000100,
|
---|
| 51 | NSF_COMPONENT_UPDATE = 0x00000200
|
---|
| 52 | } NETWORK_UPGRADE_TYPE;
|
---|
| 53 |
|
---|
| 54 | HRESULT Install ([in] DWORD dwSetupFlags);
|
---|
| 55 | HRESULT Upgrade ([in] DWORD dwSetupFlags, [in] DWORD dwUpgradeFomBuildNo );
|
---|
| 56 | HRESULT ReadAnswerFile ([in] LPCWSTR pszwAnswerFile, [in] LPCWSTR pszwAnswerSections);
|
---|
| 57 | HRESULT Removing ();
|
---|
| 58 | };
|
---|
| 59 |
|
---|
| 60 | cpp_quote("")
|
---|
| 61 | [local, object, uuid(932238e0-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 62 | interface INetCfgComponentPropertyUi : IUnknown {
|
---|
| 63 | typedef [v1_enum] enum tagDEFAULT_PAGES {
|
---|
| 64 | DPP_ADVANCED = 1,
|
---|
| 65 | } DEFAULT_PAGES;
|
---|
| 66 |
|
---|
| 67 | HRESULT QueryPropertyUi ([in] IUnknown *pUnkReserved);
|
---|
| 68 | HRESULT SetContext ([in] IUnknown *pUnkReserved);
|
---|
| 69 | HRESULT MergePropPages ([in, out] DWORD *pdwDefPages, [out] BYTE **pahpspPrivate, [out] UINT *pcPages, [in] HWND hwndParent, [in] LPCWSTR *pszStartPage);
|
---|
| 70 | HRESULT ValidateProperties ([in] HWND hwndSheet);
|
---|
| 71 | HRESULT ApplyProperties ();
|
---|
| 72 | HRESULT CancelProperties ();
|
---|
| 73 | };
|
---|
| 74 |
|
---|
| 75 | cpp_quote("")
|
---|
| 76 | [local, object, uuid(932238e1-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 77 | interface INetCfgComponentNotifyBinding : IUnknown {
|
---|
| 78 | typedef [v1_enum] enum tagBIND_FLAGS1 {
|
---|
| 79 | NCN_ADD = 0x00000001,
|
---|
| 80 | NCN_REMOVE = 0x00000002,
|
---|
| 81 | NCN_UPDATE = 0x00000004,
|
---|
| 82 | NCN_ENABLE = 0x00000010,
|
---|
| 83 | NCN_DISABLE = 0x00000020,
|
---|
| 84 | NCN_BINDING_PATH = 0x00000100,
|
---|
| 85 | NCN_PROPERTYCHANGE = 0x00000200,
|
---|
| 86 | NCN_NET = 0x00010000,
|
---|
| 87 | NCN_NETTRANS = 0x00020000,
|
---|
| 88 | NCN_NETCLIENT = 0x00040000,
|
---|
| 89 | NCN_NETSERVICE = 0x00080000
|
---|
| 90 | } BIND_FLAGS1;
|
---|
| 91 |
|
---|
| 92 | HRESULT QueryBindingPath ([in] DWORD dwChangeFlag, [in] INetCfgBindingPath *pIPath);
|
---|
| 93 | HRESULT NotifyBindingPath ([in] DWORD dwChangeFlag, [in] INetCfgBindingPath *pIPath);
|
---|
| 94 | };
|
---|
| 95 |
|
---|
| 96 | cpp_quote("")
|
---|
| 97 | [local, object, uuid(932238e2-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 98 | interface INetCfgComponentNotifyGlobal : IUnknown {
|
---|
| 99 | HRESULT GetSupportedNotifications ([out] DWORD *dwNotifications);
|
---|
| 100 | HRESULT SysQueryBindingPath ([in] DWORD dwChangeFlag, [in] INetCfgBindingPath *pIPath);
|
---|
| 101 | HRESULT SysNotifyBindingPath ([in] DWORD dwChangeFlag, [in] INetCfgBindingPath *pIPath);
|
---|
| 102 | HRESULT SysNotifyComponent ([in] DWORD dwChangeFlag, [in] INetCfgComponent *pIComp);
|
---|
| 103 | };
|
---|
| 104 |
|
---|
| 105 | cpp_quote("")
|
---|
| 106 | [local, object, uuid(932238e4-bea1-11d0-9298-00c04fc99dcf), pointer_default(unique)]
|
---|
| 107 | interface INetCfgComponentUpperEdge : IUnknown {
|
---|
| 108 | HRESULT GetInterfaceIdsForAdapter ([in] INetCfgComponent *pAdapter, [out] DWORD *pdwNumInterfaces, [out] GUID **ppguidInterfaceIds);
|
---|
| 109 | HRESULT AddInterfacesToAdapter ([in] INetCfgComponent *pAdapter, [in] DWORD dwNumInterfaces);
|
---|
| 110 | HRESULT RemoveInterfacesFromAdapter ([in] INetCfgComponent *pAdapter, [in] DWORD dwNumInterfaces, [in] const GUID *pguidInterfaceIds);
|
---|
| 111 | };
|
---|
| 112 |
|
---|
| 113 | cpp_quote("")
|
---|
| 114 | [object, uuid(c08956a6-1cd3-11d1-b1c5-00805fc1270e), pointer_default(unique)]
|
---|
| 115 | interface INetLanConnectionUiInfo : IUnknown {
|
---|
| 116 | HRESULT GetDeviceGuid ([out] GUID *pguid);
|
---|
| 117 | };
|
---|
| 118 |
|
---|
| 119 | cpp_quote("")
|
---|
| 120 | [object, uuid(faedcf58-31fe-11d1-aad2-00805fc1270e), pointer_default(unique)]
|
---|
| 121 | interface INetRasConnectionIpUiInfo : IUnknown {
|
---|
| 122 | typedef enum tagRASCON_IPUI_FLAGS {
|
---|
| 123 | RCUIF_VPN = 0x00000001,
|
---|
| 124 | RCUIF_DEMAND_DIAL = 0x00000002,
|
---|
| 125 | RCUIF_NOT_ADMIN = 0x00000004,
|
---|
| 126 | RCUIF_USE_IPv4_STATICADDRESS = 0x00000008,
|
---|
| 127 | RCUIF_USE_IPv4_NAME_SERVERS = 0x00000010,
|
---|
| 128 | RCUIF_USE_IPv4_REMOTE_GATEWAY = 0x00000020,
|
---|
| 129 | RCUIF_USE_IPv4_EXPLICIT_METRIC = 0x00000040,
|
---|
| 130 | RCUIF_USE_HEADER_COMPRESSION = 0x00000080,
|
---|
| 131 | RCUIF_USE_DISABLE_REGISTER_DNS = 0x00000100,
|
---|
| 132 | RCUIF_USE_PRIVATE_DNS_SUFFIX = 0x00000200,
|
---|
| 133 | RCUIF_ENABLE_NBT = 0x00000400,
|
---|
| 134 | RCUIF_USE_IPv6_STATICADDRESS = 0x00000800,
|
---|
| 135 | RCUIF_USE_IPv6_NAME_SERVERS = 0x00001000,
|
---|
| 136 | RCUIF_USE_IPv6_REMOTE_GATEWAY = 0x00002000,
|
---|
| 137 | RCUIF_USE_IPv6_EXPLICIT_METRIC = 0x00004000,
|
---|
| 138 | RCUIF_DISABLE_CLASS_BASED_ROUTE = 0x00008000
|
---|
| 139 | } RASCON_UIINFO_FLAGS;
|
---|
| 140 |
|
---|
| 141 | typedef struct tagRASCON_IPUI {
|
---|
| 142 | GUID guidConnection;
|
---|
| 143 | WINBOOL fIPv6Cfg;
|
---|
| 144 | DWORD dwFlags;
|
---|
| 145 | WCHAR pszwIpAddr[16];
|
---|
| 146 | WCHAR pszwDnsAddr[16];
|
---|
| 147 | WCHAR pszwDns2Addr[16];
|
---|
| 148 | WCHAR pszwWinsAddr[16];
|
---|
| 149 | WCHAR pszwWins2Addr[16];
|
---|
| 150 | WCHAR pszwDnsSuffix[256];
|
---|
| 151 | WCHAR pszwIpv6Addr[65];
|
---|
| 152 | DWORD dwIpv6PrefixLength;
|
---|
| 153 | WCHAR pszwIpv6DnsAddr[65];
|
---|
| 154 | WCHAR pszwIpv6Dns2Addr[65];
|
---|
| 155 | DWORD dwIPv4InfMetric;
|
---|
| 156 | DWORD dwIPv6InfMetric;
|
---|
| 157 | } RASCON_IPUI;
|
---|
| 158 |
|
---|
| 159 | HRESULT GetUiInfo ([out] RASCON_IPUI *pInfo);
|
---|
| 160 | };
|
---|
| 161 |
|
---|
| 162 | cpp_quote("")
|
---|
| 163 | [local, object, uuid(c0e8ae9a-306e-11d1-aacf-00805fc1270e), pointer_default(unique)]
|
---|
| 164 | interface INetCfgComponentSysPrep : IUnknown {
|
---|
| 165 | HRESULT SaveAdapterParameters([in] INetCfgSysPrep *pncsp, [in] LPCWSTR pszwAnswerSections, [in] GUID *pAdapterInstanceGuid);
|
---|
| 166 | HRESULT RestoreAdapterParameters([in] LPCWSTR pszwAnswerFile, [in] LPCWSTR pszwAnswerSection, [in] GUID *pAdapterInstanceGuid);
|
---|
| 167 | };
|
---|
| 168 |
|
---|
| 169 | cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
---|