disable 4996 warnings, try capture specified window

ow