Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify styles for __all__ and __known_symbols__ #421

Merged
merged 1 commit into from
Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions comtypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,28 +1150,28 @@ class CoClass(COMObject):


__known_symbols__ = [
'BIND_OPTS', 'tagBIND_OPTS', 'BINDOPTS2', 'tagBIND_OPTS2', 'BSTR',
'_check_version', 'CLSCTX', 'tagCLSCTX', 'CLSCTX_ALL',
'CLSCTX_DISABLE_AAA', 'CLSCTX_ENABLE_AAA', 'CLSCTX_ENABLE_CODE_DOWNLOAD',
'CLSCTX_FROM_DEFAULT_CONTEXT', 'CLSCTX_INPROC', 'CLSCTX_INPROC_HANDLER',
'CLSCTX_INPROC_HANDLER16', 'CLSCTX_INPROC_SERVER',
'CLSCTX_INPROC_SERVER16', 'CLSCTX_LOCAL_SERVER', 'CLSCTX_NO_CODE_DOWNLOAD',
'CLSCTX_NO_CUSTOM_MARSHAL', 'CLSCTX_NO_FAILURE_LOG',
'CLSCTX_REMOTE_SERVER', 'CLSCTX_RESERVED1', 'CLSCTX_RESERVED2',
'CLSCTX_RESERVED3', 'CLSCTX_RESERVED4', 'CLSCTX_RESERVED5',
'CLSCTX_SERVER', '_COAUTHIDENTITY', 'COAUTHIDENTITY', '_COAUTHINFO',
'COAUTHINFO', 'CoClass', 'CoCreateInstance', 'CoCreateInstanceEx',
'_CoGetClassObject', 'CoGetClassObject', 'CoGetObject',
'COINIT_APARTMENTTHREADED', 'COINIT_DISABLE_OLE1DDE',
'COINIT_MULTITHREADED', 'COINIT_SPEED_OVER_MEMORY', 'CoInitialize',
'CoInitializeEx', 'COMError', 'COMMETHOD', 'COMObject', '_COSERVERINFO',
'COSERVERINFO', 'CoUninitialize', 'dispid', 'DISPMETHOD', 'DISPPROPERTY',
'DWORD', 'EOAC_NONE', 'GetActiveObject', '_GUID', 'GUID', 'helpstring',
'IID', 'IPersist', 'IServiceProvider', 'IUnknown', 'MULTI_QI',
'ReturnHRESULT', 'RPC_C_AUTHN_LEVEL_CONNECT', 'RPC_C_AUTHN_WINNT',
'RPC_C_AUTHZ_NONE', 'RPC_C_IMP_LEVEL_IMPERSONATE',
'_SEC_WINNT_AUTH_IDENTITY', 'SEC_WINNT_AUTH_IDENTITY',
'SEC_WINNT_AUTH_IDENTITY_UNICODE', '_SOLE_AUTHENTICATION_INFO',
'SOLE_AUTHENTICATION_INFO', '_SOLE_AUTHENTICATION_LIST',
'SOLE_AUTHENTICATION_LIST', 'STDMETHOD', 'wireHWND',
"BIND_OPTS", "tagBIND_OPTS", "BINDOPTS2", "tagBIND_OPTS2", "BSTR",
"_check_version", "CLSCTX", "tagCLSCTX", "CLSCTX_ALL",
"CLSCTX_DISABLE_AAA", "CLSCTX_ENABLE_AAA", "CLSCTX_ENABLE_CODE_DOWNLOAD",
"CLSCTX_FROM_DEFAULT_CONTEXT", "CLSCTX_INPROC", "CLSCTX_INPROC_HANDLER",
"CLSCTX_INPROC_HANDLER16", "CLSCTX_INPROC_SERVER",
"CLSCTX_INPROC_SERVER16", "CLSCTX_LOCAL_SERVER", "CLSCTX_NO_CODE_DOWNLOAD",
"CLSCTX_NO_CUSTOM_MARSHAL", "CLSCTX_NO_FAILURE_LOG",
"CLSCTX_REMOTE_SERVER", "CLSCTX_RESERVED1", "CLSCTX_RESERVED2",
"CLSCTX_RESERVED3", "CLSCTX_RESERVED4", "CLSCTX_RESERVED5",
"CLSCTX_SERVER", "_COAUTHIDENTITY", "COAUTHIDENTITY", "_COAUTHINFO",
"COAUTHINFO", "CoClass", "CoCreateInstance", "CoCreateInstanceEx",
"_CoGetClassObject", "CoGetClassObject", "CoGetObject",
"COINIT_APARTMENTTHREADED", "COINIT_DISABLE_OLE1DDE",
"COINIT_MULTITHREADED", "COINIT_SPEED_OVER_MEMORY", "CoInitialize",
"CoInitializeEx", "COMError", "COMMETHOD", "COMObject", "_COSERVERINFO",
"COSERVERINFO", "CoUninitialize", "dispid", "DISPMETHOD", "DISPPROPERTY",
"DWORD", "EOAC_NONE", "GetActiveObject", "_GUID", "GUID", "helpstring",
"IID", "IPersist", "IServiceProvider", "IUnknown", "MULTI_QI",
"ReturnHRESULT", "RPC_C_AUTHN_LEVEL_CONNECT", "RPC_C_AUTHN_WINNT",
"RPC_C_AUTHZ_NONE", "RPC_C_IMP_LEVEL_IMPERSONATE",
"_SEC_WINNT_AUTH_IDENTITY", "SEC_WINNT_AUTH_IDENTITY",
"SEC_WINNT_AUTH_IDENTITY_UNICODE", "_SOLE_AUTHENTICATION_INFO",
"SOLE_AUTHENTICATION_INFO", "_SOLE_AUTHENTICATION_LIST",
"SOLE_AUTHENTICATION_LIST", "STDMETHOD", "wireHWND",
]
1 change: 1 addition & 0 deletions comtypes/_comobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,4 +777,5 @@ def IDispatch_Invoke(self, this, dispIdMember, riid, lcid, wFlags,
def IPersist_GetClassID(self):
return self._reg_clsid_


__all__ = ["COMObject"]
42 changes: 21 additions & 21 deletions comtypes/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,25 +962,25 @@ def Invoke(self, dispid, *args, **kw):


__known_symbols__ = [
'CURRENCY', 'CY', 'tagCY', 'DECIMAL', 'tagDEC', 'DISPATCH_METHOD',
'DISPATCH_PROPERTYGET', 'DISPATCH_PROPERTYPUT', 'DISPATCH_PROPERTYPUTREF',
'DISPID', 'DISPID_COLLECT', 'DISPID_CONSTRUCTOR', 'DISPID_DESTRUCTOR',
'DISPID_EVALUATE', 'DISPID_NEWENUM', 'DISPID_PROPERTYPUT',
'DISPID_UNKNOWN', 'DISPID_VALUE', 'DISPPARAMS', 'tagDISPPARAMS',
'EXCEPINFO', 'tagEXCEPINFO', 'IDispatch', 'IEnumVARIANT', 'IID_NULL',
'INVOKE_FUNC', 'INVOKE_PROPERTYGET', 'INVOKE_PROPERTYPUT',
'INVOKE_PROPERTYPUTREF', 'INVOKEKIND', 'tagINVOKEKIND', '_midlSAFEARRAY',
'SCODE', '_SysAllocStringLen', 'VARENUM', 'VARIANT', 'tagVARIANT',
'VARIANTARG', '_VariantChangeType', '_VariantClear', '_VariantCopy',
'_VariantCopyInd', 'VARTYPE', 'VT_ARRAY', 'VT_BLOB', 'VT_BLOB_OBJECT',
'VT_BOOL', 'VT_BSTR', 'VT_BSTR_BLOB', 'VT_BYREF', 'VT_CARRAY', 'VT_CF',
'VT_CLSID', 'VT_CY', 'VT_DATE', 'VT_DECIMAL', 'VT_DISPATCH', 'VT_EMPTY',
'VT_ERROR', 'VT_FILETIME', 'VT_HRESULT', 'VT_I1', 'VT_I2', 'VT_I4',
'VT_I8', 'VT_ILLEGAL', 'VT_ILLEGALMASKED', 'VT_INT', 'VT_INT_PTR',
'VT_LPSTR', 'VT_LPWSTR', 'VT_NULL', 'VT_PTR', 'VT_R4', 'VT_R8',
'VT_RECORD', 'VT_RESERVED', 'VT_SAFEARRAY', 'VT_STORAGE',
'VT_STORED_OBJECT', 'VT_STREAM', 'VT_STREAMED_OBJECT', 'VT_TYPEMASK',
'VT_UI1', 'VT_UI2', 'VT_UI4', 'VT_UI8', 'VT_UINT', 'VT_UINT_PTR',
'VT_UNKNOWN', 'VT_USERDEFINED', 'VT_VARIANT', 'VT_VECTOR',
'VT_VERSIONED_STREAM', 'VT_VOID',
"CURRENCY", "CY", "tagCY", "DECIMAL", "tagDEC", "DISPATCH_METHOD",
"DISPATCH_PROPERTYGET", "DISPATCH_PROPERTYPUT", "DISPATCH_PROPERTYPUTREF",
"DISPID", "DISPID_COLLECT", "DISPID_CONSTRUCTOR", "DISPID_DESTRUCTOR",
"DISPID_EVALUATE", "DISPID_NEWENUM", "DISPID_PROPERTYPUT",
"DISPID_UNKNOWN", "DISPID_VALUE", "DISPPARAMS", "tagDISPPARAMS",
"EXCEPINFO", "tagEXCEPINFO", "IDispatch", "IEnumVARIANT", "IID_NULL",
"INVOKE_FUNC", "INVOKE_PROPERTYGET", "INVOKE_PROPERTYPUT",
"INVOKE_PROPERTYPUTREF", "INVOKEKIND", "tagINVOKEKIND", "_midlSAFEARRAY",
"SCODE", "_SysAllocStringLen", "VARENUM", "VARIANT", "tagVARIANT",
"VARIANTARG", "_VariantChangeType", "_VariantClear", "_VariantCopy",
"_VariantCopyInd", "VARTYPE", "VT_ARRAY", "VT_BLOB", "VT_BLOB_OBJECT",
"VT_BOOL", "VT_BSTR", "VT_BSTR_BLOB", "VT_BYREF", "VT_CARRAY", "VT_CF",
"VT_CLSID", "VT_CY", "VT_DATE", "VT_DECIMAL", "VT_DISPATCH", "VT_EMPTY",
"VT_ERROR", "VT_FILETIME", "VT_HRESULT", "VT_I1", "VT_I2", "VT_I4",
"VT_I8", "VT_ILLEGAL", "VT_ILLEGALMASKED", "VT_INT", "VT_INT_PTR",
"VT_LPSTR", "VT_LPWSTR", "VT_NULL", "VT_PTR", "VT_R4", "VT_R8",
"VT_RECORD", "VT_RESERVED", "VT_SAFEARRAY", "VT_STORAGE",
"VT_STORED_OBJECT", "VT_STREAM", "VT_STREAMED_OBJECT", "VT_TYPEMASK",
"VT_UI1", "VT_UI2", "VT_UI4", "VT_UI8", "VT_UINT", "VT_UINT_PTR",
"VT_UNKNOWN", "VT_USERDEFINED", "VT_VARIANT", "VT_VECTOR",
"VT_VERSIONED_STREAM", "VT_VOID",
]
1 change: 1 addition & 0 deletions comtypes/client/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,5 @@ def next(self):
def __iter__(self):
return self


__all__ = ["Dispatch"]
8 changes: 5 additions & 3 deletions comtypes/errorinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def ReportException(hresult, iid, clsid=None, helpfile=None, helpcontext=None,
clsid=clsid, helpfile=helpfile, helpcontext=helpcontext,
hresult=hresult)

__all__ = ["ICreateErrorInfo", "IErrorInfo", "ISupportErrorInfo",
"ReportError", "ReportException",
"SetErrorInfo", "GetErrorInfo", "CreateErrorInfo"]

__all__ = [
"ICreateErrorInfo", "IErrorInfo", "ISupportErrorInfo", "ReportError",
"ReportException", "SetErrorInfo", "GetErrorInfo", "CreateErrorInfo",
]
6 changes: 5 additions & 1 deletion comtypes/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def RevokeInterfaceFromGlobal(self, cookie):
RegisterInterfaceInGlobal = git.RegisterInterfaceInGlobal
GetInterfaceFromGlobal = git.GetInterfaceFromGlobal

__all__ = ["RegisterInterfaceInGlobal", "RevokeInterfaceFromGlobal", "GetInterfaceFromGlobal"]
__all__ = [
"RegisterInterfaceInGlobal", "RevokeInterfaceFromGlobal",
"GetInterfaceFromGlobal",
]


if __name__ == "__main__":
from comtypes.typeinfo import CreateTypeLib, ICreateTypeLib
Expand Down
20 changes: 10 additions & 10 deletions comtypes/persist.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ def Write(self, this, name, var):


__known_symbols__ = [
'CLIPFORMAT', 'DictPropertyBag', 'IErrorLog', 'IPersistFile',
'IPersistPropertyBag', 'IPersistPropertyBag2', 'IPropertyBag',
'IPropertyBag2', 'tagPROPBAG2', 'PROPBAG2_TYPE_DATA',
'PROPBAG2_TYPE_MONIKER', 'PROPBAG2_TYPE_OBJECT', 'PROPBAG2_TYPE_STORAGE',
'PROPBAG2_TYPE_STREAM', 'PROPBAG2_TYPE_UNDEFINED', 'PROPBAG2_TYPE_URL',
'STGM_CONVERT', 'STGM_CREATE', 'STGM_DELETEONRELEASE', 'STGM_DIRECT',
'STGM_DIRECT_SWMR', 'STGM_FAILIFTHERE', 'STGM_NOSCRATCH',
'STGM_NOSNAPSHOT', 'STGM_PRIORITY', 'STGM_READ', 'STGM_READWRITE',
'STGM_SHARE_DENY_NONE', 'STGM_SHARE_DENY_READ', 'STGM_SHARE_DENY_WRITE',
'STGM_SHARE_EXCLUSIVE', 'STGM_SIMPLE', 'STGM_TRANSACTED', 'STGM_WRITE',
"CLIPFORMAT", "DictPropertyBag", "IErrorLog", "IPersistFile",
"IPersistPropertyBag", "IPersistPropertyBag2", "IPropertyBag",
"IPropertyBag2", "tagPROPBAG2", "PROPBAG2_TYPE_DATA",
"PROPBAG2_TYPE_MONIKER", "PROPBAG2_TYPE_OBJECT", "PROPBAG2_TYPE_STORAGE",
"PROPBAG2_TYPE_STREAM", "PROPBAG2_TYPE_UNDEFINED", "PROPBAG2_TYPE_URL",
"STGM_CONVERT", "STGM_CREATE", "STGM_DELETEONRELEASE", "STGM_DIRECT",
"STGM_DIRECT_SWMR", "STGM_FAILIFTHERE", "STGM_NOSCRATCH",
"STGM_NOSNAPSHOT", "STGM_PRIORITY", "STGM_READ", "STGM_READWRITE",
"STGM_SHARE_DENY_NONE", "STGM_SHARE_DENY_READ", "STGM_SHARE_DENY_WRITE",
"STGM_SHARE_EXCLUSIVE", "STGM_SIMPLE", "STGM_TRANSACTED", "STGM_WRITE",
]
1 change: 1 addition & 0 deletions comtypes/server/connectionpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

__all__ = ["ConnectableObjectMixin"]


class ConnectionPointImpl(COMObject):
"""This object implements a connectionpoint"""
_com_interfaces_ = [IConnectionPoint]
Expand Down
90 changes: 45 additions & 45 deletions comtypes/typeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,49 +1020,49 @@ class tagSAFEARRAYBOUND(Structure):


__known_symbols__ = [
'tagARRAYDESC', 'BINDPTR', 'tagBINDPTR', 'CALLCONV', 'tagCALLCONV',
'CC_CDECL', 'CC_FASTCALL', 'CC_FPFASTCALL', 'CC_MACPASCAL', 'CC_MAX',
'CC_MPWCDECL', 'CC_MPWPASCAL', 'CC_MSCPASCAL', 'CC_PASCAL', 'CC_STDCALL',
'CC_SYSCALL', 'CreateTypeLib', 'DESCKIND', 'tagDESCKIND',
'DESCKIND_FUNCDESC', 'DESCKIND_IMPLICITAPPOBJ', 'DESCKIND_MAX',
'DESCKIND_NONE', 'DESCKIND_TYPECOMP', 'DESCKIND_VARDESC', 'ELEMDESC',
'tagELEMDESC', 'FUNC_DISPATCH', 'FUNC_NONVIRTUAL', 'FUNC_PUREVIRTUAL',
'FUNC_STATIC', 'FUNC_VIRTUAL', 'FUNCDESC', 'tagFUNCDESC',
'FUNCFLAG_FBINDABLE', 'FUNCFLAG_FDEFAULTBIND', 'FUNCFLAG_FDEFAULTCOLLELEM',
'FUNCFLAG_FDISPLAYBIND', 'FUNCFLAG_FHIDDEN', 'FUNCFLAG_FIMMEDIATEBIND',
'FUNCFLAG_FNONBROWSABLE', 'FUNCFLAG_FREPLACEABLE', 'FUNCFLAG_FREQUESTEDIT',
'FUNCFLAG_FRESTRICTED', 'FUNCFLAG_FSOURCE', 'FUNCFLAG_FUIDEFAULT',
'FUNCFLAG_FUSESGETLASTERROR', 'FUNCFLAGS', 'tagFUNCFLAGS', 'FUNCKIND',
'tagFUNCKIND', 'GetRecordInfoFromGuids', 'GetRecordInfoFromTypeInfo',
'HREFTYPE', 'ICreateTypeInfo', 'ICreateTypeLib', 'ICreateTypeLib2',
'IDLDESC', 'tagIDLDESC', 'IMPLTYPEFLAG_FDEFAULT',
'IMPLTYPEFLAG_FDEFAULTVTABLE', 'IMPLTYPEFLAG_FRESTRICTED',
'IMPLTYPEFLAG_FSOURCE', 'IProvideClassInfo', 'IProvideClassInfo2',
'IRecordInfo', 'ITypeComp', 'ITypeInfo', 'ITypeLib', 'LoadRegTypeLib',
'LoadTypeLib', 'LoadTypeLibEx', 'LPPARAMDESCEX', 'MEMBERID',
'N10tagVARDESC5DOLLAR_205E', 'N11tagELEMDESC5DOLLAR_204E',
'N11tagTYPEDESC5DOLLAR_203E', 'OLECHAR', 'PARAMDESC', 'tagPARAMDESC',
'tagPARAMDESCEX', 'PARAMFLAG_FHASCUSTDATA', 'PARAMFLAG_FHASDEFAULT',
'PARAMFLAG_FIN', 'PARAMFLAG_FLCID', 'PARAMFLAG_FOPT', 'PARAMFLAG_FOUT',
'PARAMFLAG_FRETVAL', 'PARAMFLAG_NONE', 'PVOID', 'QueryPathOfRegTypeLib',
'RegisterTypeLib', 'REGKIND', 'tagREGKIND', 'REGKIND_DEFAULT',
'REGKIND_NONE', 'REGKIND_REGISTER', 'SAFEARRAYBOUND', 'tagSAFEARRAYBOUND',
'SYS_MAC', 'SYS_WIN16', 'SYS_WIN32', 'SYS_WIN64', 'SYSKIND', 'tagSYSKIND',
'TKIND_ALIAS', 'TKIND_COCLASS', 'TKIND_DISPATCH', 'TKIND_ENUM',
'TKIND_INTERFACE', 'TKIND_MAX', 'TKIND_MODULE', 'TKIND_RECORD',
'TKIND_UNION', 'tagTLIBATTR', 'TLIBATTR', 'tagTYPEATTR', 'TYPEATTR',
'tagTYPEDESC', 'TYPEDESC', 'TYPEFLAG_FAGGREGATABLE', 'TYPEFLAG_FAPPOBJECT',
'TYPEFLAG_FCANCREATE', 'TYPEFLAG_FCONTROL', 'TYPEFLAG_FDISPATCHABLE',
'TYPEFLAG_FDUAL', 'TYPEFLAG_FHIDDEN', 'TYPEFLAG_FLICENSED',
'TYPEFLAG_FNONEXTENSIBLE', 'TYPEFLAG_FOLEAUTOMATION',
'TYPEFLAG_FPREDECLID', 'TYPEFLAG_FPROXY', 'TYPEFLAG_FREPLACEABLE',
'TYPEFLAG_FRESTRICTED', 'TYPEFLAG_FREVERSEBIND', 'TYPEFLAGS',
'tagTYPEFLAGS', 'TYPEKIND', 'tagTYPEKIND', 'ULONG_PTR',
'UnRegisterTypeLib', 'VAR_CONST', 'VAR_DISPATCH', 'VAR_PERINSTANCE',
'VAR_STATIC', 'VARDESC', 'tagVARDESC', 'VARFLAG_FBINDABLE',
'VARFLAG_FDEFAULTBIND', 'VARFLAG_FDEFAULTCOLLELEM', 'VARFLAG_FDISPLAYBIND',
'VARFLAG_FHIDDEN', 'VARFLAG_FIMMEDIATEBIND', 'VARFLAG_FNONBROWSABLE',
'VARFLAG_FREADONLY', 'VARFLAG_FREPLACEABLE', 'VARFLAG_FREQUESTEDIT',
'VARFLAG_FRESTRICTED', 'VARFLAG_FSOURCE', 'VARFLAG_FUIDEFAULT',
'VARFLAGS', 'tagVARFLAGS', 'VARKIND', 'tagVARKIND',
"tagARRAYDESC", "BINDPTR", "tagBINDPTR", "CALLCONV", "tagCALLCONV",
"CC_CDECL", "CC_FASTCALL", "CC_FPFASTCALL", "CC_MACPASCAL", "CC_MAX",
"CC_MPWCDECL", "CC_MPWPASCAL", "CC_MSCPASCAL", "CC_PASCAL", "CC_STDCALL",
"CC_SYSCALL", "CreateTypeLib", "DESCKIND", "tagDESCKIND",
"DESCKIND_FUNCDESC", "DESCKIND_IMPLICITAPPOBJ", "DESCKIND_MAX",
"DESCKIND_NONE", "DESCKIND_TYPECOMP", "DESCKIND_VARDESC", "ELEMDESC",
"tagELEMDESC", "FUNC_DISPATCH", "FUNC_NONVIRTUAL", "FUNC_PUREVIRTUAL",
"FUNC_STATIC", "FUNC_VIRTUAL", "FUNCDESC", "tagFUNCDESC",
"FUNCFLAG_FBINDABLE", "FUNCFLAG_FDEFAULTBIND", "FUNCFLAG_FDEFAULTCOLLELEM",
"FUNCFLAG_FDISPLAYBIND", "FUNCFLAG_FHIDDEN", "FUNCFLAG_FIMMEDIATEBIND",
"FUNCFLAG_FNONBROWSABLE", "FUNCFLAG_FREPLACEABLE", "FUNCFLAG_FREQUESTEDIT",
"FUNCFLAG_FRESTRICTED", "FUNCFLAG_FSOURCE", "FUNCFLAG_FUIDEFAULT",
"FUNCFLAG_FUSESGETLASTERROR", "FUNCFLAGS", "tagFUNCFLAGS", "FUNCKIND",
"tagFUNCKIND", "GetRecordInfoFromGuids", "GetRecordInfoFromTypeInfo",
"HREFTYPE", "ICreateTypeInfo", "ICreateTypeLib", "ICreateTypeLib2",
"IDLDESC", "tagIDLDESC", "IMPLTYPEFLAG_FDEFAULT",
"IMPLTYPEFLAG_FDEFAULTVTABLE", "IMPLTYPEFLAG_FRESTRICTED",
"IMPLTYPEFLAG_FSOURCE", "IProvideClassInfo", "IProvideClassInfo2",
"IRecordInfo", "ITypeComp", "ITypeInfo", "ITypeLib", "LoadRegTypeLib",
"LoadTypeLib", "LoadTypeLibEx", "LPPARAMDESCEX", "MEMBERID",
"N10tagVARDESC5DOLLAR_205E", "N11tagELEMDESC5DOLLAR_204E",
"N11tagTYPEDESC5DOLLAR_203E", "OLECHAR", "PARAMDESC", "tagPARAMDESC",
"tagPARAMDESCEX", "PARAMFLAG_FHASCUSTDATA", "PARAMFLAG_FHASDEFAULT",
"PARAMFLAG_FIN", "PARAMFLAG_FLCID", "PARAMFLAG_FOPT", "PARAMFLAG_FOUT",
"PARAMFLAG_FRETVAL", "PARAMFLAG_NONE", "PVOID", "QueryPathOfRegTypeLib",
"RegisterTypeLib", "REGKIND", "tagREGKIND", "REGKIND_DEFAULT",
"REGKIND_NONE", "REGKIND_REGISTER", "SAFEARRAYBOUND", "tagSAFEARRAYBOUND",
"SYS_MAC", "SYS_WIN16", "SYS_WIN32", "SYS_WIN64", "SYSKIND", "tagSYSKIND",
"TKIND_ALIAS", "TKIND_COCLASS", "TKIND_DISPATCH", "TKIND_ENUM",
"TKIND_INTERFACE", "TKIND_MAX", "TKIND_MODULE", "TKIND_RECORD",
"TKIND_UNION", "tagTLIBATTR", "TLIBATTR", "tagTYPEATTR", "TYPEATTR",
"tagTYPEDESC", "TYPEDESC", "TYPEFLAG_FAGGREGATABLE", "TYPEFLAG_FAPPOBJECT",
"TYPEFLAG_FCANCREATE", "TYPEFLAG_FCONTROL", "TYPEFLAG_FDISPATCHABLE",
"TYPEFLAG_FDUAL", "TYPEFLAG_FHIDDEN", "TYPEFLAG_FLICENSED",
"TYPEFLAG_FNONEXTENSIBLE", "TYPEFLAG_FOLEAUTOMATION",
"TYPEFLAG_FPREDECLID", "TYPEFLAG_FPROXY", "TYPEFLAG_FREPLACEABLE",
"TYPEFLAG_FRESTRICTED", "TYPEFLAG_FREVERSEBIND", "TYPEFLAGS",
"tagTYPEFLAGS", "TYPEKIND", "tagTYPEKIND", "ULONG_PTR",
"UnRegisterTypeLib", "VAR_CONST", "VAR_DISPATCH", "VAR_PERINSTANCE",
"VAR_STATIC", "VARDESC", "tagVARDESC", "VARFLAG_FBINDABLE",
"VARFLAG_FDEFAULTBIND", "VARFLAG_FDEFAULTCOLLELEM", "VARFLAG_FDISPLAYBIND",
"VARFLAG_FHIDDEN", "VARFLAG_FIMMEDIATEBIND", "VARFLAG_FNONBROWSABLE",
"VARFLAG_FREADONLY", "VARFLAG_FREPLACEABLE", "VARFLAG_FREQUESTEDIT",
"VARFLAG_FRESTRICTED", "VARFLAG_FSOURCE", "VARFLAG_FUIDEFAULT",
"VARFLAGS", "tagVARFLAGS", "VARKIND", "tagVARKIND",
]
1 change: 1 addition & 0 deletions comtypes/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ def cast_field(struct, fieldname, fieldtype, offset=0,
return cast(_byref_at(struct, fieldoffset),
_POINTER(fieldtype))[0]


__all__ = ["byref_at", "cast_field"]