Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: mbcs -*-
- # Created by makepy.py version 0.5.00
- # By python version 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
- # From type library 'netprofm.dll'
- # On Mon Apr 02 07:08:51 2012
- """Network List 1.0 Type Library"""
- makepy_version = '0.5.00'
- python_version = 0x20605f0
- import win32com.client.CLSIDToClass, pythoncom, pywintypes
- import win32com.client.util
- from pywintypes import IID
- from win32com.client import Dispatch
- # The following 3 lines may need tweaking for the particular server
- # Candidates are pythoncom.Missing, .Empty and .ArgNotFound
- defaultNamedOptArg=pythoncom.Empty
- defaultNamedNotOptArg=pythoncom.Empty
- defaultUnnamedArg=pythoncom.Empty
- CLSID = IID('{DCB00D01-570F-4A9B-8D69-199FDBA5723B}')
- MajorVersion = 1
- MinorVersion = 0
- LibraryFlags = 8
- LCID = 0x0
- class constants:
- NLM_CONNECTION_PROPERTY_CHANGE_AUTHENTICATION=1 # from enum NLM_CONNECTION_PROPERTY_CHANGE
- NLM_CONNECTIVITY_DISCONNECTED =0 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV4_INTERNET=64 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV4_LOCALNETWORK=32 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV4_NOTRAFFIC=1 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV4_SUBNET =16 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV6_INTERNET=1024 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV6_LOCALNETWORK=512 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV6_NOTRAFFIC=2 # from enum NLM_CONNECTIVITY
- NLM_CONNECTIVITY_IPV6_SUBNET =256 # from enum NLM_CONNECTIVITY
- NLM_DOMAIN_TYPE_DOMAIN_AUTHENTICATED=2 # from enum NLM_DOMAIN_TYPE
- NLM_DOMAIN_TYPE_DOMAIN_NETWORK=1 # from enum NLM_DOMAIN_TYPE
- NLM_DOMAIN_TYPE_NON_DOMAIN_NETWORK=0 # from enum NLM_DOMAIN_TYPE
- NLM_ENUM_NETWORK_ALL =3 # from enum NLM_ENUM_NETWORK
- NLM_ENUM_NETWORK_CONNECTED =1 # from enum NLM_ENUM_NETWORK
- NLM_ENUM_NETWORK_DISCONNECTED =2 # from enum NLM_ENUM_NETWORK
- NLM_NETWORK_CATEGORY_DOMAIN_AUTHENTICATED=2 # from enum NLM_NETWORK_CATEGORY
- NLM_NETWORK_CATEGORY_PRIVATE =1 # from enum NLM_NETWORK_CATEGORY
- NLM_NETWORK_CATEGORY_PUBLIC =0 # from enum NLM_NETWORK_CATEGORY
- NLM_NETWORK_PROPERTY_CHANGE_CATEGORY_VALUE=16 # from enum NLM_NETWORK_PROPERTY_CHANGE
- NLM_NETWORK_PROPERTY_CHANGE_CONNECTION=1 # from enum NLM_NETWORK_PROPERTY_CHANGE
- NLM_NETWORK_PROPERTY_CHANGE_DESCRIPTION=2 # from enum NLM_NETWORK_PROPERTY_CHANGE
- NLM_NETWORK_PROPERTY_CHANGE_ICON=8 # from enum NLM_NETWORK_PROPERTY_CHANGE
- NLM_NETWORK_PROPERTY_CHANGE_NAME=4 # from enum NLM_NETWORK_PROPERTY_CHANGE
- from win32com.client import DispatchBaseClass
- class IEnumNetworkConnections(DispatchBaseClass):
- """Network Connection Enumerator"""
- CLSID = IID('{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
- coclass_clsid = None
- # Result is of type IEnumNetworkConnections
- def Clone(self):
- """Clone this enumeration."""
- ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), (),)
- if ret is not None:
- ret = Dispatch(ret, u'Clone', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- def Next(self, celt=defaultNamedNotOptArg, rgelt=pythoncom.Missing, pceltFetched=defaultNamedNotOptArg):
- """Get the next network connection in this enumeration."""
- return self._ApplyTypes_(1, 1, (24, 0), ((19, 1), (16393, 2), (16403, 3)), u'Next', None,celt
- , rgelt, pceltFetched)
- def Reset(self):
- """Restart this enumeration."""
- return self._oleobj_.InvokeTypes(3, LCID, 1, (24, 0), (),)
- def Skip(self, celt=defaultNamedNotOptArg):
- """Skip over a network connection."""
- return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((19, 1),),celt
- )
- _prop_map_get_ = {
- # Method '_NewEnum' returns object of type 'IEnumVARIANT'
- }
- _prop_map_put_ = {
- }
- def __iter__(self):
- "Return a Python iterator for this object"
- ob = self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),())
- return win32com.client.util.Iterator(ob, '{00020404-0000-0000-C000-000000000046}')
- def _NewEnum(self):
- "Create an enumerator from this object"
- return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),()),'{00020404-0000-0000-C000-000000000046}')
- def __getitem__(self, index):
- "Allow this class to be accessed as a collection"
- if '_enum_' not in self.__dict__:
- self.__dict__['_enum_'] = self._NewEnum()
- return self._enum_.__getitem__(index)
- class IEnumNetworks(DispatchBaseClass):
- """Network Enumerator"""
- CLSID = IID('{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
- coclass_clsid = None
- # Result is of type IEnumNetworks
- def Clone(self):
- """Clone this enumeration."""
- ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), (),)
- if ret is not None:
- ret = Dispatch(ret, u'Clone', '{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- def Next(self, celt=defaultNamedNotOptArg, rgelt=pythoncom.Missing, pceltFetched=defaultNamedNotOptArg):
- """Get the next network in this enumeration."""
- return self._ApplyTypes_(1, 1, (24, 0), ((19, 1), (16393, 2), (16403, 3)), u'Next', None,celt
- , rgelt, pceltFetched)
- def Reset(self):
- """Restart this enumeration."""
- return self._oleobj_.InvokeTypes(3, LCID, 1, (24, 0), (),)
- def Skip(self, celt=defaultNamedNotOptArg):
- """Skip over a network."""
- return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((19, 1),),celt
- )
- _prop_map_get_ = {
- # Method '_NewEnum' returns object of type 'IEnumVARIANT'
- }
- _prop_map_put_ = {
- }
- def __iter__(self):
- "Return a Python iterator for this object"
- ob = self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),())
- return win32com.client.util.Iterator(ob, '{00020404-0000-0000-C000-000000000046}')
- def _NewEnum(self):
- "Create an enumerator from this object"
- return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),()),'{00020404-0000-0000-C000-000000000046}')
- def __getitem__(self, index):
- "Allow this class to be accessed as a collection"
- if '_enum_' not in self.__dict__:
- self.__dict__['_enum_'] = self._NewEnum()
- return self._enum_.__getitem__(index)
- class INetwork(DispatchBaseClass):
- """Network"""
- CLSID = IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
- coclass_clsid = None
- def GetCategory(self):
- """Returns the category of this network."""
- return self._oleobj_.InvokeTypes(12, LCID, 1, (3, 0), (),)
- def GetConnectivity(self):
- """Returns the connectivity state of this network."""
- return self._oleobj_.InvokeTypes(11, LCID, 1, (3, 0), (),)
- def GetDescription(self):
- """Get the network description."""
- # Result is a Unicode object
- return self._oleobj_.InvokeTypes(3, LCID, 1, (8, 0), (),)
- def GetDomainType(self):
- """Get the domain type."""
- return self._oleobj_.InvokeTypes(6, LCID, 1, (3, 0), (),)
- def GetName(self):
- """Get the name of this network."""
- # Result is a Unicode object
- return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), (),)
- # Result is of type IEnumNetworkConnections
- def GetNetworkConnections(self):
- """Get the list of network connections for this network."""
- ret = self._oleobj_.InvokeTypes(7, LCID, 1, (9, 0), (),)
- if ret is not None:
- ret = Dispatch(ret, u'GetNetworkConnections', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- def GetNetworkId(self):
- """Get the network ID."""
- return self._ApplyTypes_(5, 1, (36, 0), (), u'GetNetworkId', None,)
- def GetTimeCreatedAndConnected(self, pdwLowDateTimeCreated=pythoncom.Missing, pdwHighDateTimeCreated=pythoncom.Missing, pdwLowDateTimeConnected=pythoncom.Missing, pdwHighDateTimeConnected=pythoncom.Missing):
- """Get the time and date this network was created."""
- return self._ApplyTypes_(8, 1, (24, 0), ((16403, 2), (16403, 2), (16403, 2), (16403, 2)), u'GetTimeCreatedAndConnected', None,pdwLowDateTimeCreated
- , pdwHighDateTimeCreated, pdwLowDateTimeConnected, pdwHighDateTimeConnected)
- def SetCategory(self, NewCategory=defaultNamedNotOptArg):
- """Sets the category of this network. This change takes effect immediately."""
- return self._oleobj_.InvokeTypes(13, LCID, 1, (24, 0), ((3, 1),),NewCategory
- )
- def SetDescription(self, szDescription=defaultNamedNotOptArg):
- """Set the network description. This change takes effect immediately."""
- return self._oleobj_.InvokeTypes(4, LCID, 1, (24, 0), ((8, 1),),szDescription
- )
- def SetName(self, szNetworkNewName=defaultNamedNotOptArg):
- """Rename this network. This change takes effect immediately."""
- return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((8, 1),),szNetworkNewName
- )
- _prop_map_get_ = {
- "IsConnected": (10, 2, (11, 0), (), "IsConnected", None),
- "IsConnectedToInternet": (9, 2, (11, 0), (), "IsConnectedToInternet", None),
- }
- _prop_map_put_ = {
- }
- class INetworkConnection(DispatchBaseClass):
- """Network Connection"""
- CLSID = IID('{DCB00005-570F-4A9B-8D69-199FDBA5723B}')
- coclass_clsid = None
- def GetAdapterId(self):
- """Returns the network adapter used by this connection. There might be multiple connections using the same AdapterId."""
- return self._ApplyTypes_(6, 1, (36, 0), (), u'GetAdapterId', None,)
- def GetConnectionId(self):
- """Returns a unique identifer for this connection."""
- return self._ApplyTypes_(5, 1, (36, 0), (), u'GetConnectionId', None,)
- def GetConnectivity(self):
- """Returns the connectivity state of this network connection."""
- return self._oleobj_.InvokeTypes(4, LCID, 1, (3, 0), (),)
- def GetDomainType(self):
- """Returns the domain type of this network connection."""
- return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), (),)
- # Result is of type INetwork
- def GetNetwork(self):
- """Returns the associated network of this connection."""
- ret = self._oleobj_.InvokeTypes(1, LCID, 1, (9, 0), (),)
- if ret is not None:
- ret = Dispatch(ret, u'GetNetwork', '{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- _prop_map_get_ = {
- "IsConnected": (3, 2, (11, 0), (), "IsConnected", None),
- "IsConnectedToInternet": (2, 2, (11, 0), (), "IsConnectedToInternet", None),
- }
- _prop_map_put_ = {
- }
- class INetworkListManager(DispatchBaseClass):
- """Network List Manager"""
- CLSID = IID('{DCB00000-570F-4A9B-8D69-199FDBA5723B}')
- coclass_clsid = IID('{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')
- def GetConnectivity(self):
- """Returns the aggregated connectivity state of all networks on this machine."""
- return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), (),)
- # Result is of type INetwork
- def GetNetwork(self, gdNetworkId=defaultNamedNotOptArg):
- """Get a network given a Network ID."""
- ret = self._oleobj_.InvokeTypes(2, LCID, 1, (9, 0), ((36, 1),),gdNetworkId
- )
- if ret is not None:
- ret = Dispatch(ret, u'GetNetwork', '{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- # Result is of type INetworkConnection
- def GetNetworkConnection(self, gdNetworkConnectionId=defaultNamedNotOptArg):
- """Get a network connection by a Network Connection ID."""
- ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), ((36, 1),),gdNetworkConnectionId
- )
- if ret is not None:
- ret = Dispatch(ret, u'GetNetworkConnection', '{DCB00005-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- # Result is of type IEnumNetworkConnections
- def GetNetworkConnections(self):
- """Enumerate the complete list of all connections in your compartment."""
- ret = self._oleobj_.InvokeTypes(3, LCID, 1, (9, 0), (),)
- if ret is not None:
- ret = Dispatch(ret, u'GetNetworkConnections', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- # Result is of type IEnumNetworks
- def GetNetworks(self, Flags=defaultNamedNotOptArg):
- """Enumerate the list of networks in your compartment."""
- ret = self._oleobj_.InvokeTypes(1, LCID, 1, (9, 0), ((3, 1),),Flags
- )
- if ret is not None:
- ret = Dispatch(ret, u'GetNetworks', '{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
- return ret
- _prop_map_get_ = {
- "IsConnected": (6, 2, (11, 0), (), "IsConnected", None),
- "IsConnectedToInternet": (5, 2, (11, 0), (), "IsConnectedToInternet", None),
- }
- _prop_map_put_ = {
- }
- from win32com.client import CoClassBaseClass
- class NetworkListManager(CoClassBaseClass): # A CoClass
- # Network List Manager
- CLSID = IID('{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')
- coclass_sources = [
- ]
- coclass_interfaces = [
- INetworkListManager,
- ]
- default_interface = INetworkListManager
- IEnumNetworkConnections_vtables_dispatch_ = 1
- IEnumNetworkConnections_vtables_ = [
- (( u'_NewEnum' , u'ppEnumVar' , ), -4, (-4, (), [ (16397, 10, None, "IID('{00020404-0000-0000-C000-000000000046}')") , ], 1 , 2 , 4 , 0 , 28 , (3, 0, None, None) , 65 , )),
- (( u'Next' , u'celt' , u'rgelt' , u'pceltFetched' , ), 1, (1, (), [
- (19, 1, None, None) , (16393, 2, None, "IID('{DCB00005-570F-4A9B-8D69-199FDBA5723B}')") , (16403, 3, None, None) , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
- (( u'Skip' , u'celt' , ), 2, (2, (), [ (19, 1, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
- (( u'Reset' , ), 3, (3, (), [ ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
- (( u'Clone' , u'ppEnumNetwork' , ), 4, (4, (), [ (16393, 10, None, "IID('{DCB00006-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
- ]
- IEnumNetworks_vtables_dispatch_ = 1
- IEnumNetworks_vtables_ = [
- (( u'_NewEnum' , u'ppEnumVar' , ), -4, (-4, (), [ (16397, 10, None, "IID('{00020404-0000-0000-C000-000000000046}')") , ], 1 , 2 , 4 , 0 , 28 , (3, 0, None, None) , 65 , )),
- (( u'Next' , u'celt' , u'rgelt' , u'pceltFetched' , ), 1, (1, (), [
- (19, 1, None, None) , (16393, 2, None, "IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')") , (16403, 3, None, None) , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
- (( u'Skip' , u'celt' , ), 2, (2, (), [ (19, 1, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
- (( u'Reset' , ), 3, (3, (), [ ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
- (( u'Clone' , u'ppEnumNetwork' , ), 4, (4, (), [ (16393, 10, None, "IID('{DCB00003-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
- ]
- IErrorLog_vtables_dispatch_ = 0
- IErrorLog_vtables_ = [
- (( u'AddError' , u'pszPropName' , u'pExcepInfo' , ), 1610678272, (1610678272, (), [ (31, 1, None, None) ,
- (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
- ]
- INetwork_vtables_dispatch_ = 1
- INetwork_vtables_ = [
- (( u'GetName' , u'pszNetworkName' , ), 1, (1, (), [ (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
- (( u'SetName' , u'szNetworkNewName' , ), 2, (2, (), [ (8, 1, None, None) , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
- (( u'GetDescription' , u'pszDescription' , ), 3, (3, (), [ (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
- (( u'SetDescription' , u'szDescription' , ), 4, (4, (), [ (8, 1, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
- (( u'GetNetworkId' , u'pgdGuidNetworkId' , ), 5, (5, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
- (( u'GetDomainType' , u'pNetworkType' , ), 6, (6, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
- (( u'GetNetworkConnections' , u'ppEnumNetworkConnection' , ), 7, (7, (), [ (16393, 10, None, "IID('{DCB00006-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
- (( u'GetTimeCreatedAndConnected' , u'pdwLowDateTimeCreated' , u'pdwHighDateTimeCreated' , u'pdwLowDateTimeConnected' , u'pdwHighDateTimeConnected' ,
- ), 8, (8, (), [ (16403, 2, None, None) , (16403, 2, None, None) , (16403, 2, None, None) , (16403, 2, None, None) , ], 1 , 1 , 4 , 0 , 56 , (3, 0, None, None) , 0 , )),
- (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 9, (9, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 60 , (3, 0, None, None) , 0 , )),
- (( u'IsConnected' , u'pbIsConnected' , ), 10, (10, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 64 , (3, 0, None, None) , 0 , )),
- (( u'GetConnectivity' , u'pConnectivity' , ), 11, (11, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 68 , (3, 0, None, None) , 0 , )),
- (( u'GetCategory' , u'pCategory' , ), 12, (12, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 72 , (3, 0, None, None) , 0 , )),
- (( u'SetCategory' , u'NewCategory' , ), 13, (13, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 76 , (3, 0, None, None) , 0 , )),
- ]
- INetworkConnection_vtables_dispatch_ = 1
- INetworkConnection_vtables_ = [
- (( u'GetNetwork' , u'ppNetwork' , ), 1, (1, (), [ (16393, 10, None, "IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
- (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 2, (2, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
- (( u'IsConnected' , u'pbIsConnected' , ), 3, (3, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
- (( u'GetConnectivity' , u'pConnectivity' , ), 4, (4, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
- (( u'GetConnectionId' , u'pgdConnectionId' , ), 5, (5, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
- (( u'GetAdapterId' , u'pgdAdapterId' , ), 6, (6, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
- (( u'GetDomainType' , u'pDomainType' , ), 7, (7, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
- ]
- INetworkConnectionEvents_vtables_dispatch_ = 0
- INetworkConnectionEvents_vtables_ = [
- (( u'NetworkConnectionConnectivityChanged' , u'connectionId' , u'newConnectivity' , ), 1610678272, (1610678272, (), [ (36, 1, None, None) ,
- (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
- (( u'NetworkConnectionPropertyChanged' , u'connectionId' , u'Flags' , ), 1610678273, (1610678273, (), [ (36, 1, None, None) ,
- (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
- ]
- INetworkEvents_vtables_dispatch_ = 0
- INetworkEvents_vtables_ = [
- (( u'NetworkAdded' , u'networkId' , ), 1610678272, (1610678272, (), [ (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
- (( u'NetworkDeleted' , u'networkId' , ), 1610678273, (1610678273, (), [ (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
- (( u'NetworkConnectivityChanged' , u'networkId' , u'newConnectivity' , ), 1610678274, (1610678274, (), [ (36, 1, None, None) ,
- (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 20 , (3, 0, None, None) , 0 , )),
- (( u'NetworkPropertyChanged' , u'networkId' , u'Flags' , ), 1610678275, (1610678275, (), [ (36, 1, None, None) ,
- (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 24 , (3, 0, None, None) , 0 , )),
- ]
- INetworkListManager_vtables_dispatch_ = 1
- INetworkListManager_vtables_ = [
- (( u'GetNetworks' , u'Flags' , u'ppEnumNetwork' , ), 1, (1, (), [ (3, 1, None, None) ,
- (16393, 10, None, "IID('{DCB00003-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
- (( u'GetNetwork' , u'gdNetworkId' , u'ppNetwork' , ), 2, (2, (), [ (36, 1, None, None) ,
- (16393, 10, None, "IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
- (( u'GetNetworkConnections' , u'ppEnum' , ), 3, (3, (), [ (16393, 10, None, "IID('{DCB00006-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
- (( u'GetNetworkConnection' , u'gdNetworkConnectionId' , u'ppNetworkConnection' , ), 4, (4, (), [ (36, 1, None, None) ,
- (16393, 10, None, "IID('{DCB00005-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
- (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 5, (5, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
- (( u'IsConnected' , u'pbIsConnected' , ), 6, (6, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
- (( u'GetConnectivity' , u'pConnectivity' , ), 7, (7, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
- ]
- INetworkListManagerEvents_vtables_dispatch_ = 0
- INetworkListManagerEvents_vtables_ = [
- (( u'ConnectivityChanged' , u'newConnectivity' , ), 1610678272, (1610678272, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
- ]
- IPropertyBag_vtables_dispatch_ = 0
- IPropertyBag_vtables_ = [
- (( u'RemoteRead' , u'pszPropName' , u'pVar' , u'pErrorLog' , u'varType' ,
- u'pUnkObj' , ), 1610678272, (1610678272, (), [ (31, 1, None, None) , (16396, 2, None, None) , (13, 1, None, "IID('{3127CA40-446E-11CE-8135-00AA004BB851}')") ,
- (19, 1, None, None) , (13, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
- (( u'Write' , u'pszPropName' , u'pVar' , ), 1610678273, (1610678273, (), [ (31, 1, None, None) ,
- (16396, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
- ]
- RecordMap = {
- }
- CLSIDToClassMap = {
- '{DCB00000-570F-4A9B-8D69-199FDBA5723B}' : INetworkListManager,
- '{DCB00C01-570F-4A9B-8D69-199FDBA5723B}' : NetworkListManager,
- '{DCB00002-570F-4A9B-8D69-199FDBA5723B}' : INetwork,
- '{DCB00003-570F-4A9B-8D69-199FDBA5723B}' : IEnumNetworks,
- '{DCB00005-570F-4A9B-8D69-199FDBA5723B}' : INetworkConnection,
- '{DCB00006-570F-4A9B-8D69-199FDBA5723B}' : IEnumNetworkConnections,
- }
- CLSIDToPackageMap = {}
- win32com.client.CLSIDToClass.RegisterCLSIDsFromDict( CLSIDToClassMap )
- VTablesToPackageMap = {}
- VTablesToClassMap = {
- '{55272A00-42CB-11CE-8135-00AA004BB851}' : 'IPropertyBag',
- '{3127CA40-446E-11CE-8135-00AA004BB851}' : 'IErrorLog',
- '{DCB00000-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkListManager',
- '{DCB00001-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkListManagerEvents',
- '{DCB00002-570F-4A9B-8D69-199FDBA5723B}' : 'INetwork',
- '{DCB00003-570F-4A9B-8D69-199FDBA5723B}' : 'IEnumNetworks',
- '{DCB00004-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkEvents',
- '{DCB00005-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkConnection',
- '{DCB00006-570F-4A9B-8D69-199FDBA5723B}' : 'IEnumNetworkConnections',
- '{DCB00007-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkConnectionEvents',
- }
- NamesToIIDMap = {
- 'INetworkConnection' : '{DCB00005-570F-4A9B-8D69-199FDBA5723B}',
- 'IErrorLog' : '{3127CA40-446E-11CE-8135-00AA004BB851}',
- 'INetworkEvents' : '{DCB00004-570F-4A9B-8D69-199FDBA5723B}',
- 'IEnumNetworkConnections' : '{DCB00006-570F-4A9B-8D69-199FDBA5723B}',
- 'INetworkListManager' : '{DCB00000-570F-4A9B-8D69-199FDBA5723B}',
- 'IPropertyBag' : '{55272A00-42CB-11CE-8135-00AA004BB851}',
- 'INetwork' : '{DCB00002-570F-4A9B-8D69-199FDBA5723B}',
- 'INetworkConnectionEvents' : '{DCB00007-570F-4A9B-8D69-199FDBA5723B}',
- 'INetworkListManagerEvents' : '{DCB00001-570F-4A9B-8D69-199FDBA5723B}',
- 'IEnumNetworks' : '{DCB00003-570F-4A9B-8D69-199FDBA5723B}',
- }
- win32com.client.constants.__dicts__.append(constants.__dict__)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement