Advertisement
ranveer5289

Pywin32

Apr 1st, 2012
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 22.71 KB | None | 0 0
  1. # -*- coding: mbcs -*-
  2. # Created by makepy.py version 0.5.00
  3. # By python version 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
  4. # From type library 'netprofm.dll'
  5. # On Mon Apr 02 07:08:51 2012
  6. """Network List 1.0 Type Library"""
  7. makepy_version = '0.5.00'
  8. python_version = 0x20605f0
  9.  
  10. import win32com.client.CLSIDToClass, pythoncom, pywintypes
  11. import win32com.client.util
  12. from pywintypes import IID
  13. from win32com.client import Dispatch
  14.  
  15. # The following 3 lines may need tweaking for the particular server
  16. # Candidates are pythoncom.Missing, .Empty and .ArgNotFound
  17. defaultNamedOptArg=pythoncom.Empty
  18. defaultNamedNotOptArg=pythoncom.Empty
  19. defaultUnnamedArg=pythoncom.Empty
  20.  
  21. CLSID = IID('{DCB00D01-570F-4A9B-8D69-199FDBA5723B}')
  22. MajorVersion = 1
  23. MinorVersion = 0
  24. LibraryFlags = 8
  25. LCID = 0x0
  26.  
  27. class constants:
  28.     NLM_CONNECTION_PROPERTY_CHANGE_AUTHENTICATION=1          # from enum NLM_CONNECTION_PROPERTY_CHANGE
  29.     NLM_CONNECTIVITY_DISCONNECTED =0          # from enum NLM_CONNECTIVITY
  30.     NLM_CONNECTIVITY_IPV4_INTERNET=64         # from enum NLM_CONNECTIVITY
  31.     NLM_CONNECTIVITY_IPV4_LOCALNETWORK=32         # from enum NLM_CONNECTIVITY
  32.     NLM_CONNECTIVITY_IPV4_NOTRAFFIC=1          # from enum NLM_CONNECTIVITY
  33.     NLM_CONNECTIVITY_IPV4_SUBNET  =16         # from enum NLM_CONNECTIVITY
  34.     NLM_CONNECTIVITY_IPV6_INTERNET=1024       # from enum NLM_CONNECTIVITY
  35.     NLM_CONNECTIVITY_IPV6_LOCALNETWORK=512        # from enum NLM_CONNECTIVITY
  36.     NLM_CONNECTIVITY_IPV6_NOTRAFFIC=2          # from enum NLM_CONNECTIVITY
  37.     NLM_CONNECTIVITY_IPV6_SUBNET  =256        # from enum NLM_CONNECTIVITY
  38.     NLM_DOMAIN_TYPE_DOMAIN_AUTHENTICATED=2          # from enum NLM_DOMAIN_TYPE
  39.     NLM_DOMAIN_TYPE_DOMAIN_NETWORK=1          # from enum NLM_DOMAIN_TYPE
  40.     NLM_DOMAIN_TYPE_NON_DOMAIN_NETWORK=0          # from enum NLM_DOMAIN_TYPE
  41.     NLM_ENUM_NETWORK_ALL          =3          # from enum NLM_ENUM_NETWORK
  42.     NLM_ENUM_NETWORK_CONNECTED    =1          # from enum NLM_ENUM_NETWORK
  43.     NLM_ENUM_NETWORK_DISCONNECTED =2          # from enum NLM_ENUM_NETWORK
  44.     NLM_NETWORK_CATEGORY_DOMAIN_AUTHENTICATED=2          # from enum NLM_NETWORK_CATEGORY
  45.     NLM_NETWORK_CATEGORY_PRIVATE  =1          # from enum NLM_NETWORK_CATEGORY
  46.     NLM_NETWORK_CATEGORY_PUBLIC   =0          # from enum NLM_NETWORK_CATEGORY
  47.     NLM_NETWORK_PROPERTY_CHANGE_CATEGORY_VALUE=16         # from enum NLM_NETWORK_PROPERTY_CHANGE
  48.     NLM_NETWORK_PROPERTY_CHANGE_CONNECTION=1          # from enum NLM_NETWORK_PROPERTY_CHANGE
  49.     NLM_NETWORK_PROPERTY_CHANGE_DESCRIPTION=2          # from enum NLM_NETWORK_PROPERTY_CHANGE
  50.     NLM_NETWORK_PROPERTY_CHANGE_ICON=8          # from enum NLM_NETWORK_PROPERTY_CHANGE
  51.     NLM_NETWORK_PROPERTY_CHANGE_NAME=4          # from enum NLM_NETWORK_PROPERTY_CHANGE
  52.  
  53. from win32com.client import DispatchBaseClass
  54. class IEnumNetworkConnections(DispatchBaseClass):
  55.     """Network Connection Enumerator"""
  56.     CLSID = IID('{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
  57.     coclass_clsid = None
  58.  
  59.     # Result is of type IEnumNetworkConnections
  60.     def Clone(self):
  61.         """Clone this enumeration."""
  62.         ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), (),)
  63.         if ret is not None:
  64.             ret = Dispatch(ret, u'Clone', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
  65.         return ret
  66.  
  67.     def Next(self, celt=defaultNamedNotOptArg, rgelt=pythoncom.Missing, pceltFetched=defaultNamedNotOptArg):
  68.         """Get the next network connection in this enumeration."""
  69.         return self._ApplyTypes_(1, 1, (24, 0), ((19, 1), (16393, 2), (16403, 3)), u'Next', None,celt
  70.             , rgelt, pceltFetched)
  71.  
  72.     def Reset(self):
  73.         """Restart this enumeration."""
  74.         return self._oleobj_.InvokeTypes(3, LCID, 1, (24, 0), (),)
  75.  
  76.     def Skip(self, celt=defaultNamedNotOptArg):
  77.         """Skip over a network connection."""
  78.         return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((19, 1),),celt
  79.             )
  80.  
  81.     _prop_map_get_ = {
  82.         # Method '_NewEnum' returns object of type 'IEnumVARIANT'
  83.     }
  84.     _prop_map_put_ = {
  85.     }
  86.     def __iter__(self):
  87.         "Return a Python iterator for this object"
  88.         ob = self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),())
  89.         return win32com.client.util.Iterator(ob, '{00020404-0000-0000-C000-000000000046}')
  90.     def _NewEnum(self):
  91.         "Create an enumerator from this object"
  92.         return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),()),'{00020404-0000-0000-C000-000000000046}')
  93.     def __getitem__(self, index):
  94.         "Allow this class to be accessed as a collection"
  95.         if '_enum_' not in self.__dict__:
  96.             self.__dict__['_enum_'] = self._NewEnum()
  97.         return self._enum_.__getitem__(index)
  98.  
  99. class IEnumNetworks(DispatchBaseClass):
  100.     """Network Enumerator"""
  101.     CLSID = IID('{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
  102.     coclass_clsid = None
  103.  
  104.     # Result is of type IEnumNetworks
  105.     def Clone(self):
  106.         """Clone this enumeration."""
  107.         ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), (),)
  108.         if ret is not None:
  109.             ret = Dispatch(ret, u'Clone', '{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
  110.         return ret
  111.  
  112.     def Next(self, celt=defaultNamedNotOptArg, rgelt=pythoncom.Missing, pceltFetched=defaultNamedNotOptArg):
  113.         """Get the next network in this enumeration."""
  114.         return self._ApplyTypes_(1, 1, (24, 0), ((19, 1), (16393, 2), (16403, 3)), u'Next', None,celt
  115.             , rgelt, pceltFetched)
  116.  
  117.     def Reset(self):
  118.         """Restart this enumeration."""
  119.         return self._oleobj_.InvokeTypes(3, LCID, 1, (24, 0), (),)
  120.  
  121.     def Skip(self, celt=defaultNamedNotOptArg):
  122.         """Skip over a network."""
  123.         return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((19, 1),),celt
  124.             )
  125.  
  126.     _prop_map_get_ = {
  127.         # Method '_NewEnum' returns object of type 'IEnumVARIANT'
  128.     }
  129.     _prop_map_put_ = {
  130.     }
  131.     def __iter__(self):
  132.         "Return a Python iterator for this object"
  133.         ob = self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),())
  134.         return win32com.client.util.Iterator(ob, '{00020404-0000-0000-C000-000000000046}')
  135.     def _NewEnum(self):
  136.         "Create an enumerator from this object"
  137.         return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),()),'{00020404-0000-0000-C000-000000000046}')
  138.     def __getitem__(self, index):
  139.         "Allow this class to be accessed as a collection"
  140.         if '_enum_' not in self.__dict__:
  141.             self.__dict__['_enum_'] = self._NewEnum()
  142.         return self._enum_.__getitem__(index)
  143.  
  144. class INetwork(DispatchBaseClass):
  145.     """Network"""
  146.     CLSID = IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
  147.     coclass_clsid = None
  148.  
  149.     def GetCategory(self):
  150.         """Returns the category of this network."""
  151.         return self._oleobj_.InvokeTypes(12, LCID, 1, (3, 0), (),)
  152.  
  153.     def GetConnectivity(self):
  154.         """Returns the connectivity state of this network."""
  155.         return self._oleobj_.InvokeTypes(11, LCID, 1, (3, 0), (),)
  156.  
  157.     def GetDescription(self):
  158.         """Get the network description."""
  159.         # Result is a Unicode object
  160.         return self._oleobj_.InvokeTypes(3, LCID, 1, (8, 0), (),)
  161.  
  162.     def GetDomainType(self):
  163.         """Get the domain type."""
  164.         return self._oleobj_.InvokeTypes(6, LCID, 1, (3, 0), (),)
  165.  
  166.     def GetName(self):
  167.         """Get the name of this network."""
  168.         # Result is a Unicode object
  169.         return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), (),)
  170.  
  171.     # Result is of type IEnumNetworkConnections
  172.     def GetNetworkConnections(self):
  173.         """Get the list of network connections for this network."""
  174.         ret = self._oleobj_.InvokeTypes(7, LCID, 1, (9, 0), (),)
  175.         if ret is not None:
  176.             ret = Dispatch(ret, u'GetNetworkConnections', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
  177.         return ret
  178.  
  179.     def GetNetworkId(self):
  180.         """Get the network ID."""
  181.         return self._ApplyTypes_(5, 1, (36, 0), (), u'GetNetworkId', None,)
  182.  
  183.     def GetTimeCreatedAndConnected(self, pdwLowDateTimeCreated=pythoncom.Missing, pdwHighDateTimeCreated=pythoncom.Missing, pdwLowDateTimeConnected=pythoncom.Missing, pdwHighDateTimeConnected=pythoncom.Missing):
  184.         """Get the time and date this network was created."""
  185.         return self._ApplyTypes_(8, 1, (24, 0), ((16403, 2), (16403, 2), (16403, 2), (16403, 2)), u'GetTimeCreatedAndConnected', None,pdwLowDateTimeCreated
  186.             , pdwHighDateTimeCreated, pdwLowDateTimeConnected, pdwHighDateTimeConnected)
  187.  
  188.     def SetCategory(self, NewCategory=defaultNamedNotOptArg):
  189.         """Sets the category of this network. This change takes effect immediately."""
  190.         return self._oleobj_.InvokeTypes(13, LCID, 1, (24, 0), ((3, 1),),NewCategory
  191.             )
  192.  
  193.     def SetDescription(self, szDescription=defaultNamedNotOptArg):
  194.         """Set the network description. This change takes effect immediately."""
  195.         return self._oleobj_.InvokeTypes(4, LCID, 1, (24, 0), ((8, 1),),szDescription
  196.             )
  197.  
  198.     def SetName(self, szNetworkNewName=defaultNamedNotOptArg):
  199.         """Rename this network. This change takes effect immediately."""
  200.         return self._oleobj_.InvokeTypes(2, LCID, 1, (24, 0), ((8, 1),),szNetworkNewName
  201.             )
  202.  
  203.     _prop_map_get_ = {
  204.         "IsConnected": (10, 2, (11, 0), (), "IsConnected", None),
  205.         "IsConnectedToInternet": (9, 2, (11, 0), (), "IsConnectedToInternet", None),
  206.     }
  207.     _prop_map_put_ = {
  208.     }
  209.  
  210. class INetworkConnection(DispatchBaseClass):
  211.     """Network Connection"""
  212.     CLSID = IID('{DCB00005-570F-4A9B-8D69-199FDBA5723B}')
  213.     coclass_clsid = None
  214.  
  215.     def GetAdapterId(self):
  216.         """Returns the network adapter used by this connection. There might be multiple connections using the same AdapterId."""
  217.         return self._ApplyTypes_(6, 1, (36, 0), (), u'GetAdapterId', None,)
  218.  
  219.     def GetConnectionId(self):
  220.         """Returns a unique identifer for this connection."""
  221.         return self._ApplyTypes_(5, 1, (36, 0), (), u'GetConnectionId', None,)
  222.  
  223.     def GetConnectivity(self):
  224.         """Returns the connectivity state of this network connection."""
  225.         return self._oleobj_.InvokeTypes(4, LCID, 1, (3, 0), (),)
  226.  
  227.     def GetDomainType(self):
  228.         """Returns the domain type of this network connection."""
  229.         return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), (),)
  230.  
  231.     # Result is of type INetwork
  232.     def GetNetwork(self):
  233.         """Returns the associated network of this connection."""
  234.         ret = self._oleobj_.InvokeTypes(1, LCID, 1, (9, 0), (),)
  235.         if ret is not None:
  236.             ret = Dispatch(ret, u'GetNetwork', '{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
  237.         return ret
  238.  
  239.     _prop_map_get_ = {
  240.         "IsConnected": (3, 2, (11, 0), (), "IsConnected", None),
  241.         "IsConnectedToInternet": (2, 2, (11, 0), (), "IsConnectedToInternet", None),
  242.     }
  243.     _prop_map_put_ = {
  244.     }
  245.  
  246. class INetworkListManager(DispatchBaseClass):
  247.     """Network List Manager"""
  248.     CLSID = IID('{DCB00000-570F-4A9B-8D69-199FDBA5723B}')
  249.     coclass_clsid = IID('{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')
  250.  
  251.     def GetConnectivity(self):
  252.         """Returns the aggregated connectivity state of all networks on this machine."""
  253.         return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), (),)
  254.  
  255.     # Result is of type INetwork
  256.     def GetNetwork(self, gdNetworkId=defaultNamedNotOptArg):
  257.         """Get a network given a Network ID."""
  258.         ret = self._oleobj_.InvokeTypes(2, LCID, 1, (9, 0), ((36, 1),),gdNetworkId
  259.             )
  260.         if ret is not None:
  261.             ret = Dispatch(ret, u'GetNetwork', '{DCB00002-570F-4A9B-8D69-199FDBA5723B}')
  262.         return ret
  263.  
  264.     # Result is of type INetworkConnection
  265.     def GetNetworkConnection(self, gdNetworkConnectionId=defaultNamedNotOptArg):
  266.         """Get a network connection by a Network Connection ID."""
  267.         ret = self._oleobj_.InvokeTypes(4, LCID, 1, (9, 0), ((36, 1),),gdNetworkConnectionId
  268.             )
  269.         if ret is not None:
  270.             ret = Dispatch(ret, u'GetNetworkConnection', '{DCB00005-570F-4A9B-8D69-199FDBA5723B}')
  271.         return ret
  272.  
  273.     # Result is of type IEnumNetworkConnections
  274.     def GetNetworkConnections(self):
  275.         """Enumerate the complete list of all connections in your compartment."""
  276.         ret = self._oleobj_.InvokeTypes(3, LCID, 1, (9, 0), (),)
  277.         if ret is not None:
  278.             ret = Dispatch(ret, u'GetNetworkConnections', '{DCB00006-570F-4A9B-8D69-199FDBA5723B}')
  279.         return ret
  280.  
  281.     # Result is of type IEnumNetworks
  282.     def GetNetworks(self, Flags=defaultNamedNotOptArg):
  283.         """Enumerate the list of networks in your compartment."""
  284.         ret = self._oleobj_.InvokeTypes(1, LCID, 1, (9, 0), ((3, 1),),Flags
  285.             )
  286.         if ret is not None:
  287.             ret = Dispatch(ret, u'GetNetworks', '{DCB00003-570F-4A9B-8D69-199FDBA5723B}')
  288.         return ret
  289.  
  290.     _prop_map_get_ = {
  291.         "IsConnected": (6, 2, (11, 0), (), "IsConnected", None),
  292.         "IsConnectedToInternet": (5, 2, (11, 0), (), "IsConnectedToInternet", None),
  293.     }
  294.     _prop_map_put_ = {
  295.     }
  296.  
  297. from win32com.client import CoClassBaseClass
  298. class NetworkListManager(CoClassBaseClass): # A CoClass
  299.     # Network List Manager
  300.     CLSID = IID('{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')
  301.     coclass_sources = [
  302.     ]
  303.     coclass_interfaces = [
  304.         INetworkListManager,
  305.     ]
  306.     default_interface = INetworkListManager
  307.  
  308. IEnumNetworkConnections_vtables_dispatch_ = 1
  309. IEnumNetworkConnections_vtables_ = [
  310.     (( 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 , )),
  311.     (( u'Next' , u'celt' , u'rgelt' , u'pceltFetched' , ), 1, (1, (), [
  312.             (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 , )),
  313.     (( u'Skip' , u'celt' , ), 2, (2, (), [ (19, 1, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
  314.     (( u'Reset' , ), 3, (3, (), [ ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
  315.     (( 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 , )),
  316. ]
  317.  
  318. IEnumNetworks_vtables_dispatch_ = 1
  319. IEnumNetworks_vtables_ = [
  320.     (( 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 , )),
  321.     (( u'Next' , u'celt' , u'rgelt' , u'pceltFetched' , ), 1, (1, (), [
  322.             (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 , )),
  323.     (( u'Skip' , u'celt' , ), 2, (2, (), [ (19, 1, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
  324.     (( u'Reset' , ), 3, (3, (), [ ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
  325.     (( 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 , )),
  326. ]
  327.  
  328. IErrorLog_vtables_dispatch_ = 0
  329. IErrorLog_vtables_ = [
  330.     (( u'AddError' , u'pszPropName' , u'pExcepInfo' , ), 1610678272, (1610678272, (), [ (31, 1, None, None) ,
  331.             (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
  332. ]
  333.  
  334. INetwork_vtables_dispatch_ = 1
  335. INetwork_vtables_ = [
  336.     (( u'GetName' , u'pszNetworkName' , ), 1, (1, (), [ (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
  337.     (( u'SetName' , u'szNetworkNewName' , ), 2, (2, (), [ (8, 1, None, None) , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
  338.     (( u'GetDescription' , u'pszDescription' , ), 3, (3, (), [ (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
  339.     (( u'SetDescription' , u'szDescription' , ), 4, (4, (), [ (8, 1, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
  340.     (( u'GetNetworkId' , u'pgdGuidNetworkId' , ), 5, (5, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
  341.     (( u'GetDomainType' , u'pNetworkType' , ), 6, (6, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
  342.     (( 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 , )),
  343.     (( u'GetTimeCreatedAndConnected' , u'pdwLowDateTimeCreated' , u'pdwHighDateTimeCreated' , u'pdwLowDateTimeConnected' , u'pdwHighDateTimeConnected' ,
  344.             ), 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 , )),
  345.     (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 9, (9, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 60 , (3, 0, None, None) , 0 , )),
  346.     (( u'IsConnected' , u'pbIsConnected' , ), 10, (10, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 64 , (3, 0, None, None) , 0 , )),
  347.     (( u'GetConnectivity' , u'pConnectivity' , ), 11, (11, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 68 , (3, 0, None, None) , 0 , )),
  348.     (( u'GetCategory' , u'pCategory' , ), 12, (12, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 72 , (3, 0, None, None) , 0 , )),
  349.     (( u'SetCategory' , u'NewCategory' , ), 13, (13, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 76 , (3, 0, None, None) , 0 , )),
  350. ]
  351.  
  352. INetworkConnection_vtables_dispatch_ = 1
  353. INetworkConnection_vtables_ = [
  354.     (( 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 , )),
  355.     (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 2, (2, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
  356.     (( u'IsConnected' , u'pbIsConnected' , ), 3, (3, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
  357.     (( u'GetConnectivity' , u'pConnectivity' , ), 4, (4, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
  358.     (( u'GetConnectionId' , u'pgdConnectionId' , ), 5, (5, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
  359.     (( u'GetAdapterId' , u'pgdAdapterId' , ), 6, (6, (), [ (36, 10, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
  360.     (( u'GetDomainType' , u'pDomainType' , ), 7, (7, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
  361. ]
  362.  
  363. INetworkConnectionEvents_vtables_dispatch_ = 0
  364. INetworkConnectionEvents_vtables_ = [
  365.     (( u'NetworkConnectionConnectivityChanged' , u'connectionId' , u'newConnectivity' , ), 1610678272, (1610678272, (), [ (36, 1, None, None) ,
  366.             (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
  367.     (( u'NetworkConnectionPropertyChanged' , u'connectionId' , u'Flags' , ), 1610678273, (1610678273, (), [ (36, 1, None, None) ,
  368.             (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
  369. ]
  370.  
  371. INetworkEvents_vtables_dispatch_ = 0
  372. INetworkEvents_vtables_ = [
  373.     (( u'NetworkAdded' , u'networkId' , ), 1610678272, (1610678272, (), [ (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
  374.     (( u'NetworkDeleted' , u'networkId' , ), 1610678273, (1610678273, (), [ (36, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
  375.     (( u'NetworkConnectivityChanged' , u'networkId' , u'newConnectivity' , ), 1610678274, (1610678274, (), [ (36, 1, None, None) ,
  376.             (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 20 , (3, 0, None, None) , 0 , )),
  377.     (( u'NetworkPropertyChanged' , u'networkId' , u'Flags' , ), 1610678275, (1610678275, (), [ (36, 1, None, None) ,
  378.             (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 24 , (3, 0, None, None) , 0 , )),
  379. ]
  380.  
  381. INetworkListManager_vtables_dispatch_ = 1
  382. INetworkListManager_vtables_ = [
  383.     (( u'GetNetworks' , u'Flags' , u'ppEnumNetwork' , ), 1, (1, (), [ (3, 1, None, None) ,
  384.             (16393, 10, None, "IID('{DCB00003-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
  385.     (( u'GetNetwork' , u'gdNetworkId' , u'ppNetwork' , ), 2, (2, (), [ (36, 1, None, None) ,
  386.             (16393, 10, None, "IID('{DCB00002-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
  387.     (( 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 , )),
  388.     (( u'GetNetworkConnection' , u'gdNetworkConnectionId' , u'ppNetworkConnection' , ), 4, (4, (), [ (36, 1, None, None) ,
  389.             (16393, 10, None, "IID('{DCB00005-570F-4A9B-8D69-199FDBA5723B}')") , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
  390.     (( u'IsConnectedToInternet' , u'pbIsConnected' , ), 5, (5, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
  391.     (( u'IsConnected' , u'pbIsConnected' , ), 6, (6, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
  392.     (( u'GetConnectivity' , u'pConnectivity' , ), 7, (7, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
  393. ]
  394.  
  395. INetworkListManagerEvents_vtables_dispatch_ = 0
  396. INetworkListManagerEvents_vtables_ = [
  397.     (( u'ConnectivityChanged' , u'newConnectivity' , ), 1610678272, (1610678272, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
  398. ]
  399.  
  400. IPropertyBag_vtables_dispatch_ = 0
  401. IPropertyBag_vtables_ = [
  402.     (( u'RemoteRead' , u'pszPropName' , u'pVar' , u'pErrorLog' , u'varType' ,
  403.             u'pUnkObj' , ), 1610678272, (1610678272, (), [ (31, 1, None, None) , (16396, 2, None, None) , (13, 1, None, "IID('{3127CA40-446E-11CE-8135-00AA004BB851}')") ,
  404.             (19, 1, None, None) , (13, 1, None, None) , ], 1 , 1 , 4 , 0 , 12 , (3, 0, None, None) , 0 , )),
  405.     (( u'Write' , u'pszPropName' , u'pVar' , ), 1610678273, (1610678273, (), [ (31, 1, None, None) ,
  406.             (16396, 1, None, None) , ], 1 , 1 , 4 , 0 , 16 , (3, 0, None, None) , 0 , )),
  407. ]
  408.  
  409. RecordMap = {
  410. }
  411.  
  412. CLSIDToClassMap = {
  413.     '{DCB00000-570F-4A9B-8D69-199FDBA5723B}' : INetworkListManager,
  414.     '{DCB00C01-570F-4A9B-8D69-199FDBA5723B}' : NetworkListManager,
  415.     '{DCB00002-570F-4A9B-8D69-199FDBA5723B}' : INetwork,
  416.     '{DCB00003-570F-4A9B-8D69-199FDBA5723B}' : IEnumNetworks,
  417.     '{DCB00005-570F-4A9B-8D69-199FDBA5723B}' : INetworkConnection,
  418.     '{DCB00006-570F-4A9B-8D69-199FDBA5723B}' : IEnumNetworkConnections,
  419. }
  420. CLSIDToPackageMap = {}
  421. win32com.client.CLSIDToClass.RegisterCLSIDsFromDict( CLSIDToClassMap )
  422. VTablesToPackageMap = {}
  423. VTablesToClassMap = {
  424.     '{55272A00-42CB-11CE-8135-00AA004BB851}' : 'IPropertyBag',
  425.     '{3127CA40-446E-11CE-8135-00AA004BB851}' : 'IErrorLog',
  426.     '{DCB00000-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkListManager',
  427.     '{DCB00001-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkListManagerEvents',
  428.     '{DCB00002-570F-4A9B-8D69-199FDBA5723B}' : 'INetwork',
  429.     '{DCB00003-570F-4A9B-8D69-199FDBA5723B}' : 'IEnumNetworks',
  430.     '{DCB00004-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkEvents',
  431.     '{DCB00005-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkConnection',
  432.     '{DCB00006-570F-4A9B-8D69-199FDBA5723B}' : 'IEnumNetworkConnections',
  433.     '{DCB00007-570F-4A9B-8D69-199FDBA5723B}' : 'INetworkConnectionEvents',
  434. }
  435.  
  436.  
  437. NamesToIIDMap = {
  438.     'INetworkConnection' : '{DCB00005-570F-4A9B-8D69-199FDBA5723B}',
  439.     'IErrorLog' : '{3127CA40-446E-11CE-8135-00AA004BB851}',
  440.     'INetworkEvents' : '{DCB00004-570F-4A9B-8D69-199FDBA5723B}',
  441.     'IEnumNetworkConnections' : '{DCB00006-570F-4A9B-8D69-199FDBA5723B}',
  442.     'INetworkListManager' : '{DCB00000-570F-4A9B-8D69-199FDBA5723B}',
  443.     'IPropertyBag' : '{55272A00-42CB-11CE-8135-00AA004BB851}',
  444.     'INetwork' : '{DCB00002-570F-4A9B-8D69-199FDBA5723B}',
  445.     'INetworkConnectionEvents' : '{DCB00007-570F-4A9B-8D69-199FDBA5723B}',
  446.     'INetworkListManagerEvents' : '{DCB00001-570F-4A9B-8D69-199FDBA5723B}',
  447.     'IEnumNetworks' : '{DCB00003-570F-4A9B-8D69-199FDBA5723B}',
  448. }
  449.  
  450. win32com.client.constants.__dicts__.append(constants.__dict__)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement