All pastes #153785 Raw Edit

Anonymous

public text v1 · immutable
#153785 ·published 2006-08-29 20:56 UTC
rendered paste body
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