c#调用API
初学C#,觉得API可以让它功能更一步提高,请问大家C#怎么调用API呢,最好有比较好的教程
------解决方案--------------------[DllImport( "kernel32.dll
", SetLastError = true, CharSet = CharSet.Auto)]
static extern bool SetupDiSetClassInstallParams(IntPtr DeviceInfoSet, ref SP_DEVINFO_DATA DeviceInfoData, ref SP_CLASSINSTALL_HEADER ClassInstallParams, int ClassInstallParamsSize);