Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help, multiple projects solution . Pin
OriginalGriff22-Dec-09 23:47
mveOriginalGriff22-Dec-09 23:47 
AnswerRe: Help, multiple projects solution . Pin
#realJSOP23-Dec-09 0:22
mve#realJSOP23-Dec-09 0:22 
QuestionHow do I remove the default support URL from my custom EventLog entry? Pin
MatthysDT22-Dec-09 21:49
MatthysDT22-Dec-09 21:49 
QuestionPolynomial finder Pin
frommi22-Dec-09 21:33
frommi22-Dec-09 21:33 
AnswerRe: Polynomial finder Pin
OriginalGriff22-Dec-09 22:11
mveOriginalGriff22-Dec-09 22:11 
QuestionFont and Size setting in Datagridview Pin
M Riaz Bashir22-Dec-09 20:54
M Riaz Bashir22-Dec-09 20:54 
AnswerRe: Font and Size setting in Datagridview Pin
MatthysDT22-Dec-09 22:27
MatthysDT22-Dec-09 22:27 
QuestionAccess Kernel-Mode dll Pin
AB_dev22-Dec-09 20:45
AB_dev22-Dec-09 20:45 
Hi,

we build a kernel mode dll which we want to access via C#! The kernel mode dll is called "sample.sys" and is an export driver. I tried to access the export (functions) with the dllimport statement from C#.

[DllImport("Sample.sys",
            CharSet = CharSet.Auto,
            CallingConvention = CallingConvention.Winapi)]
        public static extern uint FindAll();



The definition from the dll and the function in the testing project ("FindAll") are the same. I also tried with the complete path to the export driver. The "Sample.sys" is located in the running directory of the C# testing assembly.

I always get a AccessViolationException ("attempt to read or write protected memory")

Does anybody know how to access this functions from C#?
AnswerRe: Access Kernel-Mode dll Pin
Roger Wright22-Dec-09 21:09
professionalRoger Wright22-Dec-09 21:09 
GeneralRe: Access Kernel-Mode dll Pin
AB_dev22-Dec-09 21:15
AB_dev22-Dec-09 21:15 
Questionno rounds Pin
Kenny Chen22-Dec-09 20:40
Kenny Chen22-Dec-09 20:40 
AnswerRe: no rounds Pin
#realJSOP23-Dec-09 0:25
mve#realJSOP23-Dec-09 0:25 
AnswerRe: no rounds Pin
Jordon4Kraftd23-Dec-09 13:09
Jordon4Kraftd23-Dec-09 13:09 
AnswerRe: no rounds Pin
Kenny Chen23-Dec-09 14:37
Kenny Chen23-Dec-09 14:37 
QuestionCheckbox & CheckedChanged event... really? Pin
BDJones22-Dec-09 14:00
BDJones22-Dec-09 14:00 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
Luc Pattyn22-Dec-09 15:22
sitebuilderLuc Pattyn22-Dec-09 15:22 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:33
BDJones23-Dec-09 4:33 
AnswerRe: Checkbox & CheckedChanged event... really? Pin
J4amieC22-Dec-09 21:38
J4amieC22-Dec-09 21:38 
GeneralRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 4:32
BDJones23-Dec-09 4:32 
QuestionRe: Checkbox & CheckedChanged event... really? Pin
BDJones23-Dec-09 5:25
BDJones23-Dec-09 5:25 
QuestionAdd Object to RichTextBox Pin
dataminers22-Dec-09 13:04
dataminers22-Dec-09 13:04 
AnswerRe: Add Object to RichTextBox Pin
Eddy Vluggen22-Dec-09 13:36
professionalEddy Vluggen22-Dec-09 13:36 
QuestionVisual Studio doesn't detect invalid parameter type errors? Pin
Xargo22-Dec-09 12:07
Xargo22-Dec-09 12:07 
AnswerRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 0:30
mve#realJSOP23-Dec-09 0:30 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo23-Dec-09 2:50
Xargo23-Dec-09 2:50 

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.