is there a better way for me to initialize retPoint in the code below? My original code did not have two point structs but it crashed do to a null refreance when it ran. Why?

Code:
		void CursorPos(System::Drawing::Point *lpPoint){
			POINT iPoint;
			LPPOINT retPoint = &iPoint;
			GetCursorPos(retPoint);
			lpPoint->X=retPoint->x;
			lpPoint->Y=retPoint->y;
		}