|computer A has to have both a wired and wireless connection. You bridge or internet connection sharing between the wired and wireless interfaces on computer a.|
You have to create a ad-hoc wireless connection between A and B
So google ad-hoc wireless how to
and internet connection sharing how to.