static LRESULT CALLBACK WindowProc(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
{

}

int main(..)
{
HWND wnd1 = CreateWindowExW(...);

here how will i get wnd value (define in Winproc)in this line, e.g. just after CreateWindowExW statement execute.

}