コード例 #1
0
'WUAPI 2.0 Type Library'
makepy_version = '0.5.01'
python_version = 0x2070ef0

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('{B596CC9F-56E5-419E-A622-E01BB457431E}')
MajorVersion = 2
MinorVersion = 0
LibraryFlags = 8
LCID = 0x0

from win32com.client import DispatchBaseClass
class IAutomaticUpdatesSettings2(DispatchBaseClass):
	'IAutomaticUpdatesSettings2 Interface'
	CLSID = IID('{6ABC136A-C3CA-4384-8171-CB2B1E59B8DC}')
	coclass_clsid = None

	def CheckPermission(self, userType=defaultNamedNotOptArg, permissionType=defaultNamedNotOptArg):
		'Determines whether a class of users has permission to perform the specified action.'
		return self._oleobj_.InvokeTypes(1610809346, LCID, 1, (11, 0), ((3, 1), (3, 1)),userType
			, permissionType)
コード例 #2
0
ファイル: Command.py プロジェクト: GuyCarver/VisualStudio
'Microsoft Development Environment 8.0 (Version 7.0 Object Model)'
makepy_version = '0.5.01'
python_version = 0x30300f0

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('{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}')
MajorVersion = 8
MinorVersion = 0
LibraryFlags = 8
LCID = 0x0

from win32com.client import DispatchBaseClass
class Command(DispatchBaseClass):
	'Represents a command in the environment.'
	CLSID = IID('{5FE10FB0-91A1-4E55-BAAA-ECCAE5CCEB94}')
	coclass_clsid = None

	def AddControl(self, Owner=defaultNamedNotOptArg, Position=1):
		'Creates a persistent command bar control for this command.'
		ret = self._oleobj_.InvokeTypes(7, LCID, 1, (9, 0), ((9, 1), (3, 49)),Owner
			, Position)
コード例 #3
0
class IUpdate4(DispatchBaseClass):
	'IUpdate4 Interface'
	CLSID = IID('{27E94B0D-5139-49A2-9A61-93522DC54652}')
	coclass_clsid = None

	def AcceptEula(self):
		'Accepts the license terms associated with the Update.'
		return self._oleobj_.InvokeTypes(1610743847, LCID, 1, (24, 0), (),)

	def CopyFromCache(self, path=defaultNamedNotOptArg, toExtractCabFiles=defaultNamedNotOptArg):
		'Copies the contents of the Update into a specified path.'
		return self._oleobj_.InvokeTypes(1610743850, LCID, 1, (24, 0), ((8, 1), (11, 1)),path
			, toExtractCabFiles)

	def CopyToCache(self, pFiles=defaultNamedNotOptArg):
		'Copies externally provided update binaries to install cache.'
		return self._oleobj_.InvokeTypes(1610809346, LCID, 1, (24, 0), ((9, 1),),pFiles
			)

	_prop_map_get_ = {
		"AutoSelectOnWebSites": (1610743809, 2, (11, 0), (), "AutoSelectOnWebSites", None),
		"BrowseOnly": (1610874881, 2, (11, 0), (), "BrowseOnly", None),
		# Method 'BundledUpdates' returns object of type 'IUpdateCollection'
		"BundledUpdates": (1610743810, 2, (9, 0), (), "BundledUpdates", '{07F7438C-7709-4CA5-B518-91279288134E}'),
		"CanRequireSource": (1610743811, 2, (11, 0), (), "CanRequireSource", None),
		# Method 'Categories' returns object of type 'ICategoryCollection'
		"Categories": (1610743812, 2, (9, 0), (), "Categories", '{3A56BFB8-576C-43F7-9335-FE4838FD7E37}'),
		# Method 'CveIDs' returns object of type 'IStringCollection'
		"CveIDs": (1610809348, 2, (9, 0), (), "CveIDs", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		"Deadline": (1610743813, 2, (12, 0), (), "Deadline", None),
		"DeltaCompressedContentAvailable": (1610743814, 2, (11, 0), (), "DeltaCompressedContentAvailable", None),
		"DeltaCompressedContentPreferred": (1610743815, 2, (11, 0), (), "DeltaCompressedContentPreferred", None),
		"DeploymentAction": (1610743849, 2, (3, 0), (), "DeploymentAction", None),
		"Description": (1610743816, 2, (8, 0), (), "Description", None),
		# Method 'DownloadContents' returns object of type 'IUpdateDownloadContentCollection'
		"DownloadContents": (1610743852, 2, (9, 0), (), "DownloadContents", '{BC5513C8-B3B8-4BF7-A4D4-361C0D8C88BA}'),
		"DownloadPriority": (1610743851, 2, (3, 0), (), "DownloadPriority", None),
		"EulaAccepted": (1610743817, 2, (11, 0), (), "EulaAccepted", None),
		"EulaText": (1610743818, 2, (8, 0), (), "EulaText", None),
		"HandlerID": (1610743819, 2, (8, 0), (), "HandlerID", None),
		# Method 'Identity' returns object of type 'IUpdateIdentity'
		"Identity": (1610743820, 2, (9, 0), (), "Identity", '{46297823-9940-4C09-AED9-CD3EA6D05968}'),
		# Method 'Image' returns object of type 'IImageInformation'
		"Image": (1610743821, 2, (9, 0), (), "Image", '{7C907864-346C-4AEB-8F3F-57DA289F969F}'),
		# Method 'InstallationBehavior' returns object of type 'IInstallationBehavior'
		"InstallationBehavior": (1610743822, 2, (9, 0), (), "InstallationBehavior", '{D9A59339-E245-4DBD-9686-4D5763E39624}'),
		"IsBeta": (1610743823, 2, (11, 0), (), "IsBeta", None),
		"IsDownloaded": (1610743824, 2, (11, 0), (), "IsDownloaded", None),
		"IsHidden": (1610743825, 2, (11, 0), (), "IsHidden", None),
		"IsInstalled": (1610743826, 2, (11, 0), (), "IsInstalled", None),
		"IsMandatory": (1610743827, 2, (11, 0), (), "IsMandatory", None),
		"IsPresent": (1610809347, 2, (11, 0), (), "IsPresent", None),
		"IsUninstallable": (1610743828, 2, (11, 0), (), "IsUninstallable", None),
		# Method 'KBArticleIDs' returns object of type 'IStringCollection'
		"KBArticleIDs": (1610743848, 2, (9, 0), (), "KBArticleIDs", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		# Method 'Languages' returns object of type 'IStringCollection'
		"Languages": (1610743829, 2, (9, 0), (), "Languages", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		"LastDeploymentChangeTime": (1610743830, 2, (7, 0), (), "LastDeploymentChangeTime", None),
		"MaxDownloadSize": (1610743831, 2, (14, 0), (), "MaxDownloadSize", None),
		"MinDownloadSize": (1610743832, 2, (14, 0), (), "MinDownloadSize", None),
		# Method 'MoreInfoUrls' returns object of type 'IStringCollection'
		"MoreInfoUrls": (1610743833, 2, (9, 0), (), "MoreInfoUrls", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		"MsrcSeverity": (1610743834, 2, (8, 0), (), "MsrcSeverity", None),
		"PerUser": (1610940417, 2, (11, 0), (), "PerUser", None),
		"RebootRequired": (1610809345, 2, (11, 0), (), "RebootRequired", None),
		"RecommendedCpuSpeed": (1610743835, 2, (3, 0), (), "RecommendedCpuSpeed", None),
		"RecommendedHardDiskSpace": (1610743836, 2, (3, 0), (), "RecommendedHardDiskSpace", None),
		"RecommendedMemory": (1610743837, 2, (3, 0), (), "RecommendedMemory", None),
		"ReleaseNotes": (1610743838, 2, (8, 0), (), "ReleaseNotes", None),
		# Method 'SecurityBulletinIDs' returns object of type 'IStringCollection'
		"SecurityBulletinIDs": (1610743839, 2, (9, 0), (), "SecurityBulletinIDs", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		# Method 'SupersededUpdateIDs' returns object of type 'IStringCollection'
		"SupersededUpdateIDs": (1610743841, 2, (9, 0), (), "SupersededUpdateIDs", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
		"SupportUrl": (1610743842, 2, (8, 0), (), "SupportUrl", None),
		"Title": (0, 2, (8, 0), (), "Title", None),
		"Type": (1610743843, 2, (3, 0), (), "Type", None),
		# Method 'UninstallationBehavior' returns object of type 'IInstallationBehavior'
		"UninstallationBehavior": (1610743845, 2, (9, 0), (), "UninstallationBehavior", '{D9A59339-E245-4DBD-9686-4D5763E39624}'),
		"UninstallationNotes": (1610743844, 2, (8, 0), (), "UninstallationNotes", None),
		# Method 'UninstallationSteps' returns object of type 'IStringCollection'
		"UninstallationSteps": (1610743846, 2, (9, 0), (), "UninstallationSteps", '{EFF90582-2DDC-480F-A06D-60F3FBC362C3}'),
	}
	_prop_map_put_ = {
		"IsHidden": ((1610743825, LCID, 4, 0),()),
	}
	# Default property for this class is 'Title'
	def __call__(self):
		return self._ApplyTypes_(*(0, 2, (8, 0), (), "Title", None))
	def __unicode__(self, *args):
		try:
			return unicode(self.__call__(*args))
		except pythoncom.com_error:
			return repr(self)
	def __str__(self, *args):
		return str(self.__unicode__(*args))
	def __int__(self, *args):
		return int(self.__call__(*args))
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)
コード例 #4
0
ファイル: pscon.py プロジェクト: wuchengjiang/onlineEducation
COP_WORD_EQUAL = 12
COP_WORD_STARTSWITH = 13
COP_APPLICATION_SPECIFIC = 14

## PERSIST_SPROPSTORE_FLAGS, used with IPersistSerializedPropStorage
FPSPS_READONLY	= 1

PKEY_PIDSTR_MAX = 10 # will take care of any long integer value
#define GUIDSTRING_MAX      (1 + 8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12 + 1 + 1)  // "{12345678-1234-1234-1234-123456789012}"
GUIDSTRING_MAX = (1 + 8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12 + 1 + 1) # hrm ???
#define PKEYSTR_MAX         (GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX)
PKEYSTR_MAX = GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX

## Property keys from propkey.h
from pywintypes import IID
PKEY_Audio_ChannelCount = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 7)
PKEY_Audio_Compression = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 10)
PKEY_Audio_EncodingBitrate = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 4)
PKEY_Audio_Format = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 2)
PKEY_Audio_IsVariableBitRate = (IID('{E6822FEE-8C17-4D62-823C-8E9CFCBD1D5C}'), 100)
PKEY_Audio_PeakValue = (IID('{2579E5D0-1116-4084-BD9A-9B4F7CB4DF5E}'), 100)
PKEY_Audio_SampleRate = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 5)
PKEY_Audio_SampleSize = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 6)
PKEY_Audio_StreamName = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 9)
PKEY_Audio_StreamNumber = (IID('{64440490-4C8B-11D1-8B70-080036B11A03}'), 8)
PKEY_Calendar_Duration = (IID('{293CA35A-09AA-4DD2-B180-1FE245728A52}'), 100)
PKEY_Calendar_IsOnline = (IID('{BFEE9149-E3E2-49A7-A862-C05988145CEC}'), 100)
PKEY_Calendar_IsRecurring = (IID('{315B9C8D-80A9-4EF9-AE16-8E746DA51D70}'), 100)
PKEY_Calendar_Location = (IID('{F6272D18-CECC-40B1-B26A-3911717AA7BD}'), 100)
PKEY_Calendar_OptionalAttendeeAddresses = (IID('{D55BAE5A-3892-417A-A649-C6AC5AAAEAB3}'), 100)
PKEY_Calendar_OptionalAttendeeNames = (IID('{09429607-582D-437F-84C3-DE93A2B24C3C}'), 100)
コード例 #5
0
"""Autodesk Inventor Object Library"""
makepy_version = '0.5.00'
python_version = 0x2070af0

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('{D98A091D-3A0F-4C3E-B36E-61F62068D488}')
MajorVersion = 1
MinorVersion = 0
LibraryFlags = 8
LCID = 0x0

