Click here to Skip to main content
15,914,014 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: HP Printer problem. Pin
Albert Holguin14-Nov-11 4:09
professionalAlbert Holguin14-Nov-11 4:09 
GeneralRe: HP Printer problem. Pin
Erudite_Eric14-Nov-11 5:47
Erudite_Eric14-Nov-11 5:47 
AnswerRe: HP Printer problem. Pin
Erudite_Eric13-Nov-11 21:14
Erudite_Eric13-Nov-11 21:14 
GeneralRe: HP Printer problem. Pin
Dalek Dave13-Nov-11 21:18
professionalDalek Dave13-Nov-11 21:18 
GeneralRe: HP Printer problem. Pin
Erudite_Eric13-Nov-11 22:55
Erudite_Eric13-Nov-11 22:55 
GeneralRe: HP Printer problem. Pin
Dalek Dave14-Nov-11 10:09
professionalDalek Dave14-Nov-11 10:09 
GeneralRe: HP Printer problem. Pin
Erudite_Eric14-Nov-11 21:16
Erudite_Eric14-Nov-11 21:16 
QuestionHow to raise IRQL using KeRaiseIrql Pin
Member 774763531-Oct-11 1:53
Member 774763531-Oct-11 1:53 
Hi!

I am currently learning how to write drivers and in an example the code was supposed to raise the IRQL of all CPUs to DISPATCH_LEVEL but I keep getting BSOD with the error IRQL_NOT_LESS_OR_EQUAL

Out of curiosity, I tried changing the level of IRQL and if I changed it to APC_LEVEL, I still get a BSOD but I no longer see the IRQL_NOT_LESS_OR_EQUAL message.

The code below is not complete, I just posted some parts of the code which I think might be responsible for the BSOD.

KIRQL ChangeIRQL()
{
  // some code
  if (currentirql < DISPATCH_LEVEL)
  {
    KeRaiseIrql(DISPATCH_LEVEL, &previousirql);
  }
  return (previousirql);
}

PKDPC LockCPU()
{
  //some code
  if(KeGetCurrentIrql() != DISPATCH_LEVEL)
  {
    return NULL;
  }

  //some code
}

NTSTATUS DriverEntry(IN PDRIVER_OBJECT ptrDriverObject, IN PUNICODE_STRING registryPath)
{
  //some code
  irql = ChangeIRQL();
  dpcPtr = LockCPU();
  //some code
}

AnswerRe: How to raise IRQL using KeRaiseIrql Pin
Erudite_Eric11-Nov-11 23:51
Erudite_Eric11-Nov-11 23:51 
AnswerRe: How to raise IRQL using KeRaiseIrql Pin
Erudite_Eric30-Nov-11 7:28
Erudite_Eric30-Nov-11 7:28 
GeneralRe: How to raise IRQL using KeRaiseIrql Pin
Member 77476353-Dec-11 19:43
Member 77476353-Dec-11 19:43 
QuestionWindows as Domain and Linux as Proxy Pin
Jassim Rahma24-Oct-11 8:10
Jassim Rahma24-Oct-11 8:10 
AnswerRe: Windows as Domain and Linux as Proxy Pin
Michael Martin25-Oct-11 1:26
professionalMichael Martin25-Oct-11 1:26 
QuestionDebian Linux on Windows Server 2008 Pin
Jassim Rahma19-Oct-11 1:53
Jassim Rahma19-Oct-11 1:53 
AnswerRe: Debian Linux on Windows Server 2008 Pin
Dave Kreskowiak19-Oct-11 2:09
mveDave Kreskowiak19-Oct-11 2:09 
AnswerRe: Debian Linux on Windows Server 2008 Pin
Bernhard Hiller19-Oct-11 4:15
Bernhard Hiller19-Oct-11 4:15 
GeneralRe: Debian Linux on Windows Server 2008 Pin
Dave Kreskowiak19-Oct-11 5:09
mveDave Kreskowiak19-Oct-11 5:09 
QuestionRe: Debian Linux on Windows Server 2008 Pin
Albert Holguin19-Oct-11 5:24
professionalAlbert Holguin19-Oct-11 5:24 
AnswerRe: Debian Linux on Windows Server 2008 Pin
Bernhard Hiller19-Oct-11 20:30
Bernhard Hiller19-Oct-11 20:30 
GeneralRe: Debian Linux on Windows Server 2008 Pin
Albert Holguin20-Oct-11 4:36
professionalAlbert Holguin20-Oct-11 4:36 
AnswerRe: Debian Linux on Windows Server 2008 Pin
Michael Martin25-Oct-11 1:22
professionalMichael Martin25-Oct-11 1:22 
QuestionOne monitor with two systems. Pin
CodingLover6-Oct-11 19:13
CodingLover6-Oct-11 19:13 
AnswerRe: One monitor with two systems. Pin
Peter_in_27806-Oct-11 19:23
professionalPeter_in_27806-Oct-11 19:23 
GeneralRe: One monitor with two systems. Pin
CodingLover6-Oct-11 20:29
CodingLover6-Oct-11 20:29 
GeneralRe: One monitor with two systems. Pin
Bernhard Hiller6-Oct-11 20:56
Bernhard Hiller6-Oct-11 20:56 

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.