mapping windows client coordinate to object coordinate

i want to convert the mouse coordinates ie: client coordinates when the mouse is dragged with Left button down to object coordinates
please help
i have tried gluProject and gluUnProject but not understanding it properly
help plz

What exactly do you not understand?

gluProject maps object coordinates to window coordinates

gluUnProject maps window coordinates to object coordinates

I believe you want gluUnProject.