What Vijayon is talking about I really can't guess.
Global structures and global variables are one and the same
or at least of the same generic route.
WindowProcedure is a a callback funtion, you use lParam amd wParm
to transport variables with the additional facility of HIWORD and LOWORD .
Both of you need to delve into win32 system services!