{ "Constants":[{ "Name":"WCM_API_VERSION_1_0" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":1 ,"Attrs":[] },{ "Name":"WCM_API_VERSION" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":1 ,"Attrs":[] },{ "Name":"WCM_UNKNOWN_DATAPLAN_STATUS" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":4294967295 ,"Attrs":[] },{ "Name":"WCM_MAX_PROFILE_NAME" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":256 ,"Attrs":[] },{ "Name":"NET_INTERFACE_FLAG_NONE" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":0 ,"Attrs":[] },{ "Name":"NET_INTERFACE_FLAG_CONNECT_IF_NEEDED" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":1 ,"Attrs":[] }], "Types":[{ "Name":"WCM_PROPERTY" ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" ,"Flags":false ,"Scoped":false ,"Values":[ {"Name":"wcm_global_property_domain_policy","Value":0} ,{"Name":"wcm_global_property_minimize_policy","Value":1} ,{"Name":"wcm_global_property_roaming_policy","Value":2} ,{"Name":"wcm_global_property_powermanagement_policy","Value":3} ,{"Name":"wcm_intf_property_connection_cost","Value":4} ,{"Name":"wcm_intf_property_dataplan_status","Value":5} ,{"Name":"wcm_intf_property_hotspot_profile","Value":6} ] ,"IntegerBase":"Int32" },{ "Name":"WCM_MEDIA_TYPE" ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" ,"Flags":false ,"Scoped":false ,"Values":[ {"Name":"wcm_media_unknown","Value":0} ,{"Name":"wcm_media_ethernet","Value":1} ,{"Name":"wcm_media_wlan","Value":2} ,{"Name":"wcm_media_mbn","Value":3} ,{"Name":"wcm_media_invalid","Value":4} ,{"Name":"wcm_media_max","Value":5} ] ,"IntegerBase":"Int32" },{ "Name":"WCM_POLICY_VALUE" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"fValue","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ,{"Name":"fIsGroupPolicy","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_PROFILE_INFO" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"strProfileName","Type":{"Kind":"Array","Shape":{"Size":256},"Child":{"Kind":"Native","Name":"Char"}},"Attrs":[]} ,{"Name":"AdapterGUID","Type":{"Kind":"Native","Name":"Guid"},"Attrs":[]} ,{"Name":"Media","Type":{"Kind":"ApiRef","Name":"WCM_MEDIA_TYPE","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_PROFILE_INFO_LIST" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"dwNumberOfItems","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"ProfileInfo","Type":{"Kind":"Array","Shape":null,"Child":{"Kind":"ApiRef","Name":"WCM_PROFILE_INFO","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_CONNECTION_COST" ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" ,"Flags":false ,"Scoped":false ,"Values":[ {"Name":"WCM_CONNECTION_COST_UNKNOWN","Value":0} ,{"Name":"WCM_CONNECTION_COST_UNRESTRICTED","Value":1} ,{"Name":"WCM_CONNECTION_COST_FIXED","Value":2} ,{"Name":"WCM_CONNECTION_COST_VARIABLE","Value":4} ,{"Name":"WCM_CONNECTION_COST_OVERDATALIMIT","Value":65536} ,{"Name":"WCM_CONNECTION_COST_CONGESTED","Value":131072} ,{"Name":"WCM_CONNECTION_COST_ROAMING","Value":262144} ,{"Name":"WCM_CONNECTION_COST_APPROACHINGDATALIMIT","Value":524288} ] ,"IntegerBase":"Int32" },{ "Name":"WCM_CONNECTION_COST_SOURCE" ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" ,"Flags":false ,"Scoped":false ,"Values":[ {"Name":"WCM_CONNECTION_COST_SOURCE_DEFAULT","Value":0} ,{"Name":"WCM_CONNECTION_COST_SOURCE_GP","Value":1} ,{"Name":"WCM_CONNECTION_COST_SOURCE_USER","Value":2} ,{"Name":"WCM_CONNECTION_COST_SOURCE_OPERATOR","Value":3} ] ,"IntegerBase":"Int32" },{ "Name":"WCM_CONNECTION_COST_DATA" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"ConnectionCost","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"CostSource","Type":{"Kind":"ApiRef","Name":"WCM_CONNECTION_COST_SOURCE","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_TIME_INTERVAL" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"wYear","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wMonth","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wDay","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wHour","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wMinute","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wSecond","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ,{"Name":"wMilliseconds","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_USAGE_DATA" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"UsageInMegabytes","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"LastSyncTime","Type":{"Kind":"ApiRef","Name":"FILETIME","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_BILLING_CYCLE_INFO" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"StartDate","Type":{"Kind":"ApiRef","Name":"FILETIME","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ,{"Name":"Duration","Type":{"Kind":"ApiRef","Name":"WCM_TIME_INTERVAL","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":[]} ,{"Name":"Reset","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"WCM_DATAPLAN_STATUS" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"UsageData","Type":{"Kind":"ApiRef","Name":"WCM_USAGE_DATA","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":[]} ,{"Name":"DataLimitInMegabytes","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"InboundBandwidthInKbps","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"OutboundBandwidthInKbps","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"BillingCycle","Type":{"Kind":"ApiRef","Name":"WCM_BILLING_CYCLE_INFO","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":[]} ,{"Name":"MaxTransferSizeInMegabytes","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"Reserved","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"ONDEMAND_NOTIFICATION_CALLBACK" ,"Architectures":[] ,"Platform":null ,"Kind":"FunctionPointer" ,"SetLastError":false ,"ReturnType":{"Kind":"Native","Name":"Void"} ,"ReturnAttrs":[] ,"Attrs":[] ,"Params":[ {"Name":"param0","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Optional"]} ] },{ "Name":"NET_INTERFACE_CONTEXT" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"InterfaceIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"ConfigurationName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ] ,"NestedTypes":[] },{ "Name":"NET_INTERFACE_CONTEXT_TABLE" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" ,"Size":0 ,"PackingSize":0 ,"Attrs":[] ,"Fields":[ {"Name":"InterfaceContextHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ,{"Name":"NumberOfEntries","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ,{"Name":"InterfaceContextArray","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"NET_INTERFACE_CONTEXT","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}},"Attrs":[]} ] ,"NestedTypes":[] }], "Functions":[{ "Name":"WcmQueryProperty" ,"SetLastError":false ,"DllImport":"wcmapi.dll" ,"ReturnType":{"Kind":"Native","Name":"UInt32"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.0" ,"Attrs":[] ,"Params":[ {"Name":"pInterface","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Optional","Const"]} ,{"Name":"strProfileName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]} ,{"Name":"Property","Type":{"Kind":"ApiRef","Name":"WCM_PROPERTY","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":["In"]} ,{"Name":"pReserved","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Out","Reserved"]} ,{"Name":"pdwDataSize","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} ,{"Name":"ppData","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}}},"Attrs":["Out","Optional"]} ] },{ "Name":"WcmSetProperty" ,"SetLastError":false ,"DllImport":"wcmapi.dll" ,"ReturnType":{"Kind":"Native","Name":"UInt32"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.0" ,"Attrs":[] ,"Params":[ {"Name":"pInterface","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Optional","Const"]} ,{"Name":"strProfileName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]} ,{"Name":"Property","Type":{"Kind":"ApiRef","Name":"WCM_PROPERTY","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":["In"]} ,{"Name":"pReserved","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Out","Reserved"]} ,{"Name":"dwDataSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"pbData","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":4,"Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In","Optional","Const"]} ] },{ "Name":"WcmGetProfileList" ,"SetLastError":false ,"DllImport":"wcmapi.dll" ,"ReturnType":{"Kind":"Native","Name":"UInt32"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.0" ,"Attrs":[] ,"Params":[ {"Name":"pReserved","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Out","Reserved"]} ,{"Name":"ppProfileList","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"WCM_PROFILE_INFO_LIST","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}}},"Attrs":["Out"]} ] },{ "Name":"WcmSetProfileList" ,"SetLastError":false ,"DllImport":"wcmapi.dll" ,"ReturnType":{"Kind":"Native","Name":"UInt32"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.0" ,"Attrs":[] ,"Params":[ {"Name":"pProfileList","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"WCM_PROFILE_INFO_LIST","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}},"Attrs":["In"]} ,{"Name":"dwPosition","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"fIgnoreUnknownProfiles","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]} ,{"Name":"pReserved","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Out","Reserved"]} ] },{ "Name":"WcmFreeMemory" ,"SetLastError":false ,"DllImport":"wcmapi.dll" ,"ReturnType":{"Kind":"Native","Name":"Void"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.0" ,"Attrs":[] ,"Params":[ {"Name":"pMemory","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["Out"]} ] },{ "Name":"OnDemandGetRoutingHint" ,"SetLastError":false ,"DllImport":"OnDemandConnRouteHelper.dll" ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.1" ,"Attrs":[] ,"Params":[ {"Name":"destinationHostName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]} ,{"Name":"interfaceIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} ] },{ "Name":"OnDemandRegisterNotification" ,"SetLastError":false ,"DllImport":"OnDemandConnRouteHelper.dll" ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.1" ,"Attrs":[] ,"Params":[ {"Name":"callback","Type":{"Kind":"ApiRef","Name":"ONDEMAND_NOTIFICATION_CALLBACK","TargetKind":"FunctionPointer","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]},"Attrs":["In"]} ,{"Name":"callbackContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Optional"]} ,{"Name":"registrationHandle","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out"]} ] },{ "Name":"OnDemandUnRegisterNotification" ,"SetLastError":false ,"DllImport":"OnDemandConnRouteHelper.dll" ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows8.1" ,"Attrs":[] ,"Params":[ {"Name":"registrationHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]} ] },{ "Name":"GetInterfaceContextTableForHostName" ,"SetLastError":false ,"DllImport":"OnDemandConnRouteHelper.dll" ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows10.0.10240" ,"Attrs":[] ,"Params":[ {"Name":"HostName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]} ,{"Name":"ProxyName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]} ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"ConnectionProfileFilterRawData","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["In",{"Kind":"MemorySize","BytesParamIndex":4},"Optional"]} ,{"Name":"ConnectionProfileFilterRawDataSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"InterfaceContextTable","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"NET_INTERFACE_CONTEXT_TABLE","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}}},"Attrs":["Out"]} ] },{ "Name":"FreeInterfaceContextTable" ,"SetLastError":false ,"DllImport":"OnDemandConnRouteHelper.dll" ,"ReturnType":{"Kind":"Native","Name":"Void"} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":"windows10.0.10240" ,"Attrs":[] ,"Params":[ {"Name":"InterfaceContextTable","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"NET_INTERFACE_CONTEXT_TABLE","TargetKind":"Default","Api":"NetworkManagement.WindowsConnectionManager","Parents":[]}},"Attrs":["In"]} ] }], "UnicodeAliases":[ ] }