An endoprosthesis is proved which includes an elongate housing having a drive secured through a threaded drive shaft to an extension shaft therein, the drive operable to cause the extension shaft to move axially with respect to the body, and the extension shaft and housing configured to be securable to a bone to act as a prosthetic replacement for removed bone. An operating system for the endoprosthesis is also provided.