Is there a way to debug the classpnp and disk samples in ddk?

Hi, guys
    I’m wondering how to debug the classpnp and disk samples in ddk. I found that there’s no inf files or install guide in classpnp soure directory, and only an inf file in disk source directory. But both of the two drivers exist in the system. So I thought if I replace the two drivers with mine I will be able to debug them. But both of the two drivers were protected by the operating system. I was not able to replace them. Is there a way to debug the two drivers? Any help is appreciated. Thanks.

This feels more like something for the hardware-heads over in NTDEV, but
I’ll take a stab

If these guys are things which are already installed, then I’d try one of:

  1. redirecting the ImagePath in the registry key (remembering that most of
    the filesystem isn’t there for START=0)
  2. Booting into safe mode
  3. kdfiles (if START >= 1).

I know that (1) works for NTFS so I know of no reasonw hy it wouldn’t work
for a hardware driver, but I start to itch when the IRQL goes above APC…

"光凯 å¼ " wrote in message news:xxxxx@ntfsd…
Hi, guys
I’m wondering how to debug the classpnp and disk samples in ddk. I found
that there’s no inf files or install guide in classpnp soure directory, and
only an inf file in disk source directory. But both of the two drivers exist
in the system. So I thought if I replace the two drivers with mine I will be
able to debug them. But both of the two drivers were protected by the
operating system. I was not able to replace them. Is there a way to debug
the two drivers? Any help is appreciated. Thanks.

>them. But both of the two drivers were protected by the operating system.

Use ImagePath value to point to MyDisk.sys or MyClassPnP.sys


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

There is a way to programtically disable windows file protection for some period and then you can copy the file and do the debug. Just google  
SfcFileException.
Lijun


From: 光凯 张
To: Windows File Systems Devs Interest List
Sent: Tue, March 9, 2010 2:46:31 AM
Subject: [ntfsd] Is there a way to debug the classpnp and disk samples in ddk?

Hi, guys
I’m wondering how to debug the classpnp and disk samples in ddk. I found that there’s no inf files or install guide in classpnp soure directory, and only an inf file in disk source directory. But both of the two drivers exist in the system. So I thought if I replace the two drivers with mine I will be able to debug them. But both of the two drivers were protected by the operating system. I was not able to replace them. Is there a way to debug the two drivers? Any help is appreciated. Thanks.




NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

That only works prior to Vista. For Vista and later all you need to do is
take ownership of the file and provide a new ACL that gives you sufficient
access to overwrite the file.

I still prefer the ImagePath trick since in my mind it is easier to undo and
just feels cleaner.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Lijun Wang” wrote in message news:xxxxx@ntfsd…
There is a way to programtically disable windows file protection for some
period and then you can copy the file and do the debug. Just google
SfcFileException.

Lijun

From: 光凯 å¼
To: Windows File Systems Devs Interest List
Sent: Tue, March 9, 2010 2:46:31 AM
Subject: [ntfsd] Is there a way to debug the classpnp and disk samples in
ddk?

Hi, guys
I’m wondering how to debug the classpnp and disk samples in ddk. I found
that there’s no inf files or install guide in classpnp soure directory, and
only an inf file in disk source directory. But both of the two drivers exist
in the system. So I thought if I replace the two drivers with mine I will be
able to debug them. But both of the two drivers were protected by the
operating system. I was not able to replace them. Is there a way to debug
the two drivers? Any help is appreciated. Thanks.


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Good to know. Thanks.


From: Scott Noone
To: Windows File Systems Devs Interest List
Sent: Tue, March 9, 2010 11:34:06 AM
Subject: Re:[ntfsd] Is there a way to debug the classpnp and disk samples in ddk?

That only works prior to Vista. For Vista and later all you need to do is take ownership of the file and provide a new ACL that gives you sufficient access to overwrite the file.

I still prefer the ImagePath trick since in my mind it is easier to undo and just feels cleaner.

-scott

– Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Lijun Wang” wrote in message news:xxxxx@ntfsd…
There is a way to programtically disable windows file protection for some period and then you can copy the file and do the debug. Just google
SfcFileException.

Lijun

From: 光凯 张
To: Windows File Systems Devs Interest List
Sent: Tue, March 9, 2010 2:46:31 AM
Subject: [ntfsd] Is there a way to debug the classpnp and disk samples in ddk?

Hi, guys
I’m wondering how to debug the classpnp and disk samples in ddk. I found that there’s no inf files or install guide in classpnp soure directory, and only an inf file in disk source directory. But both of the two drivers exist in the system. So I thought if I replace the two drivers with mine I will be able to debug them. But both of the two drivers were protected by the operating system. I was not able to replace them. Is there a way to debug the two drivers? Any help is appreciated. Thanks.


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit: http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer