MahApps/MahApps.Metro — pull request #60 by leeter (2012-03-29 01:40:13+00:00)
Title: Moved P/Invokes to UnsafeNativeMethods class for performance fix

Moved P/Invokes to UnsafeNativeMethods class to prevent the stack walk on each P/Invoke.
Added annotations to the P/Invokes to cut down on marshaling overhead and increase performance
Made all P/Invokes and the UnsafeNativeMethods class internal for security reasons.
Made sure all P/Invokes are using unicode character set to prevent mixed marshaling which would destroy performance.

I am concerned however about the calls to LoadString, these should be thoroughly security reviewed