def CreatePattern(patternId: int, pattern: ctypes.POINTER(comtypes.IUnknown)):
    """Create a concreate pattern by pattern id and pattern(POINTER(IUnknown))."""
    subPattern = pattern.QueryInterface(GetPatternIdInterface(patternId))
    if subPattern:
        return PatternConstructors[patternId](pattern=subPattern)
def CreatePattern(patternId: int, pattern: ctypes.POINTER(comtypes.IUnknown)):
    """Create a concreate pattern by pattern id and pattern(POINTER(IUnknown))."""
    subPattern = pattern.QueryInterface(GetPatternIdInterface(patternId))
    if subPattern:
        return PatternConstructors[patternId](pattern=subPattern)
def CreatePattern ( patternId : int , pattern : ctypes . POINTER ( comtypes . IUnknown ) ) : subPattern = pattern . QueryInterface ( GetPatternIdInterface ( patternId ) ) if subPattern : return PatternConstructors [ patternId ] ( pattern = subPattern )
Create a concreate pattern by pattern id and pattern(POINTER(IUnknown)).
Create a concreate pattern by pattern id and pattern ( POINTER ( IUnknown )) .