from win32com.client import CoClassBaseClass
import sys
__import__('win32com.gen_py.D98A091D-3A0F-4C3E-B36E-61F62068D488x0x1x0.ButtonDefinitionSink')
ButtonDefinitionSink = sys.modules['win32com.gen_py.D98A091D-3A0F-4C3E-B36E-61F62068D488x0x1x0.ButtonDefinitionSink'].ButtonDefinitionSink
__import__('win32com.gen_py.D98A091D-3A0F-4C3E-B36E-61F62068D488x0x1x0.ButtonDefinitionObject')
ButtonDefinitionObject = sys.modules['win32com.gen_py.D98A091D-3A0F-4C3E-B36E-61F62068D488x0x1x0.ButtonDefinitionObject'].ButtonDefinitionObject
class ButtonDefinition(CoClassBaseClass): # A CoClass
	# Represents a ButtonDefinition object
	CLSID = IID('{CD3A37C9-E647-41AA-B0D9-4EED2A875789}')
	coclass_sources = [
コード例 #6
0
class _DZBUSx(DispatchBaseClass):
	"""Dispatch interface for ZBUSx Control"""
	CLSID = IID('{9F05A891-D2B9-41AF-8C8E-3F4245261483}')
	coclass_clsid = IID('{79734A6C-8E6E-4998-B834-3E4E481232B0}')

	def AboutBox(self):
		return self._oleobj_.InvokeTypes(-552, LCID, 1, (24, 0), (),)

	def Connect(self, Interface=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(1, LCID, 1, (3, 0), ((3, 0),),Interface
			)

	def ConnectZBUS(self, IntName=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(12, LCID, 1, (3, 0), ((8, 0),),IntName
			)

	def FlushIO(self, RackNum=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), ((3, 0),),RackNum
			)

	def GetDeviceAddr(self, DevType=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(2, LCID, 1, (3, 0), ((3, 0), (3, 0)),DevType
			, DevNum)

	def GetDeviceAt(self, RackNum=defaultNamedNotOptArg, PosNum=defaultNamedNotOptArg, DevID=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
		# Result is a Unicode object - return as-is for this version of Python
		return self._oleobj_.InvokeTypes(11, LCID, 1, (8, 0), ((3, 0), (3, 0), (16387, 0), (16387, 0)),RackNum
			, PosNum, DevID, DevNum)

	def GetDeviceVersion(self, DevType=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(3, LCID, 1, (3, 0), ((3, 0), (3, 0)),DevType
			, DevNum)

	def GetError(self):
		# Result is a Unicode object - return as-is for this version of Python
		return self._oleobj_.InvokeTypes(10, LCID, 1, (8, 0), (),)

	def HardwareReset(self, RackNum=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(4, LCID, 1, (3, 0), ((3, 0),),RackNum
			)

	def KillCode(self, DevType=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg, MagicCode=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 0), (3, 0), (3, 0)),DevType
			, DevNum, MagicCode)

	def zBusSync(self, RackMask=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(8, LCID, 1, (3, 0), ((3, 0),),RackMask
			)

	def zBusTrigA(self, RackNum=defaultNamedNotOptArg, zTrgMode=defaultNamedNotOptArg, Delay=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(6, LCID, 1, (3, 0), ((3, 0), (3, 0), (3, 0)),RackNum
			, zTrgMode, Delay)

	def zBusTrigB(self, RackNum=defaultNamedNotOptArg, zTrgMode=defaultNamedNotOptArg, Delay=defaultNamedNotOptArg):
		return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), ((3, 0), (3, 0), (3, 0)),RackNum
			, zTrgMode, Delay)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
コード例 #7
0
class Application(DispatchBaseClass):
	"""Inventor Application Object"""
	CLSID = IID('{70109AA0-63C1-11D2-B78B-0060B0EC020B}')
	coclass_clsid = None

	def ConstructInternalNameAndRevisionId(self, InternalNameToken=defaultNamedNotOptArg, RevisionIdToken=defaultNamedNotOptArg, InternalName=pythoncom.Missing, RevisionId=pythoncom.Missing):
		"""Constructs and returns the Internal Name and Revision Identifier"""
		return self._ApplyTypes_(50332020, 1, (24, 0), ((8, 1), (8, 1), (16392, 2), (16392, 2)), u'ConstructInternalNameAndRevisionId', None,InternalNameToken
			, RevisionIdToken, InternalName, RevisionId)

	def CreateFileDialog(self, Dialog=pythoncom.Missing):
		"""Creates a file dialog"""
		return self._ApplyTypes_(50331981, 1, (24, 0), ((16393, 2),), u'CreateFileDialog', None,Dialog
			)

	def CreateInternalName(self, Name=defaultNamedNotOptArg, Number=defaultNamedNotOptArg, Custom=defaultNamedNotOptArg, InternalName=pythoncom.Missing):
		"""Constructs the unique, deterministic name out of the sub-strings supplied (Name + Number + Custom = InternalName). The internal name is a stringified GUID"""
		return self._ApplyTypes_(50331967, 1, (24, 0), ((8, 1), (8, 1), (8, 1), (16392, 2)), u'CreateInternalName', None,Name
			, Number, Custom, InternalName)

	# Result is of type ProgressBar
	def CreateProgressBar(self, DisplayInStatusBar=defaultNamedNotOptArg, NumberOfSteps=defaultNamedNotOptArg, Title=defaultNamedNotOptArg, AllowCancel=False
			, HWND=0):
		"""Creates a new ProgressBar object."""
		ret = self._oleobj_.InvokeTypes(50332034, LCID, 1, (13, 0), ((11, 1), (3, 1), (8, 1), (11, 49), (3, 49)),DisplayInStatusBar
			, NumberOfSteps, Title, AllowCancel, HWND)
		if ret is not None:
			# See if this IUnknown is really an IDispatch
			try:
				ret = ret.QueryInterface(pythoncom.IID_IDispatch)
			except pythoncom.error:
				return ret
			ret = Dispatch(ret, u'CreateProgressBar', '{8574FEAB-B050-439E-AC97-9704A217E5A1}')
		return ret

	def GetAppFrameExtents(self, Top=pythoncom.Missing, Left=pythoncom.Missing, Height=pythoncom.Missing, Width=pythoncom.Missing):
		"""Obtains the position and size of the Application's main frame window"""
		return self._ApplyTypes_(50331915, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'GetAppFrameExtents', None,Top
			, Left, Height, Width)

	def GetInterfaceObject(self, ProgIDorCLSID=defaultNamedNotOptArg):
		"""Constructs and returns the specified object"""
		ret = self._oleobj_.InvokeTypes(50331987, LCID, 1, (13, 0), ((8, 1),),ProgIDorCLSID
			)
		if ret is not None:
			# See if this IUnknown is really an IDispatch
			try:
				ret = ret.QueryInterface(pythoncom.IID_IDispatch)
			except pythoncom.error:
				return ret
			ret = Dispatch(ret, u'GetInterfaceObject', None)
		return ret

	def GetInterfaceObject32(self, ProgIDorCLSID=defaultNamedNotOptArg):
		"""same as GetInterfaceObject, except that on 64-bit Inventor, the COM server is loaded in the Inventor 32-bit host process"""
		ret = self._oleobj_.InvokeTypes(50332022, LCID, 1, (13, 0), ((8, 1),),ProgIDorCLSID
			)
		if ret is not None:
			# See if this IUnknown is really an IDispatch
			try:
				ret = ret.QueryInterface(pythoncom.IID_IDispatch)
			except pythoncom.error:
				return ret
			ret = Dispatch(ret, u'GetInterfaceObject32', None)
		return ret

	def GetTemplateFile(self, DocumentType=defaultNamedNotOptArg, SystemOfMeasure=8961, DraftingStandard=9729, DocumentSubType=defaultNamedOptArg):
		"""Obtains the Inventor template file that corresponds to the criteria specified in the input arguments"""
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(50331960, LCID, 1, (8, 0), ((3, 1), (3, 49), (3, 49), (12, 17)),DocumentType
			, SystemOfMeasure, DraftingStandard, DocumentSubType)

	def LicenseChallenge(self):
		"""Request a license challenge string"""
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(50431489, LCID, 1, (8, 0), (),)

	def LicenseResponse(self, Response=defaultNamedNotOptArg):
		"""Provides a license challenge response string"""
		return self._oleobj_.InvokeTypes(50431490, LCID, 1, (24, 0), ((8, 1),),Response
			)

	def Login(self):
		"""Prompts the user to login to online services if not already logged in"""
		return self._oleobj_.InvokeTypes(50332042, LCID, 1, (11, 0), (),)

	def Move(self, Top=defaultNamedNotOptArg, Left=defaultNamedNotOptArg, Height=defaultNamedNotOptArg, Width=defaultNamedNotOptArg):
		"""Moves the frame window"""
		return self._oleobj_.InvokeTypes(50331977, LCID, 1, (24, 0), ((16387, 1), (16387, 1), (16387, 1), (16387, 1)),Top
			, Left, Height, Width)

	def Quit(self):
		"""Shuts down the application"""
		return self._oleobj_.InvokeTypes(50331913, LCID, 1, (24, 0), (),)

	def ReserveLicense(self, ClientId=defaultNamedNotOptArg):
		"""Informs Inventor/Apprentice that a license should be retained for this instace of the application. Used to prevent idle detection from returning the seat license to the license pool. Requires a call to UnreserveLicense with teh same ClientID to allow the licen???l??????"""
		return self._oleobj_.InvokeTypes(50332031, LCID, 1, (24, 0), ((8, 1),),ClientId
			)

	def ShowMyHomeWindow(self, ContentTypeOrURL=defaultNamedOptArg):
		"""Method that displays the MyHome base window with the specified content in it"""
		return self._oleobj_.InvokeTypes(50332045, LCID, 1, (24, 0), ((12, 17),),ContentTypeOrURL
			)

	def UnreserveLicense(self, ClientId=defaultNamedNotOptArg):
		"""Informs Inventor/Apprentice that normal seat license reclamation can resume. Use this method when extended processing for which a license was reserved completes. Do not use without a previous call to ReserveLicense using the same ClientID."""
		return self._oleobj_.InvokeTypes(50332032, LCID, 1, (24, 0), ((8, 1),),ClientId
			)

	def WriteCIPWaypoint(self, WaypointData=defaultNamedNotOptArg):
		"""Hidden method. Not for public use. Method that writes information describing the action of the current command as a CIP waypoint."""
		return self._oleobj_.InvokeTypes(50331927, LCID, 1, (24, 0), ((8, 1),),WaypointData
			)

	def _ConstructInternalNameAndFileVersion(self, Name=defaultNamedNotOptArg, Number=defaultNamedNotOptArg, Custom=defaultNamedNotOptArg, Revision=defaultNamedNotOptArg
			, InternalName=pythoncom.Missing, FileVersion=pythoncom.Missing):
		"""*** DEFUNCT SINCE R5.3"""
		return self._ApplyTypes_(50331951, 1, (24, 0), ((8, 1), (8, 1), (8, 1), (8, 1), (16392, 2), (16392, 2)), u'_ConstructInternalNameAndFileVersion', None,Name
			, Number, Custom, Revision, InternalName, FileVersion
			)

	def _DeleteRegistryEntry(self, SubKey=defaultNamedNotOptArg, ValueName=defaultNamedNotOptArg, RegistryHive=defaultNamedNotOptArg):
		"""Hidden method. Not for public use. Deletes an entry from the system registry, including the current Inventor hive"""
		return self._oleobj_.InvokeTypes(50331936, LCID, 1, (24, 0), ((8, 1), (8, 1), (3, 1)),SubKey
			, ValueName, RegistryHive)

	def _GetShapeManagerVersion(self, MajorVersion=pythoncom.Missing, MinorVersion=pythoncom.Missing, PointVersion=pythoncom.Missing):
		"""Hidden property. Not for public use"""
		return self._ApplyTypes_(50331971, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2)), u'_GetShapeManagerVersion', None,MajorVersion
			, MinorVersion, PointVersion)

	# The method _IsRegistryEntry is actually a property, but must be used as a method to correctly pass the arguments
	def _IsRegistryEntry(self, SubKey=defaultNamedNotOptArg, ValueName=defaultNamedNotOptArg, RegistryHive=defaultNamedNotOptArg):
		"""Hidden property. Not for public use. Gets a Boolean indicating whether the specified entry exists in the system registry, including the current Inventor hive"""
		return self._oleobj_.InvokeTypes(50331933, LCID, 2, (11, 0), ((8, 1), (8, 1), (3, 1)),SubKey
			, ValueName, RegistryHive)

	def _LogExceptionDump(self, Value=defaultNamedNotOptArg):
		"""Logs an exception dump file"""
		return self._oleobj_.InvokeTypes(50332005, LCID, 1, (24, 0), ((16387, 1),),Value
			)

	def _MigrateStylesLibrary(self, LibraryPath=defaultNamedNotOptArg, Result=pythoncom.Missing, NumLibraries=pythoncom.Missing):
		"""Migrates a styles library"""
		return self._ApplyTypes_(50332004, 1, (24, 0), ((8, 1), (16392, 2), (16387, 2)), u'_MigrateStylesLibrary', None,LibraryPath
			, Result, NumLibraries)

	def _PutXMLData(self, DocumentName=defaultNamedNotOptArg, ControlData=defaultNamedNotOptArg, InputData=defaultNamedNotOptArg):
		"""Put XML Data to control Inventor"""
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(50332000, LCID, 1, (8, 0), ((12, 1), (8, 1), (8, 1)),DocumentName
			, ControlData, InputData)

	# The method _RegistryEntry is actually a property, but must be used as a method to correctly pass the arguments
	def _RegistryEntry(self, SubKey=defaultNamedNotOptArg, ValueName=defaultNamedNotOptArg, RegistryHive=defaultNamedNotOptArg):
		"""Hidden property. Not for public use. Gets an entry from the system registry, including the current Inventor hive"""
		return self._ApplyTypes_(50331934, 2, (12, 0), ((8, 1), (8, 1), (3, 1)), u'_RegistryEntry', None,SubKey
			, ValueName, RegistryHive)

	def _ReplayTranscript(self, TranscriptFileName=defaultNamedNotOptArg):
		"""Hidden method. Not for public use. Replays a session transcript"""
		return self._oleobj_.InvokeTypes(50331948, LCID, 1, (24, 0), ((8, 1),),TranscriptFileName
			)

	def _SetRegistryEntry(self, SubKey=defaultNamedNotOptArg, ValueName=defaultNamedNotOptArg, Value=defaultNamedNotOptArg, RegistryHive=defaultNamedNotOptArg
			, RefreshWithEntry=defaultNamedNotOptArg):
		"""Hidden method. Not for public use. Creates an entry in the system registry, including the current Inventor hive"""
		return self._oleobj_.InvokeTypes(50331935, LCID, 1, (24, 0), ((8, 1), (8, 1), (12, 1), (3, 1), (11, 1)),SubKey
			, ValueName, Value, RegistryHive, RefreshWithEntry)

	_prop_map_get_ = {
		# Method 'ActiveAppearanceLibrary' returns object of type 'AssetLibrary'
		"ActiveAppearanceLibrary": (50332051, 2, (9, 0), (), "ActiveAppearanceLibrary", '{BE5F1900-C9E6-49B4-BA3A-1BC7FF49DCD0}'),
		# Method 'ActiveColorScheme' returns object of type 'ColorScheme'
		"ActiveColorScheme": (50331995, 2, (9, 0), (), "ActiveColorScheme", '{917CE8E7-741A-48A3-8E15-89A6DA053C40}'),
		# Method 'ActiveDocument' returns object of type 'Document'
		"ActiveDocument": (50331905, 2, (9, 0), (), "ActiveDocument", '{70109AA1-63C1-11D2-B78B-0060B0EC020B}'),
		"ActiveDocumentType": (50331906, 2, (3, 0), (), "ActiveDocumentType", None),
		# Method 'ActiveEditDocument' returns object of type 'Document'
		"ActiveEditDocument": (50332027, 2, (9, 0), (), "ActiveEditDocument", '{70109AA1-63C1-11D2-B78B-0060B0EC020B}'),
		"ActiveEditObject": (50331958, 2, (9, 0), (), "ActiveEditObject", None),
		# Method 'ActiveEnvironment' returns object of type 'Environment'
		"ActiveEnvironment": (50331964, 2, (9, 0), (), "ActiveEnvironment", '{4E27C06E-4D6A-4E53-9F84-32A0643623CF}'),
		# Method 'ActiveMaterialLibrary' returns object of type 'AssetLibrary'
		"ActiveMaterialLibrary": (50332052, 2, (9, 0), (), "ActiveMaterialLibrary", '{BE5F1900-C9E6-49B4-BA3A-1BC7FF49DCD0}'),
		# Method 'ActiveView' returns object of type 'View'
		"ActiveView": (50331910, 2, (9, 0), (), "ActiveView", '{70109AA3-63C1-11D2-B78B-0060B0EC020B}'),
		# Method 'ActiveWebView' returns object of type 'WebView'
		"ActiveWebView": (50332050, 2, (9, 0), (), "ActiveWebView", '{CCEBC8A5-7171-47B6-B9DC-067DAC0C79E7}'),
		"AllUsersAppDataPath": (50332025, 2, (8, 0), (), "AllUsersAppDataPath", None),
		# Method 'ApplicationAddIns' returns object of type 'ApplicationAddIns'
		"ApplicationAddIns": (50331941, 2, (9, 0), (), "ApplicationAddIns", '{A0481EEA-2031-11D3-B78D-0060B0F159EF}'),
		# Method 'ApplicationEvents' returns object of type 'ApplicationEvents'
		"ApplicationEvents": (50331922, 2, (13, 0), (), "ApplicationEvents", '{70109AAD-63C1-11D2-B78B-0060B0EC020B}'),
		# Method 'AssemblyEvents' returns object of type 'AssemblyEvents'
		"AssemblyEvents": (50332012, 2, (13, 0), (), "AssemblyEvents", '{BABF5BC3-9878-11D4-8DE2-0010B541CAA8}'),
		# Method 'AssemblyOptions' returns object of type 'AssemblyOptions'
		"AssemblyOptions": (50331988, 2, (9, 0), (), "AssemblyOptions", '{C6345819-0FAA-45A0-BF96-3C946F130076}'),
		# Method 'AssetLibraries' returns object of type 'AssetLibraries'
		"AssetLibraries": (50332053, 2, (9, 0), (), "AssetLibraries", '{DF8C6267-186F-4A45-8BD4-2545484B102E}'),
		# Method 'CameraEvents' returns object of type 'CameraEvents'
		"CameraEvents": (50332040, 2, (13, 0), (), "CameraEvents", '{DB89B455-6C7F-4008-986F-05D5218DA204}'),
		"CameraRollMode3Dx": (50332038, 2, (11, 0), (), "CameraRollMode3Dx", None),
		"Caption": (50331914, 2, (8, 0), (), "Caption", None),
		# Method 'ChangeManager' returns object of type 'ChangeManager'
		"ChangeManager": (50331991, 2, (9, 0), (), "ChangeManager", '{D70C53E3-58A6-48CA-95D2-AF6F4AAD04EA}'),
		# Method 'ColorSchemes' returns object of type 'ColorSchemes'
		"ColorSchemes": (50331996, 2, (9, 0), (), "ColorSchemes", '{817C825E-2D55-4E09-A69E-789E9753959D}'),
		# Method 'CommandManager' returns object of type 'CommandManager'
		"CommandManager": (50331949, 2, (9, 0), (), "CommandManager", '{9C88D3A9-C3EB-11D3-B79E-0060B0F159EF}'),
		# Method 'ContentCenter' returns object of type 'ContentCenter'
		"ContentCenter": (50331992, 2, (9, 0), (), "ContentCenter", '{8AC1686D-0646-41D5-A28F-05353181AEBA}'),
		# Method 'ContentCenterOptions' returns object of type 'ContentCenterOptions'
		"ContentCenterOptions": (50332036, 2, (9, 0), (), "ContentCenterOptions", '{650A171B-40E1-4C3B-B55E-DFB3D31C2CB8}'),
		"CurrentUserAppDataPath": (50332024, 2, (8, 0), (), "CurrentUserAppDataPath", None),
		# Method 'DesignProjectManager' returns object of type 'DesignProjectManager'
		"DesignProjectManager": (50332002, 2, (9, 0), (), "DesignProjectManager", '{4A60CB5E-1EE8-4180-A801-194704F3021E}'),
		# Method 'DisplayOptions' returns object of type 'DisplayOptions'
		"DisplayOptions": (50332017, 2, (9, 0), (), "DisplayOptions", '{48694BB1-0E75-4A39-94E0-C7C133C23305}'),
		# Method 'Documents' returns object of type 'Documents'
		"Documents": (50331907, 2, (9, 0), (), "Documents", '{70109AA2-63C1-11D2-B78B-0060B0EC020B}'),
		# Method 'DrawingOptions' returns object of type 'DrawingOptions'
		"DrawingOptions": (50332021, 2, (9, 0), (), "DrawingOptions", '{221277C1-7963-4539-B2E5-E7E16D3C75AA}'),
		# Method 'EnvironmentBaseCollection' returns object of type 'EnvironmentBaseCollection'
		"EnvironmentBaseCollection": (50331979, 2, (9, 0), (), "EnvironmentBaseCollection", '{BC985A7D-4B44-4089-870D-0AEE95D5E86A}'),
		# Method 'Environments' returns object of type 'Environments'
		"Environments": (50331963, 2, (9, 0), (), "Environments", '{D23D422B-C248-4EA4-98AF-9E6390C99964}'),
		# Method 'ErrorManager' returns object of type 'ErrorManager'
		"ErrorManager": (50332035, 2, (9, 0), (), "ErrorManager", '{7B550B22-4519-43D2-9A9E-5EC0D9FFCCD6}'),
		# Method 'FavoriteAssets' returns object of type 'AssetsEnumerator'
		"FavoriteAssets": (50332054, 2, (9, 0), (), "FavoriteAssets", '{505BB0CA-670E-4D54-AB26-F66A64DBB72C}'),
		# Method 'FileAccessEvents' returns object of type 'FileAccessEvents'
		"FileAccessEvents": (50331924, 2, (13, 0), (), "FileAccessEvents", '{32E4A319-C5E8-11D2-B77F-0060B0F159EF}'),
		# Method 'FileLocations' returns object of type 'FileLocations'
		"FileLocations": (50331943, 2, (9, 0), (), "FileLocations", '{0BF73FD9-1253-11D3-B789-0060B0F159EF}'),
		# Method 'FileManager' returns object of type 'FileManager'
		"FileManager": (50331982, 2, (9, 0), (), "FileManager", '{B00506C6-BEB7-47F6-8B1B-A5CB5DCD09B3}'),
		# Method 'FileOptions' returns object of type 'FileOptions'
		"FileOptions": (50331997, 2, (9, 0), (), "FileOptions", '{EB213A42-0727-48F0-9BCF-C55F6CB4CD78}'),
		# Method 'FileUIEvents' returns object of type 'FileUIEvents'
		"FileUIEvents": (50331923, 2, (13, 0), (), "FileUIEvents", '{70109AAA-63C1-11D2-B78B-0060B0EC020B}'),
		"FlythroughMode3Dx": (50332037, 2, (11, 0), (), "FlythroughMode3Dx", None),
		# Method 'GeneralOptions' returns object of type 'GeneralOptions'
		"GeneralOptions": (50331989, 2, (9, 0), (), "GeneralOptions", '{DBB345F5-06CB-4B20-96B8-C47EF589ECBE}'),
		# Method 'HardwareOptions' returns object of type 'HardwareOptions'
		"HardwareOptions": (50332010, 2, (9, 0), (), "HardwareOptions", '{9A19AF07-A6BF-43AA-ABF3-870CA1CF329F}'),
		"Height": (50331975, 2, (3, 0), (), "Height", None),
		# Method 'HelpManager' returns object of type 'HelpManager'
		"HelpManager": (50331950, 2, (9, 0), (), "HelpManager", '{9C88D3AA-C3EB-11D3-B79E-0060B0F159EF}'),
		"InstallPath": (50332023, 2, (8, 0), (), "InstallPath", None),
		"IsCIPEnabled": (50331926, 2, (11, 0), (), "IsCIPEnabled", None),
		"LanguageCode": (50332044, 2, (8, 0), (), "LanguageCode", None),
		"LanguageName": (50331953, 2, (8, 0), (), "LanguageName", None),
		# Method 'LanguageTools' returns object of type 'LanguageTools'
		"LanguageTools": (50332026, 2, (9, 0), (), "LanguageTools", '{0420658E-CCD1-4100-BFA1-AD78AA655551}'),
		"Left": (50331974, 2, (3, 0), (), "Left", None),
		"Locale": (50331952, 2, (3, 0), (), "Locale", None),
		"MRUDisplay": (50332030, 2, (11, 0), (), "MRUDisplay", None),
		"MRUEnabled": (50331925, 2, (11, 0), (), "MRUEnabled", None),
		"MainFrameHWND": (50331946, 2, (3, 0), (), "MainFrameHWND", None),
		"MaterialDisplayUnits": (50332055, 2, (3, 0), (), "MaterialDisplayUnits", None),
		# Method 'MeasureTools' returns object of type 'MeasureTools'
		"MeasureTools": (50332018, 2, (9, 0), (), "MeasureTools", '{78B3596A-176A-43F5-A65C-4BDFFC042236}'),
		# Method 'ModelingEvents' returns object of type 'ModelingEvents'
		"ModelingEvents": (50332011, 2, (13, 0), (), "ModelingEvents", '{B0128AFD-14AE-4FD6-AED0-314D1F79F3EB}'),
		# Method 'NotebookOptions' returns object of type 'NotebookOptions'
		"NotebookOptions": (50332009, 2, (9, 0), (), "NotebookOptions", '{CEF827E8-5A0A-452D-83BB-1A88815C1601}'),
		"OpenDocumentsDisplay": (50332041, 2, (11, 0), (), "OpenDocumentsDisplay", None),
		# Method 'PartOptions' returns object of type 'PartOptions'
		"PartOptions": (50332006, 2, (9, 0), (), "PartOptions", '{986FCF92-8A47-4DEC-9007-DD852292DE71}'),
		# Method 'Preferences' returns object of type 'ObjectsEnumeratorByVariant'
		"Preferences": (50331939, 2, (9, 0), (), "Preferences", '{9235396B-0350-11D3-B787-0060B0F159EF}'),
		# Method 'PresentationOptions' returns object of type 'PresentationOptions'
		"PresentationOptions": (50332048, 2, (9, 0), (), "PresentationOptions", '{6E68C1F1-A6AF-4235-8E86-AB031F7813E3}'),
		"Ready": (50331998, 2, (11, 0), (), "Ready", None),
		# Method 'ReferenceKeyEvents' returns object of type 'ReferenceKeyEvents'
		"ReferenceKeyEvents": (50431491, 2, (13, 0), (), "ReferenceKeyEvents", '{D893A325-547B-4DE2-8F8B-BD9594025979}'),
		# Method 'RepresentationEvents' returns object of type 'RepresentationEvents'
		"RepresentationEvents": (50332016, 2, (13, 0), (), "RepresentationEvents", '{955CB4BF-782F-4A58-8538-4E1028EA5D20}'),
		# Method 'SaveOptions' returns object of type 'SaveOptions'
		"SaveOptions": (50332014, 2, (9, 0), (), "SaveOptions", '{A6EC8B79-931A-409E-90CE-3EE28CB9F9F4}'),
		"ScreenUpdating": (50332028, 2, (11, 0), (), "ScreenUpdating", None),
		"SilentOperation": (50331954, 2, (11, 0), (), "SilentOperation", None),
		# Method 'Sketch3DOptions' returns object of type 'Sketch3DOptions'
		"Sketch3DOptions": (50332007, 2, (9, 0), (), "Sketch3DOptions", '{D39AB98F-45E0-4CAE-A0F2-4490804F2AD3}'),
		# Method 'SketchEvents' returns object of type 'SketchEvents'
		"SketchEvents": (50332015, 2, (13, 0), (), "SketchEvents", '{579B848D-41FD-4A4E-87F8-58A213360623}'),
		# Method 'SketchOptions' returns object of type 'SketchOptions'
		"SketchOptions": (50331999, 2, (9, 0), (), "SketchOptions", '{8B657FE9-BF0A-4AED-B1FB-166229D406B3}'),
		# Method 'SoftwareVersion' returns object of type 'SoftwareVersion'
		"SoftwareVersion": (50331956, 2, (9, 0), (), "SoftwareVersion", '{076C16D1-4994-11D4-9E0F-0010A4C72F07}'),
		"StatusBarText": (50331962, 2, (8, 0), (), "StatusBarText", None),
		# Method 'StyleEvents' returns object of type 'StyleEvents'
		"StyleEvents": (50332019, 2, (13, 0), (), "StyleEvents", '{4732A4F0-D435-4F10-8548-4DBE68276D58}'),
		# Method 'StylesManager' returns object of type 'StylesManager'
		"StylesManager": (50332039, 2, (9, 0), (), "StylesManager", '{D93EE206-0CA6-401E-B74E-0D9E4F924751}'),
		"SubscriptionStatus": (50332043, 2, (3, 0), (), "SubscriptionStatus", None),
		"SupportsFileManagement": (50332033, 2, (11, 0), (), "SupportsFileManagement", None),
		# Method 'TestManager' returns object of type 'TestManager'
		"TestManager": (50331986, 2, (9, 0), (), "TestManager", '{369933DF-0F63-46AA-919B-17C91F385C9E}'),
		"Top": (50331973, 2, (3, 0), (), "Top", None),
		# Method 'TransactionManager' returns object of type 'TransactionManager'
		"TransactionManager": (50331944, 2, (9, 0), (), "TransactionManager", '{AE277672-2FDC-11D3-B78F-0060B0F159EF}'),
		# Method 'TransientBRep' returns object of type 'TransientBRep'
		"TransientBRep": (50331917, 2, (9, 0), (), "TransientBRep", '{2BFE4397-C369-4CEF-90C9-D5C8AE90BC9F}'),
		# Method 'TransientGeometry' returns object of type 'TransientGeometry'
		"TransientGeometry": (50331959, 2, (9, 0), (), "TransientGeometry", '{97ECB3AE-6C6E-4D8A-A91E-564314494EB8}'),
		# Method 'TransientObjects' returns object of type 'TransientObjects'
		"TransientObjects": (50331961, 2, (9, 0), (), "TransientObjects", '{6BA435D7-BBD6-11D4-8DE6-0010B541CAA8}'),
		# Method 'TutorialsManager' returns object of type 'TutorialsManager'
		"TutorialsManager": (50332047, 2, (9, 0), (), "TutorialsManager", '{0169EC1F-0694-4353-B28D-3D74B59402D0}'),
		"Type": (0, 2, (3, 0), (), "Type", None),
		# Method 'UnitsOfMeasure' returns object of type 'UnitsOfMeasure'
		"UnitsOfMeasure": (50332029, 2, (9, 0), (), "UnitsOfMeasure", '{D007B6F9-71BB-48FF-B14C-EE5D633CB0C3}'),
		# Method 'UserInterfaceManager' returns object of type 'UserInterfaceManager'
		"UserInterfaceManager": (50331990, 2, (9, 0), (), "UserInterfaceManager", '{3AF77BAF-EECD-4301-823D-9B604FE5C176}'),
		"UserName": (50331965, 2, (8, 0), (), "UserName", None),
		# Method 'VBAProjects' returns object of type 'InventorVBAProjects'
		"VBAProjects": (50331972, 2, (9, 0), (), "VBAProjects", '{EEB0116A-7B74-4A9C-B2FF-96BC31812249}'),
		"VBE": (50331968, 2, (9, 0), (), "VBE", None),
		# Method 'Views' returns object of type 'ViewsEnumerator'
		"Views": (50331911, 2, (9, 0), (), "Views", '{2C16787B-83FF-11D4-8DDB-0010B541CAA8}'),
		"Visible": (50331916, 2, (11, 0), (), "Visible", None),
		# Method 'WebViews' returns object of type 'WebViews'
		"WebViews": (50332049, 2, (9, 0), (), "WebViews", '{B894B815-AEF1-4FAA-938A-2131E2E5190F}'),
		"Width": (50331976, 2, (3, 0), (), "Width", None),
		"WindowState": (50331978, 2, (3, 0), (), "WindowState", None),
		# Method '_AppPerformanceMonitor' returns object of type '_AppPerformanceMonitor'
		"_AppPerformanceMonitor": (50331980, 2, (9, 0), (), "_AppPerformanceMonitor", '{DDC2F383-3824-49E3-837C-7387D4775893}'),
		"_CanReplayTranscript": (50331947, 2, (11, 0), (), "_CanReplayTranscript", None),
		# Method '_DebugInstrumentation' returns object of type 'DebugInstrumentation'
		"_DebugInstrumentation": (50331966, 2, (13, 0), (), "_DebugInstrumentation", '{F6F33559-6984-11D5-8DF3-0010B541CAA8}'),
		"_DefaultPrinter3DName": (50332056, 2, (8, 0), (), "_DefaultPrinter3DName", None),
		"_ForceMigrationOnOpen": (50331984, 2, (11, 0), (), "_ForceMigrationOnOpen", None),
		"_HarvestStylesOnOpen": (50331993, 2, (11, 0), (), "_HarvestStylesOnOpen", None),
		"_PurgeStylesOnOpen": (50331994, 2, (11, 0), (), "_PurgeStylesOnOpen", None),
		"_SuppressFileDirtyEvents": (50332001, 2, (11, 0), (), "_SuppressFileDirtyEvents", None),
		"_TestIO": (50331969, 2, (9, 0), (), "_TestIO", None),
		"_TranscriptAPIChanges": (50332003, 2, (11, 0), (), "_TranscriptAPIChanges", None),
		"_TranscriptFileName": (50331945, 2, (8, 0), (), "_TranscriptFileName", None),
		# Method 'iFeatureOptions' returns object of type 'iFeatureOptions'
		"iFeatureOptions": (50332008, 2, (9, 0), (), "iFeatureOptions", '{2B03891E-1B59-4576-8160-C61EA6E6D0DC}'),
	}
	_prop_map_put_ = {
		"ActiveAppearanceLibrary": ((50332051, LCID, 4, 0),()),
		"ActiveMaterialLibrary": ((50332052, LCID, 4, 0),()),
		"CameraRollMode3Dx": ((50332038, LCID, 4, 0),()),
		"Caption": ((50331914, LCID, 4, 0),()),
		"FlythroughMode3Dx": ((50332037, LCID, 4, 0),()),
		"Height": ((50331975, LCID, 4, 0),()),
		"Left": ((50331974, LCID, 4, 0),()),
		"MRUDisplay": ((50332030, LCID, 4, 0),()),
		"MRUEnabled": ((50331925, LCID, 4, 0),()),
		"MaterialDisplayUnits": ((50332055, LCID, 4, 0),()),
		"OpenDocumentsDisplay": ((50332041, LCID, 4, 0),()),
		"ScreenUpdating": ((50332028, LCID, 4, 0),()),
		"SilentOperation": ((50331954, LCID, 4, 0),()),
		"StatusBarText": ((50331962, LCID, 4, 0),()),
		"SupportsFileManagement": ((50332033, LCID, 4, 0),()),
		"Top": ((50331973, LCID, 4, 0),()),
		"UserName": ((50331965, LCID, 4, 0),()),
		"Visible": ((50331916, LCID, 4, 0),()),
		"Width": ((50331976, LCID, 4, 0),()),
		"WindowState": ((50331978, LCID, 4, 0),()),
		"_DefaultPrinter3DName": ((50332056, LCID, 4, 0),()),
		"_ForceMigrationOnOpen": ((50331984, LCID, 4, 0),()),
		"_HarvestStylesOnOpen": ((50331993, LCID, 4, 0),()),
		"_PurgeStylesOnOpen": ((50331994, LCID, 4, 0),()),
		"_SuppressFileDirtyEvents": ((50332001, LCID, 4, 0),()),
		"_TestIO": ((50331969, LCID, 4, 0),()),
		"_TranscriptAPIChanges": ((50332003, LCID, 4, 0),()),
		"_UpdateAnnotationsOnSheetActivate": ((50331985, LCID, 4, 0),()),
	}
	# Default property for this class is 'Type'
	def __call__(self):
		return self._ApplyTypes_(*(0, 2, (3, 0), (), "Type", None))
	# str(ob) and int(ob) will use __call__
	def __unicode__(self, *args):
		try:
			return unicode(self.__call__(*args))
		except pythoncom.com_error:
			return repr(self)
	def __str__(self, *args):
		return str(self.__unicode__(*args))
	def __int__(self, *args):
		return int(self.__call__(*args))
コード例 #8
0
class _DRPcoX(DispatchBaseClass):

    """Dispatch interface for RPcoX Control"""

    CLSID = IID('{D323A623-1D13-11D4-8858-444553540000}')

    coclass_clsid = IID('{D323A625-1D13-11D4-8858-444553540000}')

    def AboutBox(self):

        return self._oleobj_.InvokeTypes(-552, LCID, 1, (24, 0), (),)

    def ClearCOF(self):

        return self._oleobj_.InvokeTypes(28, LCID, 1, (3, 0), (),)

    def Connect(self, Interface=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(2, LCID, 1, (3, 0), ((3, 0), (3, 0)), Interface, DevNum)

    def ConnectRA16(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(24, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRL2(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(23, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRM1(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRM1"""

        return self._oleobj_.InvokeTypes(38, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRM2(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRM2"""

        return self._oleobj_.InvokeTypes(39, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRP2(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(22, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRV8(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(32, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRX5(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRX5"""

        return self._oleobj_.InvokeTypes(40, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRX6(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRX6"""

        return self._oleobj_.InvokeTypes(41, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRX7(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRX7"""

        return self._oleobj_.InvokeTypes(42, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRX8(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRX8"""

        return self._oleobj_.InvokeTypes(43, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRX9(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRX9"""

        return self._oleobj_.InvokeTypes(44, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRZ2(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRZ2"""

        return self._oleobj_.InvokeTypes(45, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRZ3(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRZ3"""

        return self._oleobj_.InvokeTypes(46, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRZ4(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRZ4"""

        return self._oleobj_.InvokeTypes(47, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRZ5(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRZ5"""

        return self._oleobj_.InvokeTypes(48, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def ConnectRZ6(self, IntName=defaultNamedNotOptArg, DevNum=defaultNamedNotOptArg):
        """method ConnectRZ6"""

        return self._oleobj_.InvokeTypes(49, LCID, 1, (3, 0), ((8, 0), (3, 0)), IntName, DevNum)

    def DefStatus(self, DefID=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(36, LCID, 1, (3, 0), ((3, 0),), DefID

                                         )

    def GetCycUse(self):

        return self._oleobj_.InvokeTypes(27, LCID, 1, (3, 0), (),)

    def GetDefData(self, DefID=defaultNamedNotOptArg):

        return self._ApplyTypes_(37, 1, (12, 0), ((3, 0),), u'GetDefData', None, DefID

                                 )

    def GetDevCfg(self, Addr=defaultNamedNotOptArg, Width32=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(33, LCID, 1, (3, 0), ((3, 0), (3, 0)), Addr, Width32)

    def GetError(self):

        # Result is a Unicode object - return as-is for this version of Python

        return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), (),)

    def GetNameOf(self, ObjTypeName=defaultNamedNotOptArg, Index=defaultNamedNotOptArg):

        # Result is a Unicode object - return as-is for this version of Python

        return self._oleobj_.InvokeTypes(20, LCID, 1, (8, 0), ((8, 0), (3, 0)), ObjTypeName, Index)

    def GetNames(self, NameList=defaultNamedNotOptArg, MaxNames=defaultNamedNotOptArg, ObjType=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(13, LCID, 1, (3, 0), ((8, 0), (3, 0), (3, 0)), NameList, MaxNames, ObjType)

    def GetNumOf(self, ObjTypeName=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(19, LCID, 1, (3, 0), ((8, 0),), ObjTypeName

                                         )

    def GetSFreq(self):

        return self._oleobj_.InvokeTypes(31, LCID, 1, (4, 0), (),)

    def GetStatus(self):

        return self._oleobj_.InvokeTypes(26, LCID, 1, (3, 0), (),)

    def GetTagSize(self, Name=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(16, LCID, 1, (3, 0), ((8, 0),), Name

                                         )

    def GetTagType(self, Name=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(17, LCID, 1, (3, 0), ((8, 0),), Name

                                         )

    def GetTagVal(self, Name=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(8, LCID, 1, (4, 0), ((8, 0),), Name

                                         )

    def Halt(self):

        return self._oleobj_.InvokeTypes(6, LCID, 1, (3, 0), (),)

    def LoadCOF(self, FileName=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(4, LCID, 1, (3, 0), ((8, 0),), FileName

                                         )

    def LoadCOFsf(self, FileName=defaultNamedNotOptArg, SampFreq=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(35, LCID, 1, (3, 0), ((8, 0), (4, 0)), FileName, SampFreq)

    def ReadCOF(self, FileName=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(21, LCID, 1, (3, 0), ((8, 0),), FileName

                                         )

    def ReadTag(self, Name=defaultNamedNotOptArg, pBuf=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, nWords=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((8, 0), (16388, 0), (3, 0), (3, 0)), Name, pBuf, nOS, nWords)

    def ReadTagV(self, Name=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, nWords=defaultNamedNotOptArg):

        return self._ApplyTypes_(14, 1, (12, 0), ((8, 0), (3, 0), (3, 0)), u'ReadTagV', None, Name, nOS, nWords)

    def ReadTagVEX(self, Name=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, nWords=defaultNamedNotOptArg, SrcType=defaultNamedNotOptArg, DstType=defaultNamedNotOptArg, nChans=defaultNamedNotOptArg):

        return self._ApplyTypes_(25, 1, (12, 0), ((8, 0), (3, 0), (3, 0), (8, 0), (8, 0), (3, 0)), u'ReadTagVEX', None, Name, nOS, nWords, SrcType, DstType, nChans

                                 )

    def Run(self):

        return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

    def SendParTable(self, Name=defaultNamedNotOptArg, IndexID=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(11, LCID, 1, (3, 0), ((8, 0), (4, 0)), Name, IndexID)

    def SendSrcFile(self, Name=defaultNamedNotOptArg, SeekOS=defaultNamedNotOptArg, nWords=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(12, LCID, 1, (3, 0), ((8, 0), (3, 0), (3, 0)), Name, SeekOS, nWords)

    def SetDevCfg(self, Addr=defaultNamedNotOptArg, Val=defaultNamedNotOptArg, Width32=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(34, LCID, 1, (3, 0), ((3, 0), (3, 0), (3, 0)), Addr, Val, Width32)

    def SetSrcFileName(self, Name=defaultNamedNotOptArg, FileName=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(18, LCID, 1, (3, 0), ((8, 0), (8, 0)), Name, FileName)

    def SetTagVal(self, Name=defaultNamedNotOptArg, Val=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(3, LCID, 1, (3, 0), ((8, 0), (4, 0)), Name, Val)

    def SoftTrg(self, Trg_Bitn=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(7, LCID, 1, (3, 0), ((3, 0),), Trg_Bitn

                                         )

    def WriteTag(self, Name=defaultNamedNotOptArg, pBuf=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, nWords=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(10, LCID, 1, (3, 0), ((8, 0), (16388, 0), (3, 0), (3, 0)), Name, pBuf, nOS, nWords)

    def WriteTagV(self, Name=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, Buf=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(15, LCID, 1, (3, 0), ((8, 0), (3, 0), (0x2005, 0)), Name, nOS, Buf)

    def WriteTagVEX(self, Name=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, DstType=defaultNamedNotOptArg, Buf=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(29, LCID, 1, (3, 0), ((8, 0), (3, 0), (8, 0), (0x2005, 0)), Name, nOS, DstType, Buf)

    def ZeroTag(self, Name=defaultNamedNotOptArg):

        return self._oleobj_.InvokeTypes(30, LCID, 1, (3, 0), ((8, 0),), Name

                                         )

    _prop_map_get_ = {

    }

    _prop_map_put_ = {

    }
コード例 #9
0
"""zBUSx ActiveX Control module"""
makepy_version = '0.4.97'
python_version = 0x20502f0

import win32com.client.CLSIDToClass, pythoncom
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('{10055D3E-3938-4652-B6A2-6A6A4184D18D}')
MajorVersion = 1
MinorVersion = 0
LibraryFlags = 10
LCID = 0x0

from win32com.client import DispatchBaseClass
class _DZBUSx(DispatchBaseClass):
	"""Dispatch interface for ZBUSx Control"""
	CLSID = IID('{9F05A891-D2B9-41AF-8C8E-3F4245261483}')
	coclass_clsid = IID('{79734A6C-8E6E-4998-B834-3E4E481232B0}')

	def AboutBox(self):
		return self._oleobj_.InvokeTypes(-552, LCID, 1, (24, 0), (),)

	def Connect(self, Interface=defaultNamedNotOptArg):
コード例 #10
0
ファイル: column_provider.py プロジェクト: hnur/pywin32
class ColumnProvider:
    _reg_progid_ = "Python.ShellExtension.ColumnProvider"
    _reg_desc_ = "Python Sample Shell Extension (Column Provider)"
    _reg_clsid_ = IID("{0F14101A-E05E-4070-BD54-83DFA58C3D68}")
    _com_interfaces_ = [
        pythoncom.IID_IPersist,
        shell.IID_IColumnProvider,
    ]
    _public_methods_ = IColumnProvider_Methods

    # IPersist
    def GetClassID(self):
        return self._reg_clsid_

    # IColumnProvider
    def Initialize(self, colInit):
        flags, reserved, name = colInit
        print "ColumnProvider initializing for file", name

    def GetColumnInfo(self, index):
        # We support exactly 2 columns - 'pyc size' and 'pyo size'
        if index in [0, 1]:
            # As per the MSDN sample, use our CLSID as the fmtid
            if index == 0:
                ext = ".pyc"
            else:
                ext = ".pyo"
            title = ext + " size"
            description = "Size of compiled %s file" % ext
            col_id = (
                self._reg_clsid_,  # fmtid
                index)  # pid
            col_info = (
                    col_id, # scid
                    pythoncom.VT_I4, # vt
                    commctrl.LVCFMT_RIGHT, # fmt
                    20, #cChars
                    shellcon.SHCOLSTATE_TYPE_INT | \
                    shellcon.SHCOLSTATE_SECONDARYUI, # csFlags
                    title,
                    description)
            return col_info
        return None  # Indicate no more columns.

    def GetItemData(self, colid, colData):
        fmt_id, pid = colid
        fmt_id == self._reg_clsid_
        flags, attr, reserved, ext, name = colData
        if ext.lower() not in [".py", ".pyw"]:
            return None
        if pid == 0:
            ext = ".pyc"
        else:
            ext = ".pyo"
        check_file = os.path.splitext(name)[0] + ext
        try:
            st = os.stat(check_file)
            return st[stat.ST_SIZE]
        except OSError:
            # No file
            return None
コード例 #11
0
python_version = 0x20502f0


# 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('{D323A622-1D13-11D4-8858-444553540000}')

MajorVersion = 1

MinorVersion = 0

LibraryFlags = 10

LCID = 0x0


class _DRPcoX(DispatchBaseClass):

    """Dispatch interface for RPcoX Control"""

    CLSID = IID('{D323A623-1D13-11D4-8858-444553540000}')
コード例 #12
0
class TextSelection(DispatchBaseClass):
	'Object representing the selection or caret in a text view.'
	CLSID = IID('{1FA0E135-399A-4D2C-A4FE-D21E2480F921}')
	coclass_clsid = None

	def Backspace(self, Count=1):
		'Deletes a specified number of characters to the left of the active point. The default is 1 character.'
		return self._oleobj_.InvokeTypes(80, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def Cancel(self):
		'Collapses the selection to the active point.'
		return self._oleobj_.InvokeTypes(81, LCID, 1, (24, 0), (),)

	def ChangeCase(self, How=defaultNamedNotOptArg):
		'Changes the case of the selected text.'
		return self._oleobj_.InvokeTypes(15, LCID, 1, (24, 0), ((3, 1),),How
			)

	def CharLeft(self, Extend=False, Count=1):
		'Moves the object the specified number of characters to the left. The default is 1 character.'
		return self._oleobj_.InvokeTypes(16, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def CharRight(self, Extend=False, Count=1):
		'Moves the object the specified number of characters to the right. The default is 1 character.'
		return self._oleobj_.InvokeTypes(17, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def ClearBookmark(self):
		'Clears any unnamed bookmarks on the current line.'
		return self._oleobj_.InvokeTypes(18, LCID, 1, (24, 0), (),)

	def Collapse(self):
		'Collapses the selection to the active point.'
		return self._oleobj_.InvokeTypes(19, LCID, 1, (24, 0), (),)

	def Copy(self):
		'Copies the selection to the clipboard.'
		return self._oleobj_.InvokeTypes(20, LCID, 1, (24, 0), (),)

	def Cut(self):
		'Copies the selection to the clipboard and deletes it.'
		return self._oleobj_.InvokeTypes(21, LCID, 1, (24, 0), (),)

	def Delete(self, Count=1):
		'Deletes the selection.'
		return self._oleobj_.InvokeTypes(23, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def DeleteLeft(self, Count=1):
		'Deletes a specified number of characters to the left of the active point. The default is 1 character.'
		return self._oleobj_.InvokeTypes(24, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def DeleteWhitespace(self, Direction=0):
		'Deletes white space horizontally or vertically around the current location.'
		return self._oleobj_.InvokeTypes(25, LCID, 1, (24, 0), ((3, 49),),Direction
			)

	def DestructiveInsert(self, Text=defaultNamedNotOptArg):
		'Inserts text, overwriting the existing text.'
		return self._oleobj_.InvokeTypes(57, LCID, 1, (24, 0), ((8, 1),),Text
			)

	def EndOfDocument(self, Extend=False):
		'Moves the object to the end of the document.'
		return self._oleobj_.InvokeTypes(28, LCID, 1, (24, 0), ((11, 49),),Extend
			)

	def EndOfLine(self, Extend=False):
		'Moves the object to the end of the current line.'
		return self._oleobj_.InvokeTypes(26, LCID, 1, (24, 0), ((11, 49),),Extend
			)

	def FindPattern(self, Pattern=defaultNamedNotOptArg, vsFindOptionsValue=0, Tags=0):
		'Searches for the given pattern from the active point to the end of the document.'
		return self._ApplyTypes_(30, 1, (11, 0), ((8, 1), (3, 49), (16393, 51)), 'FindPattern', None,Pattern
			, vsFindOptionsValue, Tags)

	def FindText(self, Pattern=defaultNamedNotOptArg, vsFindOptionsValue=0):
		'Searches for the given pattern from the active point to the end of the document.'
		return self._oleobj_.InvokeTypes(70, LCID, 1, (11, 0), ((8, 1), (3, 49)),Pattern
			, vsFindOptionsValue)

	def GotoLine(self, Line=defaultNamedNotOptArg, Select=False):
		'Moves to the beginning of the indicated line and selects the line if requested.'
		return self._oleobj_.InvokeTypes(32, LCID, 1, (24, 0), ((3, 1), (11, 49)),Line
			, Select)

	def Indent(self, Count=1):
		'Indents the lines of the selection by the number of indentation levels given. The default is 1 indentation level.'
		return self._oleobj_.InvokeTypes(33, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def Insert(self, Text=defaultNamedNotOptArg, vsInsertFlagsCollapseToEndValue=1):
		'Inserts the given string at the current location.'
		return self._oleobj_.InvokeTypes(35, LCID, 1, (24, 0), ((8, 1), (3, 49)),Text
			, vsInsertFlagsCollapseToEndValue)

	def InsertFromFile(self, File=defaultNamedNotOptArg):
		'Inserts the contents of the specified file at the current location.'
		return self._oleobj_.InvokeTypes(61, LCID, 1, (24, 0), ((8, 1),),File
			)

	def LineDown(self, Extend=False, Count=1):
		'Moves the object down by the specified number of lines. The default is 1 line.'
		return self._oleobj_.InvokeTypes(36, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def LineUp(self, Extend=False, Count=1):
		'Moves the object up by the specified number of lines. The default is 1 line.'
		return self._oleobj_.InvokeTypes(37, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def MoveTo(self, Line=defaultNamedNotOptArg, Column=defaultNamedNotOptArg, Extend=False):
		'Moves the active point to the indicated display column.'
		return self._oleobj_.InvokeTypes(82, LCID, 1, (24, 0), ((3, 1), (3, 1), (11, 49)),Line
			, Column, Extend)

	def MoveToAbsoluteOffset(self, Offset=defaultNamedNotOptArg, Extend=False):
		'Moves the active point to the given 1-based absolute character offset.'
		return self._oleobj_.InvokeTypes(40, LCID, 1, (24, 0), ((3, 1), (11, 49)),Offset
			, Extend)

	def MoveToDisplayColumn(self, Line=defaultNamedNotOptArg, Column=defaultNamedNotOptArg, Extend=False):
		'Moves the active point to the indicated display column.'
		return self._oleobj_.InvokeTypes(58, LCID, 1, (24, 0), ((3, 1), (3, 1), (11, 49)),Line
			, Column, Extend)

	def MoveToLineAndOffset(self, Line=defaultNamedNotOptArg, Offset=defaultNamedNotOptArg, Extend=False):
		'Moves the active point to the given position.'
		return self._oleobj_.InvokeTypes(39, LCID, 1, (24, 0), ((3, 1), (3, 1), (11, 49)),Line
			, Offset, Extend)

	def MoveToPoint(self, Point=defaultNamedNotOptArg, Extend=False):
		'Moves the active point to the given position.'
		return self._oleobj_.InvokeTypes(38, LCID, 1, (24, 0), ((9, 1), (11, 49)),Point
			, Extend)

	def NewLine(self, Count=1):
		'Inserts a line break at the active point.'
		return self._oleobj_.InvokeTypes(41, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def NextBookmark(self):
		'Moves to the location of the next bookmark in the document.'
		return self._oleobj_.InvokeTypes(43, LCID, 1, (11, 0), (),)

	def OutlineSection(self):
		'Creates an outlining section based on the current selection.'
		return self._oleobj_.InvokeTypes(72, LCID, 1, (24, 0), (),)

	def PadToColumn(self, Column=defaultNamedNotOptArg):
		'Fills the current line with white space to the given column.'
		return self._oleobj_.InvokeTypes(45, LCID, 1, (24, 0), ((3, 1),),Column
			)

	def PageDown(self, Extend=False, Count=1):
		'Moves the active point a specified number of pages down in the document, scrolling the view.'
		return self._oleobj_.InvokeTypes(60, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def PageUp(self, Extend=False, Count=1):
		'Moves the active point a specified number of pages up in the document, scrolling the view.'
		return self._oleobj_.InvokeTypes(59, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def Paste(self):
		'Inserts the clipboard contents at the current location.'
		return self._oleobj_.InvokeTypes(22, LCID, 1, (24, 0), (),)

	def PreviousBookmark(self):
		'Moves to the location of the previous bookmark in the document.'
		return self._oleobj_.InvokeTypes(44, LCID, 1, (11, 0), (),)

	def ReplacePattern(self, Pattern=defaultNamedNotOptArg, Replace=defaultNamedNotOptArg, vsFindOptionsValue=0, Tags=0):
		'Searches for the given pattern in the selection and replaces it with new text.'
		return self._ApplyTypes_(31, 1, (11, 0), ((8, 1), (8, 1), (3, 49), (16393, 51)), 'ReplacePattern', None,Pattern
			, Replace, vsFindOptionsValue, Tags)

	def ReplaceText(self, Pattern=defaultNamedNotOptArg, Replace=defaultNamedNotOptArg, vsFindOptionsValue=0):
		'Searches for the given pattern in the selection and replaces it with new text.'
		return self._oleobj_.InvokeTypes(71, LCID, 1, (11, 0), ((8, 1), (8, 1), (3, 49)),Pattern
			, Replace, vsFindOptionsValue)

	def SelectAll(self):
		'Selects the document.'
		return self._oleobj_.InvokeTypes(47, LCID, 1, (24, 0), (),)

	def SelectLine(self):
		'Selects the line containing the active point.'
		return self._oleobj_.InvokeTypes(48, LCID, 1, (24, 0), (),)

	def SetBookmark(self):
		'Sets an unnamed bookmark on the current line.'
		return self._oleobj_.InvokeTypes(42, LCID, 1, (24, 0), (),)

	def SmartFormat(self):
		'Formats the indicated span of text based on the current language.'
		return self._oleobj_.InvokeTypes(46, LCID, 1, (24, 0), (),)

	def StartOfDocument(self, Extend=False):
		'Moves the object to the beginning of the document.'
		return self._oleobj_.InvokeTypes(29, LCID, 1, (24, 0), ((11, 49),),Extend
			)

	def StartOfLine(self, Where=0, Extend=False):
		'Moves the object to the beginning of the current line.'
		return self._oleobj_.InvokeTypes(27, LCID, 1, (24, 0), ((3, 49), (11, 49)),Where
			, Extend)

	def SwapAnchor(self):
		'Exchanges the positions of the active point and the anchor point.'
		return self._oleobj_.InvokeTypes(49, LCID, 1, (24, 0), (),)

	def Tabify(self):
		"Converts spaces to tabs in the selection according to the user's tab settings."
		return self._oleobj_.InvokeTypes(50, LCID, 1, (24, 0), (),)

	def Unindent(self, Count=1):
		'Removes indents from the selected lines by the number of indentation levels given. The default is 1 indentation level.'
		return self._oleobj_.InvokeTypes(34, LCID, 1, (24, 0), ((3, 49),),Count
			)

	def Untabify(self):
		"Converts tabs to spaces in the selection according to the user's tab settings."
		return self._oleobj_.InvokeTypes(51, LCID, 1, (24, 0), (),)

	def WordLeft(self, Extend=False, Count=1):
		'Moves the object the specified number of words to the left. The default is 1 word.'
		return self._oleobj_.InvokeTypes(52, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	def WordRight(self, Extend=False, Count=1):
		'Moves the object the specified number of words to the right. The default is 1 word.'
		return self._oleobj_.InvokeTypes(53, LCID, 1, (24, 0), ((11, 49), (3, 49)),Extend
			, Count)

	_prop_map_get_ = {
		# Method 'ActivePoint' returns object of type 'VirtualPoint'
		"ActivePoint": (4, 2, (9, 0), (), "ActivePoint", '{42320454-626C-4DD0-9ECB-357C4F1966D8}'),
		"AnchorColumn": (5, 2, (3, 0), (), "AnchorColumn", None),
		# Method 'AnchorPoint' returns object of type 'VirtualPoint'
		"AnchorPoint": (3, 2, (9, 0), (), "AnchorPoint", '{42320454-626C-4DD0-9ECB-357C4F1966D8}'),
		"BottomLine": (6, 2, (3, 0), (), "BottomLine", None),
		# Method 'BottomPoint' returns object of type 'VirtualPoint'
		"BottomPoint": (7, 2, (9, 0), (), "BottomPoint", '{42320454-626C-4DD0-9ECB-357C4F1966D8}'),
		"CurrentColumn": (8, 2, (3, 0), (), "CurrentColumn", None),
		"CurrentLine": (9, 2, (3, 0), (), "CurrentLine", None),
		# Method 'DTE' returns object of type 'DTE'
		"DTE": (1, 2, (13, 0), (), "DTE", '{3C9CFE1E-389F-4118-9FAD-365385190329}'),
		"IsActiveEndGreater": (11, 2, (11, 0), (), "IsActiveEndGreater", None),
		"IsEmpty": (10, 2, (11, 0), (), "IsEmpty", None),
		"Mode": (55, 2, (3, 0), (), "Mode", None),
		# Method 'Parent' returns object of type 'TextDocument'
		"Parent": (2, 2, (9, 0), (), "Parent", '{CB218890-1382-472B-9118-782700C88115}'),
		"Text": (0, 2, (8, 0), (), "Text", None),
		# Method 'TextPane' returns object of type 'TextPane'
		"TextPane": (54, 2, (9, 0), (), "TextPane", '{0A3BF283-05F8-4669-9BCB-A84B6423349A}'),
		# Method 'TextRanges' returns object of type 'TextRanges'
		"TextRanges": (56, 2, (9, 0), (), "TextRanges", '{B6422E9C-9EFD-4F87-BDDC-C7FD8F2FD303}'),
		"TopLine": (13, 2, (3, 0), (), "TopLine", None),
		# Method 'TopPoint' returns object of type 'VirtualPoint'
		"TopPoint": (14, 2, (9, 0), (), "TopPoint", '{42320454-626C-4DD0-9ECB-357C4F1966D8}'),
	}
	_prop_map_put_ = {
		"Mode": ((55, LCID, 4, 0),()),
		"Text": ((0, LCID, 4, 0),()),
	}
	# Default property for this class is 'Text'
	def __call__(self):
		return self._ApplyTypes_(*(0, 2, (8, 0), (), "Text", None))
	def __str__(self, *args):
		return str(self.__call__(*args))
	def __int__(self, *args):
		return int(self.__call__(*args))
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)
コード例 #13
0
ファイル: ifiltercon.py プロジェクト: ling-1/GETAiqiyiDanmu
# manual stuff
from pywintypes import IID

PSGUID_STORAGE = IID("{B725F130-47EF-101A-A5F1-02608C9EEBAC}")
PSGUID_SUMMARYINFORMATION = IID("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}")
PSGUID_HTMLINFORMATION = IID("{D1B5D3F0-C0B3-11CF-9A92-00A0C908DBF1}")
PSGUID_HTML2_INFORMATION = IID("{C82BF597-B831-11D0-B733-00AA00A1EBD2}")

IFILTER_INIT_CANON_PARAGRAPHS = 1
IFILTER_INIT_HARD_LINE_BREAKS = 2
IFILTER_INIT_CANON_HYPHENS = 4
IFILTER_INIT_CANON_SPACES = 8
IFILTER_INIT_APPLY_INDEX_ATTRIBUTES = 16
IFILTER_INIT_APPLY_CRAWL_ATTRIBUTES = 256
IFILTER_INIT_APPLY_OTHER_ATTRIBUTES = 32
IFILTER_INIT_INDEXING_ONLY = 64
IFILTER_INIT_SEARCH_LINKS = 128
IFILTER_INIT_FILTER_OWNED_VALUE_OK = 512

IFILTER_FLAGS_OLE_PROPERTIES = 1

CHUNK_TEXT = 0x1
CHUNK_VALUE = 0x2
CHUNK_NO_BREAK = 0
CHUNK_EOW = 1
CHUNK_EOS = 2
CHUNK_EOP = 3
CHUNK_EOC = 4

NOT_AN_ERROR = 0x00080000
FILTER_E_END_OF_CHUNKS = -2147215616
コード例 #14
0
class Documents(DispatchBaseClass):
	"""Documents collection Object"""
	CLSID = IID('{70109AA2-63C1-11D2-B78B-0060B0EC020B}')
	coclass_clsid = None

	# Result is of type Document
	def Add(self, DocumentType=defaultNamedNotOptArg, TemplateFileName=u'', CreateVisible=True):
		"""Creates a new Document of the specified type. Optionally, a template file can be specified instead"""
		return self._ApplyTypes_(50332417, 1, (9, 32), ((3, 1), (8, 49), (11, 49)), u'Add', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}',DocumentType
			, TemplateFileName, CreateVisible)

	def CloseAll(self, UnreferencedOnly=False):
		"""Closes all the documents in the current Inventor session.  Changes are not saved to any of the documents. In other words, if there are dirty documents in the collection, changes made to them will be lost"""
		return self._oleobj_.InvokeTypes(50332420, LCID, 1, (24, 0), ((11, 49),),UnreferencedOnly
			)

	# Result is of type Document
	# The method Item is actually a property, but must be used as a method to correctly pass the arguments
	def Item(self, Index=defaultNamedNotOptArg):
		"""Allows integer-indexed access to items in the collection"""
		ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),),Index
			)
		if ret is not None:
			ret = Dispatch(ret, u'Item', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
		return ret

	# Result is of type Document
	# The method ItemByName is actually a property, but must be used as a method to correctly pass the arguments
	def ItemByName(self, FullDocumentName=defaultNamedNotOptArg):
		"""Allows string-indexed access to items in the collection. Usually found when this ability has been added to an pre-existing collection"""
		ret = self._oleobj_.InvokeTypes(2130706471, LCID, 2, (9, 0), ((8, 1),),FullDocumentName
			)
		if ret is not None:
			ret = Dispatch(ret, u'ItemByName', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
		return ret

	# Result is of type Document
	def Open(self, FullDocumentName=defaultNamedNotOptArg, OpenVisible=True):
		"""Opens a Document of the specified file-name"""
		ret = self._oleobj_.InvokeTypes(50332418, LCID, 1, (9, 0), ((8, 1), (11, 49)),FullDocumentName
			, OpenVisible)
		if ret is not None:
			ret = Dispatch(ret, u'Open', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
		return ret

	# Result is of type Document
	def OpenWithOptions(self, FullDocumentName=defaultNamedNotOptArg, Options=defaultNamedNotOptArg, OpenVisible=True):
		"""Opens a Document of the specified file-name with the specified set of options"""
		ret = self._oleobj_.InvokeTypes(50332419, LCID, 1, (9, 0), ((8, 1), (9, 1), (11, 49)),FullDocumentName
			, Options, OpenVisible)
		if ret is not None:
			ret = Dispatch(ret, u'OpenWithOptions', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
		return ret

	_prop_map_get_ = {
		"Count": (2130706438, 2, (3, 0), (), "Count", None),
		"LoadedCount": (50332422, 2, (3, 0), (), "LoadedCount", None),
		"Type": (2130706435, 2, (3, 0), (), "Type", None),
		# Method 'VisibleDocuments' returns object of type 'DocumentsEnumerator'
		"VisibleDocuments": (50332421, 2, (9, 0), (), "VisibleDocuments", '{ACE59077-7778-11D4-8DD8-0010B541CAA8}'),
	}
	_prop_map_put_ = {
	}
	# Default method for this class is 'Item'
	def __call__(self, Index=defaultNamedNotOptArg):
		"""Allows integer-indexed access to items in the collection"""
		ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),),Index
			)
		if ret is not None:
			ret = Dispatch(ret, '__call__', '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
		return ret

	# str(ob) and int(ob) will use __call__
	def __unicode__(self, *args):
		try:
			return unicode(self.__call__(*args))
		except pythoncom.com_error:
			return repr(self)
	def __str__(self, *args):
		return str(self.__unicode__(*args))
	def __int__(self, *args):
		return int(self.__call__(*args))
	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, '{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
	def _NewEnum(self):
		"Create an enumerator from this object"
		return win32com.client.util.WrapEnum(self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),()),'{70109AA1-63C1-11D2-B78B-0060B0EC020B}')
	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)
	#This class has Count() property - allow len(ob) to provide this
	def __len__(self):
		return self._ApplyTypes_(*(2130706438, 2, (3, 0), (), "Count", None))
	#This class has a __len__ - this is needed so 'if object:' always returns TRUE.
	def __nonzero__(self):
		return True
コード例 #15
0
class IUpdateSession3(DispatchBaseClass):
	'IUpdateSession3 Interface'
	CLSID = IID('{918EFD1E-B5D8-4C90-8540-AEB9BDC56F9D}')
	coclass_clsid = IID('{4CB43D7F-7EEE-4906-8698-60DA1C38F2FE}')

	# Result is of type IUpdateDownloader
	def CreateUpdateDownloader(self):
		'Creates an UpdateDownloader within the UpdateSession.'
		ret = self._oleobj_.InvokeTypes(1610743813, LCID, 1, (9, 0), (),)
		if ret is not None:
			ret = Dispatch(ret, u'CreateUpdateDownloader', '{68F1C6F9-7ECC-4666-A464-247FE12496C3}')
		return ret

	# Result is of type IUpdateInstaller
	def CreateUpdateInstaller(self):
		'Creates an UpdateInstaller within the UpdateSession.'
		ret = self._oleobj_.InvokeTypes(1610743814, LCID, 1, (9, 0), (),)
		if ret is not None:
			ret = Dispatch(ret, u'CreateUpdateInstaller', '{7B929C68-CCDC-4226-96B1-8724600B54C2}')
		return ret

	# Result is of type IUpdateSearcher
	def CreateUpdateSearcher(self):
		'Creates an UpdateSearcher within the UpdateSession.'
		ret = self._oleobj_.InvokeTypes(1610743812, LCID, 1, (9, 0), (),)
		if ret is not None:
			ret = Dispatch(ret, u'CreateUpdateSearcher', '{8F45ABF1-F9AE-4B95-A933-F0F66E5056EA}')
		return ret

	# Result is of type IUpdateServiceManager2
	def CreateUpdateServiceManager(self):
		'Creates an UpdateServiceManager within the UpdateSession.'
		ret = self._oleobj_.InvokeTypes(1610874881, LCID, 1, (9, 0), (),)
		if ret is not None:
			ret = Dispatch(ret, u'CreateUpdateServiceManager', '{0BB8531D-7E8D-424F-986C-A0B8F60A3E7B}')
		return ret

	# Result is of type IUpdateHistoryEntryCollection
	def QueryHistory(self, criteria=defaultNamedNotOptArg, startIndex=defaultNamedNotOptArg, Count=defaultNamedNotOptArg):
		'Synchronously queries the target computer for the history of update events given a query criteria.'
		ret = self._oleobj_.InvokeTypes(1610874882, LCID, 1, (9, 0), ((8, 1), (3, 1), (3, 1)),criteria
			, startIndex, Count)
		if ret is not None:
			ret = Dispatch(ret, u'QueryHistory', '{A7F04F3C-A290-435B-AADF-A116C3357A5C}')
		return ret

	_prop_map_get_ = {
		"ClientApplicationID": (1610743809, 2, (8, 0), (), "ClientApplicationID", None),
		"ReadOnly": (1610743810, 2, (11, 0), (), "ReadOnly", None),
		"UserLocale": (1610809345, 2, (19, 0), (), "UserLocale", None),
		# Method 'WebProxy' returns object of type 'IWebProxy'
		"WebProxy": (1610743811, 2, (9, 0), (), "WebProxy", '{174C81FE-AECD-4DAE-B8A0-2C6318DD86A8}'),
	}
	_prop_map_put_ = {
		"ClientApplicationID": ((1610743809, LCID, 4, 0),()),
		"UserLocale": ((1610809345, LCID, 4, 0),()),
		"WebProxy": ((1610743811, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)
コード例 #16
0
class IUpdateCollection(DispatchBaseClass):
	'IUpdateCollection Interface'
	CLSID = IID('{07F7438C-7709-4CA5-B518-91279288134E}')
	coclass_clsid = IID('{13639463-00DB-4646-803D-528026140D88}')

	def Add(self, value=defaultNamedNotOptArg):
		'Adds an item to the collection.'
		return self._oleobj_.InvokeTypes(1610743811, LCID, 1, (3, 0), ((9, 1),),value
			)

	def Clear(self):
		'Removes all elements from the collection.'
		return self._oleobj_.InvokeTypes(1610743812, LCID, 1, (24, 0), (),)

	# Result is of type IUpdateCollection
	def Copy(self):
		'Creates a shallow read-writable copy of the collection.'
		ret = self._oleobj_.InvokeTypes(1610743813, LCID, 1, (9, 0), (),)
		if ret is not None:
			ret = Dispatch(ret, u'Copy', '{07F7438C-7709-4CA5-B518-91279288134E}')
		return ret

	def Insert(self, index=defaultNamedNotOptArg, value=defaultNamedNotOptArg):
		'Inserts an item to the collection at the specified position.'
		return self._oleobj_.InvokeTypes(1610743814, LCID, 1, (24, 0), ((3, 1), (9, 1)),index
			, value)

	# Result is of type IUpdate
	# The method Item is actually a property, but must be used as a method to correctly pass the arguments
	def Item(self, index=defaultNamedNotOptArg):
		'Gets an element in the collection.'
		ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),),index
			)
		if ret is not None:
			ret = Dispatch(ret, u'Item', '{6A92B07A-D821-4682-B423-5C805022CC4D}')
		return ret

	def RemoveAt(self, index=defaultNamedNotOptArg):
		'Removes the item at the specified index from the collection.'
		return self._oleobj_.InvokeTypes(1610743815, LCID, 1, (24, 0), ((3, 1),),index
			)

	# The method SetItem is actually a property, but must be used as a method to correctly pass the arguments
	def SetItem(self, index=defaultNamedNotOptArg, arg1=defaultUnnamedArg):
		'Gets an element in the collection.'
		return self._oleobj_.InvokeTypes(0, LCID, 4, (24, 0), ((3, 1), (9, 1)),index
			, arg1)

	_prop_map_get_ = {
		"Count": (1610743809, 2, (3, 0), (), "Count", None),
		"ReadOnly": (1610743810, 2, (11, 0), (), "ReadOnly", None),
	}
	_prop_map_put_ = {
	}
	# Default method for this class is 'Item'
	def __call__(self, index=defaultNamedNotOptArg):
		'Gets an element in the collection.'
		ret = self._oleobj_.InvokeTypes(0, LCID, 2, (9, 0), ((3, 1),),index
			)
		if ret is not None:
			ret = Dispatch(ret, '__call__', '{6A92B07A-D821-4682-B423-5C805022CC4D}')
		return ret

	def __unicode__(self, *args):
		try:
			return unicode(self.__call__(*args))
		except pythoncom.com_error:
			return repr(self)
	def __str__(self, *args):
		return str(self.__unicode__(*args))
	def __int__(self, *args):
		return int(self.__call__(*args))
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,2,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, '{6A92B07A-D821-4682-B423-5C805022CC4D}')
	#This class has Count() property - allow len(ob) to provide this
	def __len__(self):
		return self._ApplyTypes_(*(1610743809, 2, (3, 0), (), "Count", None))
	#This class has a __len__ - this is needed so 'if object:' always returns TRUE.
	def __nonzero__(self):
		return True