Importing dll's and unmanaged code is bad for performance.
Also, you have to describe what your program needs access to (for security reasons). You can set your program to use some isolated storage space, for example. But you can't use those features if they are in unmanaged code (-> api's).
Have you used FxCop from gotdotnet? It analyses the code and gives suggestions to improve it.