The Past Perfect Continuous is formed by means of the auxiliary verb to be in the Past Perfect and Present Participle (Participle I) of the main verb.
The Past Perfect Continuous is used to express an action which began before a definite moment in the past, continued up to it and was or was not going on at that past moment.
With the verbs which have no continuous form the Past Perfect is used instead of the Past Perfect Continuous.