typedef struct _Notify { int cls; int * pNotifier; uint32 dwMask; void * pData; } Notify; typedef struct _DeviceNotify { uint16 wParam; uint32 dwParam; } DeviceNotify; DeviceNotify *notiP; Notify * pNotify; pNotify->cls = 1; pNotify->dwMask = 0x0023; pNotify->pData = notiP; pNotify->pNotifier = 0; pNotify->st = 0; notiP->wParam = FALSE; notiP->dwParam = &(int *)pNotify; <- problem how do i cast pNotify to dwParam