@api.check(<NUM_LIT:2>, "<STR_LIT>")<EOL>def win_set_state(title, flag=properties.SW_SHOW, **kwargs):
text = kwargs.get("<STR_LIT:text>", "<STR_LIT>")<EOL>ret = AUTO_IT.AU3_WinSetState(LPCWSTR(title), LPCWSTR(text), INT(flag))<EOL>return ret<EOL>
:param title:
:param flag: The "show" flag of the executed program:
    SW_HIDE = Hide window
    SW_SHOW = Shows a previously hidden window
    SW_MINIMIZE = Minimize window
    SW_MAXIMIZE = Maximize window
    SW_RESTORE = Undoes a window minimization or maximization
:param kwargs:
:return: