Gilbert,
Gilbert wrote:Hi Barada,
I did more searching, specialy in XP registers, and find out that there is two places were available printers can be found:
More than 2 places, but there is some place where :
1 - There is not the information needed
2 - The datas are not upgraded (or deleted )
when i delete the printer driver.
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\system\CurrentControlSet\COntrol\Print\Printers
and
For two shared printers installed on a station running Windows 2000:
HKEY_CURRENT_USER\Printers\Connections
Seems that shared printers from 98 technologie are stored elsewhere than for NT technologie. Is it possible for you to confirm my findings ?
Yes, but have you tested my last upgrade off WinGetPrn() and others ?
There is more way where this function search.
Also discovered that under XP it is possible to retreive printers capabilities directly from the registers.
These capabilities are:
printBinNames Array of paper bins
printCollate Binary of collate type
printDuplexSupport Binary of type of duplex
printMaxResolutionSupported Binary of maximum resolution
printMediaSupported Array of paper sizes
printOrientationSupported Array of orientations
They can be found under:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\<PRINTERNAME>\DsDriver
and
For two shared printers installed on a station running Windows 2000:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\<SERVERNAME>\Printers<PRINTERNAME>\DsDriver
Is it also possible for you to confirm these findings ?
I have upgrade WinGetPrn() to retrieve with the key you give for 2000,
but for XP. The key for w98 is not complete for me. It stop to :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
In the later <SERVERNAME> can be anything depending on wich server we are attached to. Is it possible, from the register, to retreive the server to wich a station is attached to ?
This seem the case for the printers servers. I have put it in the upgrade,
in "Print system function" thread.
I also would like Antonio to get invole in this thread. It would be most helpfull.
Yes, he can perhaps help to translate binary data
into a clipper usable format. Or other, i don't know.