You can't prevent my leaving.
You can't prevent me from leaving.
I want to prevent his getting sick.
I want to prevent him from getting sick.
This campaign is designed to prevent drowning.
Preventing stealing is our main goal this year.
We are working to prevent forest fires.
This vaccine will prevent malaria.
from可用可不用。使用from,则句型为主谓宾+介词短语作状语(现代语法称这个介词短语为动词的补足语)。
不用from,则句型为主谓宾结构,动名词复合结构作宾语。动名词的逻辑主语为代词时,正式语体用所有格表示,非正式语体用宾格表示。