Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » SuppressUnmanag... » Rules   (RSS)

FAQ: How do I fix a violation of MovePInvokesToNativeMethodsClass?

MovePInvokesToNativeMethodsClass fires on P/Invokes (ie methods marked with DllImport) that are not members of one of the following classes; NativeMethods, SafeNativeMethods or UnsafeNativeMethods. For example, the following sample fires this warning.
 
Page view tracker