windows registry

how to write a program to get all enteries in regedit,my problem is tht when a printer is attached to usb port it will create some entries in regedit
if a printer is connected wht are the changes made in the entries of regedit,if it is not connected wht are the entries in regedit .

i want to know what are the entries made in regedit,if printer is connected
can any one help me

I’m not familiar with how windows handles printers internally, but the
sysinterals app RegMon combined with the api
RegNotifyChangeKeyValue could be a starting point for whatever it is
your looking to achieve.

xxxxx@gmail.com wrote:

how to write a program to get all enteries in regedit,my problem is tht when a printer is attached to usb port it will create some entries in regedit
if a printer is connected wht are the changes made in the entries of regedit,if it is not connected wht are the entries in regedit .

i want to know what are the entries made in regedit,if printer is connected
can any one help me


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

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

thanks for ur reply ,can u tell me the code u get all the entries in the regedit

I may have posted on this; I don’t recall. It’s hard to say as there
are none of the previous posts included. Either way, I’m not sure what
you are asking? Are you asking how to enumerate all registry entries
from kernel mode? The basic outline is this. ZwEnumerateKey() on
\Registry\Machine and \Registry\User, with ZwEnumerateKey() and
ZwEnumerateKeyValue() on each returned key from the first
ZwEnumerateKey(). Close each key with ZwClose(). If you’re asking from
how to do this from user mode, you’ve got the wrong list. In either
case, this is all documented.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Friday, June 22, 2007 05:33
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] windows registry

thanks for ur reply ,can u tell me the code u get all the entries in the
regedit


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

>ZwEnumerateKeyValue()

ZwEnumerateValueKey is the correct name.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Indeed.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Friday, June 22, 2007 10:29
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] windows registry

ZwEnumerateKeyValue()

ZwEnumerateValueKey is the correct name.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

xxxxx@gmail.com wrote:

thanks for ur reply ,can u tell me the code u get all the entries in the regedit

No, because as I said, I remain convinced that you trying to solve the
wrong problem. You THINK you need to create a devnode to allow remote
printing. I have already told you that’s not the right way to do remote
printing. Unless you can tell us what you are REALLY trying to do, and
why the standard system printer sharing is not the right answer, any
advice we give you is just going to lead you further down a dead-end road.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.