typedef UINT_PTR WPARAM;
typedef LONG_PTR LPARAM;
typedef LONG_PTR LRESULT;



What actually there are?

LPARAM & LRESULT. Can i cast of point them to a class object?


For example,
in a WndProc, and inside a switch case (maybe WM_CREATE), can I cast LRESULT to point to a RECT myrect and use it as return tp the WndProc


LRESULT CALLBACK WndProc (...)
{

.....
swith(Msg){
case WM_CREATE:
.....
return lresult;
break;
....
}
return :efWindowProc(hwnd, iMsg, wParam, lParam);
}





then in somehere else WndProc (a child window), i can do this to retrieve the pointer to the myrect such as

Rect rect = SendMessage(hwndparent, WM_CREATE, null, null);



It is possible? How do i cast it?