Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


pGetDefPrtInf(2) under Windows NT

Keywords: 	 pGetDefPrtInf(2)

Question:

I'm using pGetDefPrtInf(2) and under Win95/98, it correctly returns the driver name, but under NT it only returns "winspool".

Answer:

pGetDefPrtInf(2) reads the WIN.INI file and returns the DEVICE= line, the second comma-delimited entry on that line, which in the case of NT is "winspool".

The driver information doesn't appear to be stored in the registry either. I poked around at an NT 4.0 machine for a while, searching for the printer driver name and was not able to come up with anything terribly useful. It all seems mapped to some kind of WinSpool,xxxx kind of affair, but then the tracks seem to fade away.


Article ID:   W14436
Filename:   pGetDefPrtInf 2 under WinNT.txt