Definition:
The Past Perfect Progressive is used for actions that were unfinished when another action, etc, took place:
I had been living there for years before I got married.
Some books use the term Past Perfect Progressive, and others use Past Perfect Continuous.
Formation: