win7 registry has changed for default printer & driver data

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

win7 registry has changed for default printer & driver data

Post by diana »

hello

were in the process of migrating from WinXP to Win7.

Custom code exists to obtain the users default printer, and specifics about the printer driver. as there is mix of printer hardware vendors and drivers with n the firm.

The code uses the registry keys
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\" & printServer & "\Printers\" & printName"

under winXP this works fine. the printer queue name displays as eg
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\MELFP\Printers\MEL002

it appears under win7 Microsoft have changed registry keys. The printer queue name has now changed to a hex-character eg
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Providers\Servers\MELFP\Printers\{7B81CA5D-702E-415E-B803-E112DFA2CBE6}

The default printer can be obtained under HKEY_CURRENT_USER however doesnt display the printer driver data I require.
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device\


questions:
is there another registry key location that displays the users default printer queue name with the printer data
as in win XP
any other suggestions?


see screen attachments

thank you

dd
You do not have the required permissions to view the files attached to this post.

User avatar
Claude
cheese lizard
Posts: 6241
Joined: 16 Jan 2010, 00:14
Location: Sydney Australia

Re: win7 registry has changed for default printer & driver d

Post by Claude »

Have you tried searching the registry for your default printer name ?
Cheers, Claude.

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

Re: win7 registry has changed for default printer & driver d

Post by diana »

yes...still searching...still Finding....