This is a very scholarly work dealing with the complexities and analysis of Grammar, with a special section devoted to Gerunds, participles, and infinitive phrases. If you want to read the entire work, it is online. A link to the entire chapter follows.
This section is on determining if an -ing word is a gerund or a participle. One clear difference between a gerund and a participle is that the gerund has a subject (a participle does not), and this subject should be expressed in the possessive case.
I dislike my best friend('s) violating my privacy.
Unfortunately, if the verbal form is passive, the object becomes the subject, which poses some difficulties for this grammarian.
I dislike my privacy being violated by my friend.
He argues the structure (freind violating) can be read as a participle fused with the noun (this is the fused-participle theory) the-violation-by-a-friend.
He then goes on to argue the this fused participle theory versus the gerund theory.
Then he makes some statements of his opinion on the topic. In preparation, he states 1) The decision cannot be taken from historical analysis, since both forms may have been developed and used. 2) Careful writers avoid the "fused participle", so there are no examples to be found of this construction, and slovenly writers ignore the problem and make grammatical mistakes.
etc. etc. etc.
http://www.bartleby.com/116/212.html