Skip to content

Instantly share code, notes, and snippets.

@tuttlem
Created November 26, 2012 12:18
Show Gist options
  • Save tuttlem/4147919 to your computer and use it in GitHub Desktop.
Save tuttlem/4147919 to your computer and use it in GitHub Desktop.
Simple Window - Create window
; create the window
invoke CreateWindowEx, WS_EX_OVERLAPPEDWINDOW,
ADDR szClassName,
ADDR szDisplayName,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, hInst, NULL
; save off the window handle
mov hWnd, eax
; show and update the window
invoke ShowWindow, hWnd, SW_SHOWNORMAL
invoke UpdateWindow, hWnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment