Added a few useful pinvokes