Hi ,
in the code below :-
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
)
{
MYDRIVERENTRY(DRIVER_DEVICE_NAME,
FILE_DEVICE_HOOKSYS,
HookServices());
DbgPrint(“in DriverEntry” );
return ntStatus;
}
“in driver” entry is never printed
can anybody tell me why?
MYDRIVERENTRY is a macro defined in undoc.h which is
taken from the CD of Undocumented Windows NT.
Thanks,
Harshal
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
I am not sure whats in the macro,
but if there is a return statement in the macro,
the DbgPrint will not be executed.
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com]On Behalf Of Rock Is Dead
>Sent: Tuesday, July 03, 2001 4:51 PM
>To: NT Developers Interest List
>Subject: [ntdev] DriverEntry
>
>
>Hi ,
>
>in the code below :-
>
>NTSTATUS
>DriverEntry(
> IN PDRIVER_OBJECT DriverObject,
> IN PUNICODE_STRING RegistryPath
> )
>{
>
> MYDRIVERENTRY(DRIVER_DEVICE_NAME,
> FILE_DEVICE_HOOKSYS,
> HookServices());
>
> DbgPrint(“in DriverEntry” );
>
> return ntStatus;
>}
>
>
>“in driver” entry is never printed
>can anybody tell me why?
>MYDRIVERENTRY is a macro defined in undoc.h which is
>taken from the CD of Undocumented Windows NT.
>
>Thanks,
>Harshal
>
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/
>
>—
>You are currently subscribed to ntdev as: xxxxx@wipro.com
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
I had a sneaky suspicion about this, and was right.
The MYDRIVERENTRY macro has “return” in it, so it should be the last
item in your driver entry.
Rob Linegar
Software Engineer
Data Encryption Systems Limited
-----Original Message-----
From: Rock Is Dead [mailto:xxxxx@yahoo.com]
Sent: 03 July 2001 12:21
To: NT Developers Interest List
Subject: [ntdev] DriverEntry
Hi ,
in the code below :-
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
)
{
MYDRIVERENTRY(DRIVER_DEVICE_NAME,
FILE_DEVICE_HOOKSYS,
HookServices());
DbgPrint(“in DriverEntry” );
return ntStatus;
}
“in driver” entry is never printed
can anybody tell me why?
MYDRIVERENTRY is a macro defined in undoc.h which is
taken from the CD of Undocumented Windows NT.
Thanks,
Harshal
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Might the macro have a return in it?
-----Original Message-----
From: Rock Is Dead [mailto:xxxxx@yahoo.com]
Sent: 03 July 2001 12:21
To: NT Developers Interest List
Subject: [ntdev] DriverEntry
Hi ,
in the code below :-
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
)
{
MYDRIVERENTRY(DRIVER_DEVICE_NAME,
FILE_DEVICE_HOOKSYS,
HookServices());
DbgPrint(“in DriverEntry” );
return ntStatus;
}
“in driver” entry is never printed
can anybody tell me why?
MYDRIVERENTRY is a macro defined in undoc.h which is
taken from the CD of Undocumented Windows NT.
Thanks,
Harshal
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
You are currently subscribed to ntdev as: xxxxx@eicon.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hello,
MYDRIVERENTRY has return statement at the end of it.
So, code following the macro will not be executed at
all.
Also, note that, unless some code prints “\n” using
DbgPrint following your DbgPrint, softice will not
show it in debugger window.
-Prasad
— Rock Is Dead wrote:
> Hi ,
>
> in the code below :-
>
> NTSTATUS
> DriverEntry(
> IN PDRIVER_OBJECT DriverObject,
> IN PUNICODE_STRING RegistryPath
> )
> {
>
> MYDRIVERENTRY(DRIVER_DEVICE_NAME,
> FILE_DEVICE_HOOKSYS,
> HookServices());
>
> DbgPrint(“in DriverEntry” );
>
> return ntStatus;
> }
>
>
> “in driver” entry is never printed
> can anybody tell me why?
> MYDRIVERENTRY is a macro defined in undoc.h which is
> taken from the CD of Undocumented Windows NT.
>
> Thanks,
> Harshal
>
>
>
>
>
>
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
=====
Prasad S. Dabak
Chief Software Architect
Ensim India Private Limited
http://www.ensim.com
Co-author of the book “Undocumented Windows NT”
ISBN 0764545698
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Because the macro itself returns the status and exits Driver entry.
-----Original Message-----
From: Rock Is Dead [mailto:xxxxx@yahoo.com]
Sent: Tuesday, July 03, 2001 4:21 AM
To: NT Developers Interest List
Subject: [ntdev] DriverEntry
Hi ,
in the code below :-
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
)
{
MYDRIVERENTRY(DRIVER_DEVICE_NAME,
FILE_DEVICE_HOOKSYS,
HookServices());
DbgPrint(“in DriverEntry” );
return ntStatus;
}
“in driver” entry is never printed
can anybody tell me why?
MYDRIVERENTRY is a macro defined in undoc.h which is
taken from the CD of Undocumented Windows NT.
Thanks,
Harshal
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
You are currently subscribed to ntdev as: xxxxx@greenborder.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com