PostEvent. Use INT_PTR not int for cookies.