Most of the Win32 API is accessible through managed abstractions. Otherwise, declare the ones you need using DllImport.
LoadLibraryreally should only be used where you have provided alternative functions, that is, your application can work even without this specific API function. If an API function is critical, using it DllImportwill allow the loader to worry about whether the function exists or not.
source
share