Skip to content

Commit

Permalink
Use POINTER(IID) instead of POINTER(GUID)
Browse files Browse the repository at this point in the history
This change nothing as IID=GUID, but it is just to make more obvious that we respect the documentation: https://learn.microsoft.com/en-us/windows/win32/api/dwrite/nf-dwrite-dwritecreatefactory
  • Loading branch information
moi15moi committed Dec 21, 2024
1 parent 0439168 commit 35c4f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions find_system_fonts_filename/windows/dwrite.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .gdi32 import LOGFONTW
from comtypes import GUID, HRESULT, IUnknown, STDMETHOD
from comtypes import GUID, HRESULT, IID, IUnknown, STDMETHOD
from ctypes import POINTER, windll, wintypes
from enum import IntEnum, IntFlag

Expand Down Expand Up @@ -347,4 +347,4 @@ def __init__(self) -> None:
# https://learn.microsoft.com/en-us/windows/win32/api/dwrite/nf-dwrite-dwritecreatefactory
self.DWriteCreateFactory = dwrite.DWriteCreateFactory
self.DWriteCreateFactory.restype = HRESULT
self.DWriteCreateFactory.argtypes = [wintypes.UINT, POINTER(GUID), POINTER(POINTER(IUnknown))]
self.DWriteCreateFactory.argtypes = [wintypes.UINT, POINTER(IID), POINTER(POINTER(IUnknown))]

0 comments on commit 35c4f98

Please sign in to comment.