I believe (but as I stated in an earlier post, I'm not a C++ programmer) that it will work as you want, because if you look inside your items.xml file you can find this at AOL.
Code:
<attribute key="preventLoss" value="1"/>
which I believe is the preventItem we use inside the source code. I'm not entirely sure though. ; )