I want to know if there is anything harmful in this block of code
<code>import ctypes
window_title = "VALORANT "
# Search window
window_handle = ctypes.windll.user32.FindWindowW(None, window_title)
if window_handle == 0:
print("Valorant not found")
else:
# Change window properties
style = ctypes.windll.user32.GetWindowLongW(window_handle, ctypes.c_int(-16))
style = style & ~0x00800000 # WS_DLGFRAME removal
style = style & ~0x00040000 # WS_BORDER removal
ctypes.windll.user32.SetWindowLongW(window_handle, ctypes.c_int(-16), style)
# Maximize window
ctypes.windll.user32.ShowWindow(window_handle, ctypes.c_int(3)) # SW_MAXIMIZE
print("True stretched applied")
</code>
<code>import ctypes
window_title = "VALORANT "
# Search window
window_handle = ctypes.windll.user32.FindWindowW(None, window_title)
if window_handle == 0:
print("Valorant not found")
else:
# Change window properties
style = ctypes.windll.user32.GetWindowLongW(window_handle, ctypes.c_int(-16))
style = style & ~0x00800000 # WS_DLGFRAME removal
style = style & ~0x00040000 # WS_BORDER removal
ctypes.windll.user32.SetWindowLongW(window_handle, ctypes.c_int(-16), style)
# Maximize window
ctypes.windll.user32.ShowWindow(window_handle, ctypes.c_int(3)) # SW_MAXIMIZE
print("True stretched applied")
</code>
import ctypes
window_title = "VALORANT "
# Search window
window_handle = ctypes.windll.user32.FindWindowW(None, window_title)
if window_handle == 0:
print("Valorant not found")
else:
# Change window properties
style = ctypes.windll.user32.GetWindowLongW(window_handle, ctypes.c_int(-16))
style = style & ~0x00800000 # WS_DLGFRAME removal
style = style & ~0x00040000 # WS_BORDER removal
ctypes.windll.user32.SetWindowLongW(window_handle, ctypes.c_int(-16), style)
# Maximize window
ctypes.windll.user32.ShowWindow(window_handle, ctypes.c_int(3)) # SW_MAXIMIZE
print("True stretched applied")
just asking if the code is indeed a virus or not
New contributor
DarkAurora is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3