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

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????




LVL 2
dMaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
What driver is that, and how have you defined your driver's control codes?
0
dMaAuthor Commented:
what do you mean? ^^
driver's control coeds? :) tell me more about.
0
dMaAuthor 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....
0
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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

creates an error on start driver ERROR_DRIVER_BLOCKED
0
jkrCommented:
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?
0
dMaAuthor Commented:
yes i did, have the same damn error

creates an error on start driver ERROR_DRIVER_BLOCKED
0
jkrCommented:
What OS are you using?
0
dMaAuthor 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.
0
evilrixSenior Software Engineer (Avast)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.
0
dMaAuthor 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.
0
evilrixSenior Software Engineer (Avast)Commented:
DO these platforms have anything in common? For example, are they all the same OS and SP?
0
dMaAuthor 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)
0
jkrCommented:
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")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dMaAuthor 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.

0
jkrCommented:
Take you time ;o)
0
dMaAuthor 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?

0
dMaAuthor Commented:
hold on :) i found somthing.... need to test :) sorry
0
dMaAuthor Commented:
THX for BRILLIANT HELP AND PATIENCE
0
sreenivaschCommented:
I am also having same problem......
are you able to run the driver now???

0
sreenivaschCommented:
I am also having same problem......
are you able to run the driver now???
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.