def SetClipboardText(text: str) -> bool:
if ctypes.windll.user32.OpenClipboard(<NUM_LIT:0>):<EOL><INDENT>ctypes.windll.user32.EmptyClipboard()<EOL>textByteLen = (len(text) + <NUM_LIT:1>) * <NUM_LIT:2><EOL>hClipboardData = ctypes.windll.kernel32.GlobalAlloc(<NUM_LIT:0>, textByteLen)  <EOL>hDestText = ctypes.windll.kernel32.GlobalLock(hClipboardData)<EOL>ctypes.cdll.msvcrt.wcsncpy(ctypes.c_wchar_p(hDestText), ctypes.c_wchar_p(text), textByteLen // <NUM_LIT:2>)<EOL>ctypes.windll.kernel32.GlobalUnlock(hClipboardData)<EOL>ctypes.windll.user32.SetClipboardData(<NUM_LIT>, hClipboardData)  <EOL>ctypes.windll.user32.CloseClipboard()<EOL>return True<EOL><DEDENT>return False<EOL>
Return bool, True if succeed otherwise False.