C#支持加载设备驱动程序吗? [英] Is C# support load device driver?
问题描述
我写了一个简单的虚拟设备驱动程序int15.sys,是否C#支持从AP加载
设备驱动程序?
I wrote a simple virtual device driver int15.sys, Is C# support load the
device driver from AP?
推荐答案
Steve写道:
Steve wrote:
我写了一个简单的虚拟设备驱动程序int15.sys,C#支持从AP加载
设备驱动程序吗?
I wrote a simple virtual device driver int15.sys, Is C# support load the
device driver from AP?
操作系统使用的驱动程序(Windows)?那么你打算如何使用这个
的驱动程序?
Frans。
-
获取LLBLGen Pro,.NET的高效O / R映射: http://www.llblgen .com
我的.NET博客: http:/ /weblogs.asp.net/fbouma
Microsoft C#MVP
Aren''t drivers used by the OS (windows) ? So how did you plan to use this
driver?
Frans.
--
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
不,你可以直接与他们交互,而不是DeviceIOControl API 。我过去已经这样写过了win32不支持的物理磁盘区域。
所以我想能够与设备驱动程序进行交互C#你必须P / Invoke到DeviceIOControl
问候
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/< xn***************@msnews.microsoft.com>
史蒂夫写道:
Nope, yoou can interact directly with them vice the DeviceIOControl API. I''ve done this in the past to write to area of the physical disk that win32 doesn''t support.
So I guess to be able to interact with a device driver from C# you''d have to P/Invoke to DeviceIOControl
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<xn***************@msnews.microsoft.com>
Steve wrote:
我写了一个简单的虚拟设备驱动程序int15.sys,是C#支持从AP加载
设备驱动程序?
I wrote a simple virtual device driver int15.sys, Is C# support load the
device driver from AP?
操作系统使用的驱动程序(Windows)?那么你打算如何使用这个
的驱动程序?
Frans。
-
获取LLBLGen Pro,.NET的高效O / R映射: http://www.llblgen .com
我的.NET博客: http:/ /weblogs.asp.net/fbouma
Microsoft C#MVP
---
收到的邮件已通过认证无病毒。
由AVG反病毒系统检查( http:// www.grisoft.com)。
版本:6.0.766 /病毒库:513 - 发布日期:17/09/2004
[microsoft.public.dotnet.languages.csharp]
Aren''t drivers used by the OS (windows) ? So how did you plan to use this
driver?
Frans.
--
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
[microsoft.public.dotnet.languages.csharp]
是的,你是对的,我加载设备驱动程序后,我可以使用DeviceIOControl,我
写了一个虚拟设备驱动程序,int15h.sys,
这个设备驱动程序的目的是为BIOS提供一个接口t15h,我们
还修改BIOS int15h,支持
无线/蓝牙电源开/关,AP通过虚拟设备驱动,可以供电
打开/关闭PC系统无线/蓝牙。
我需要在使用DeviceIOControl之前加载int15h.sys,在C ++中,我发现了一些
API
int SCManager = OpenSCManager(null,null,SC_MANAGER_ALL_ACCESS);
GetServiceName(Path,Driver,DeviceName);
int dwStatus = DriverInstall(SCManager,路径,驱动程序);
int dwStatus1 = DriverStart(SCManager,驱动程序);
可以加载驱动程序,我的问题是可以C#支持加载设备驱动程序吗?
" Richard Blewett [DevelopMentor]"写道:
Yes, you are right, after I load device driver, I can use DeviceIOControl, I
wrote a virtual device driver, int15h.sys,
the purpose of this device driver is provide a interface to BIOS int15h, we
also modify the BIOS int15h, support
wireless/bluetooth power on/off, AP through virtual device driver, can power
on/off PC system wireless/bluetooth.
I need to load int15h.sys before I use DeviceIOControl, in C++, I found some
API
int SCManager = OpenSCManager(null, null, SC_MANAGER_ALL_ACCESS);
GetServiceName(Path, Driver, DeviceName);
int dwStatus = DriverInstall(SCManager, Path, Driver);
int dwStatus1 = DriverStart(SCManager, Driver);
can load the driver, my question is "Can C# support load device driver?"
"Richard Blewett [DevelopMentor]" wrote:
不,你可以直接与他们互动,而不是DeviceIOControl API。我过去已经这样写过了win32不支持的物理磁盘区域。
所以我想能够与C#中的设备驱动程序进行交互。 d必须P / Invoke到DeviceIOControl
问候
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft。 public.dotnet.languages.csharp /< xn *************** @ msnews.microsoft.com>
Steve写道:
Nope, yoou can interact directly with them vice the DeviceIOControl API. I''ve done this in the past to write to area of the physical disk that win32 doesn''t support.
So I guess to be able to interact with a device driver from C# you''d have to P/Invoke to DeviceIOControl
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<xn***************@msnews.microsoft.com>
Steve wrote:
>我写了一个简单的虚拟设备驱动程序int15.sys,是C#支持加载
>来自AP的设备驱动程序?
> I wrote a simple virtual device driver int15.sys, Is C# support load the
> device driver from AP?
操作系统使用的驱动程序(Windows)?那么你打算如何使用这个
驱动程序?
Frans。
-
获取LLBLGen Pro,.NET的高效O / R映射: http://www.llblgen.com
我的.NET博客:< a rel =nofollowhref =http://weblogs.asp.net/fboumatarget =_ blank> http://weblogs.asp.net/fbouma
Microsoft C#MVP
---
收到的邮件经过无病毒认证。
由AVG反病毒系统检查( http://www.grisoft.com)。
版本:6.0.766 /病毒库:513 - 发布日期:17/09/2004
[microsoft.public.dotnet.languages.csharp]
Aren''t drivers used by the OS (windows) ? So how did you plan to use this
driver?
Frans.
--
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
[microsoft.public.dotnet.languages.csharp]
这篇关于C#支持加载设备驱动程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!