Click here to Skip to main content
15,899,937 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
Dave Kreskowiak22-Dec-09 3:37
mveDave Kreskowiak22-Dec-09 3:37 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
AB_dev22-Dec-09 3:46
AB_dev22-Dec-09 3:46 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
Dave Kreskowiak22-Dec-09 4:46
mveDave Kreskowiak22-Dec-09 4:46 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
AB_dev22-Dec-09 4:54
AB_dev22-Dec-09 4:54 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
Dave Kreskowiak22-Dec-09 7:03
mveDave Kreskowiak22-Dec-09 7:03 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
fat_boy14-Jan-10 5:43
fat_boy14-Jan-10 5:43 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
Dave Kreskowiak14-Jan-10 12:56
mveDave Kreskowiak14-Jan-10 12:56 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
Eric Seipp30-Dec-09 2:01
Eric Seipp30-Dec-09 2:01 
Well, if you are still interested / have not found out yourself yet...

you definitely can NOT call functions exported from a driver from within a
C# app / dll directly. This doesn't work because the C#-application is running
in user-mode (a cpu mode for user applications that e.g. doesn't allow you to
shut down the machine etc.) and the driver whose methods you are trying to call,
is running in kernel mode. I don't know how much experience you actually have
with programming kernel mode drivers please don't get me wrong if you know it already,
but you can accomplish what you need to by sending IOCTLs (IO control codes) to your
driver from the c# application / dll. (This works by calling Win32 API DeviceIoControl()...
you can easily look up the signature for this one in the SDK documentation)

And for the export driver ... you'd better use a normal driver, load and start it or let it be
loaded and started by the OS to send IOCTLs to it afterwards.

But for now, have some nice days,
whish a good new year, Eric
GeneralYou can not call methods exported by a driver form c# directly, but there are ways... Pin
Eric Seipp30-Dec-09 2:05
Eric Seipp30-Dec-09 2:05 
GeneralRe: How to access a Kernel-Mode dll from C# Pin
fat_boy14-Jan-10 5:42
fat_boy14-Jan-10 5:42 
AnswerRe: How to access a Kernel-Mode dll from C# Pin
Richard MacCutchan22-Dec-09 10:52
mveRichard MacCutchan22-Dec-09 10:52 
AnswerRe: How to access a Kernel-Mode dll from C# Pin
Dimitri Witkowski28-Dec-09 10:51
Dimitri Witkowski28-Dec-09 10:51 
AnswerRe: How to access a Kernel-Mode dll from C# Pin
fat_boy14-Jan-10 5:41
fat_boy14-Jan-10 5:41 
QuestionResistive vs. capactive touch screens Pin
Ray Cassick20-Dec-09 7:26
Ray Cassick20-Dec-09 7:26 
QuestionLaptop touchpad problem Pin
David Crow17-Dec-09 4:37
David Crow17-Dec-09 4:37 
AnswerRe: Laptop touchpad problem Pin
Richard MacCutchan19-Dec-09 4:01
mveRichard MacCutchan19-Dec-09 4:01 
QuestionUnique Serial Number of an SD (Secure Digital) Memory Card Pin
Gaurav Dudeja India14-Dec-09 0:27
Gaurav Dudeja India14-Dec-09 0:27 
Answercross-post !! Re: Unique Serial Number of an SD (Secure Digital) Memory Card Pin
Garth J Lancaster14-Dec-09 1:56
professionalGarth J Lancaster14-Dec-09 1:56 
QuestionProblem with RAID controller on Dell PowerEdge 4600 [modified] Pin
T210213-Dec-09 19:20
T210213-Dec-09 19:20 
AnswerRe: Problem with RAID controller on Dell PowerEdge 4600 Pin
Garth J Lancaster13-Dec-09 20:25
professionalGarth J Lancaster13-Dec-09 20:25 
GeneralRe: Problem with RAID controller on Dell PowerEdge 4600 [modified] Pin
T210213-Dec-09 20:45
T210213-Dec-09 20:45 
GeneralRe: Problem with RAID controller on Dell PowerEdge 4600 Pin
Jörgen Andersson13-Dec-09 22:04
professionalJörgen Andersson13-Dec-09 22:04 
GeneralRe: Problem with RAID controller on Dell PowerEdge 4600 Pin
Garth J Lancaster14-Dec-09 2:14
professionalGarth J Lancaster14-Dec-09 2:14 
QuestionHow to toggle USB power line Pin
dybs13-Dec-09 14:40
dybs13-Dec-09 14:40 
AnswerRe: How to toggle USB power line [modified] Pin
Indivara20-Dec-09 3:38
professionalIndivara20-Dec-09 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.