开发者

What is the best way to load a .sys file in C#?

开发者 https://www.devze.com 2023-03-28 04:25 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消