Skip to content

Instantly share code, notes, and snippets.

@ChadSki
ChadSki / winapp.py
Created April 7, 2017 08:11 — forked from mouseroot/winapp.py
Win32 CreateWindow example in python
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