We help IT Professionals succeed at work.

Problems with driver (DDK) This driver has been blocked from loading

dMa
dMa asked
on
Medium Priority
8,166 Views
Last Modified: 2013-11-17
hi experts,

it's my first time i try to develop an driver for windows xp.
iv downloaded the DDK (www.microsoft.com/ddk/) for windows read all information
found a simple example and build than.

the source is simple:

#include "ntddk.h"

VOID OnUnload( IN PDRIVER_OBJECT DriverObject )
{
      DbgPrint("Unload driver \n");
}

NTSTATUS DriverEntry(IN PDRIVER_OBJECT theDriverObject,IN PUNICODE_STRING theRegistryPath)
{
      DbgPrint("Driver Loaded \n ");

      theDriverObject->DriverUnload  = OnUnload;
      return STATUS_SUCCESS;
}

have ofcourse the
SOURCE

TARGETNAME=myfirstdriver
TARGETPATH=OBJ
TARGETTYPE=DRIVER
SOURCES=halloworld.c

and the MAKEFILE

#
# DO NOT EDIT THIS FILE!!!  Edit .\sources. if you want to add a new source
# file to this component.  This file merely indirects to the real make file
# that is shared by all the driver components of the Windows NT DDK
#

!INCLUDE $(NTMAKEENV)\makefile.def

all takes from example

as i actually told i build the driver without problems.

Install Driver successed...
Start Driver i get :
                                      1275        ERROR_DRIVER_BLOCKED = This driver has been blocked from loading

the funny think is  the compiled driver works on some maschiens!.... only not on this i have to develop on :(.......
any ideas why? or maybe who is blocking the driver and why????




Comment
Watch Question

jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
What driver is that, and how have you defined your driver's control codes?
dMa

Author

Commented:
what do you mean? ^^
driver's control coeds? :) tell me more about.
dMa

Author

Commented:
Thats my first try to code a driver i compile it with the DDK.
and thats all the sources i have.
i don't know much about dev. driver as i told is my first try....
dMa

Author

Commented:
this simple tut:
http://www.catch22.net/tuts/kernel1.asp

creates an error on start driver ERROR_DRIVER_BLOCKED
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
Have you tried the binary hello.sys that comes with http://www.catch22.net/tuts/zips/hello_drv.zip ? Also, how are you loading the driver?
dMa

Author

Commented:
yes i did, have the same damn error

creates an error on start driver ERROR_DRIVER_BLOCKED
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
What OS are you using?
dMa

Author

Commented:
Develp on windows XP, 64.

but i tested it on different windows and as i told of one of the win xp 32 bit there was no problem. but just on one.
evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT

Commented:
Do drivers on x64 need to be signed before they can work? I remember reading something about this but I can't remember the exact details.
dMa

Author

Commented:
no not really. not in check build mode, otherwise there will be no possiblity to develop a driver, if you have to sign every test build.... i don#T think so.

the next point is the compiled driver works on some machiens.......
and i can't find the reason why it's dosn't work on my maschiens... ffs.
evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT

Commented:
DO these platforms have anything in common? For example, are they all the same OS and SP?
dMa

Author

Commented:
thats the point. the platforms i used for develop and for testing are windows version 2002 (sp2)
and the one i could start it on was a different one.

is it the reason ... i can't belive..
what kind of windows version do you have? (system properties)
CERTIFIED EXPERT
Top Expert 2012
Commented:
I was afraid that it is x64. See http://msdn2.microsoft.com/en-us/library/aa906265.aspx ("Signing Drivers During Development and Test (Windows Server 2003, Windows XP, and Windows 2000)") and http://msdn2.microsoft.com/en-us/library/aa906257.aspx ("Driver Signing Tools")
dMa

Author

Commented:
jkr, right now i'm changing the development environment to windows32, you know reinstall all the tools takes time, when i'm done i try it on the 32 bit maschien and also on 64bit in virtual pc. if it works i'm gonna give you the points. but i need 1 day to accomplish all the installation tasks.

jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
Take you time ;o)
dMa

Author

Commented:
ok now i have the Windows XP32 SP 2 with latest updates.
installed WDK 6000 with is prupose from michrosoft windws.

"Windows Server 2003, Windows XP, and Windows 2000 do not require a driver to be signed during the early development and test phase of a driver prior to the final testing of a release signed driver. In addition, a system administrator can set the driver signing option in Device Manager such that Plug and Play (PnP) device installation installs unsigned drivers without user interaction. A system administrator can set the driver signing option to Ignore, Warn, or Block, as follows:" you post..

i changed from warn to ignore.

no driversign right now ... and still do not work....

blocked on start .... ???? it was not 64 bit systm......
should i test with the driver sign? or is't a quite different problem?

dMa

Author

Commented:
hold on :) i found somthing.... need to test :) sorry
dMa

Author

Commented:
THX for BRILLIANT HELP AND PATIENCE
I am also having same problem......
are you able to run the driver now???

I am also having same problem......
are you able to run the driver now???