I have tried DllImport, But it seems more complicated than it needs to be. I was wondering if Assembly.Load would be easier?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.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.