Skip to content

Instantly share code, notes, and snippets.

View syegulalp's full-sized avatar

Serdar Yegulalp syegulalp

View GitHub Profile
@syegulalp
syegulalp / winapp.py
Last active November 12, 2024 17:18 — forked from mouseroot/winapp.py
Win32 CreateWindow example in python
# Adapted for Python 3.6 + 64-bit Windows
from ctypes import *
from ctypes.wintypes import *
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM)
WS_EX_APPWINDOW = 0x40000
WS_OVERLAPPEDWINDOW = 0xcf0000
WS_CAPTION = 0xc00000