I have tried DllImport, But it seems more complicated than it needs to be. I was wondering if Assembl开发者_如何学Goy.Load would be easier?
.sys files are windows driver files and you cannot load them in a process neither in a unmanaged process nor in a managed process. sys files are loaded in kernel by registering them with service control manager. So basically you cannot load a sys file using C#, although you can start a service using C# and this service is a driver type service.
精彩评论