Skip to content

Commit

Permalink
[automation.py] Add restype for OleDLL function
Browse files Browse the repository at this point in the history
To be consistent with how we declare ctypes function
  • Loading branch information
moi15moi committed Jan 25, 2025
1 parent b63bb5a commit 5cfc712
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comtypes/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,19 @@ def ChangeType(self, typecode):

_VariantChangeType = _oleaut32.VariantChangeType
_VariantChangeType.argtypes = (POINTER(VARIANT), POINTER(VARIANT), c_ushort, VARTYPE)
_VariantChangeType.restype = HRESULT

_VariantClear = _oleaut32.VariantClear
_VariantClear.argtypes = (POINTER(VARIANT),)
_VariantClear.restype = HRESULT

_VariantCopy = _oleaut32.VariantCopy
_VariantCopy.argtypes = POINTER(VARIANT), POINTER(VARIANT)
_VariantCopy.restype = HRESULT

_VariantCopyInd = _oleaut32.VariantCopyInd
_VariantCopyInd.argtypes = POINTER(VARIANT), POINTER(VARIANT)
_VariantCopyInd.restype = HRESULT

# some commonly used VARIANT instances
VARIANT.null = VARIANT(None)
Expand Down

0 comments on commit 5cfc712

Please sign in to comment.