Re: checking printer
- From: "Yuriy Shkolnikov [MSFT]" <yuriys@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jan 2006 15:10:24 -0800
Try reading this
http://www.computerperformance.co.uk/Logon/logon_enumprinterconnections.htm
and also about this API
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_9fjn.asp
--
Regards,
Yuriy
This posting is provided "AS IS" with no warranties, and confers no rights.
"Alan Gillott" <agillott@xxxxxxxxxxxxx> wrote in message
news:%23u8Mk%23OHGHA.3000@xxxxxxxxxxxxxxxxxxxxxxx
> I have a printer attached to a network print server which periodically
> decides to go offline. yes i know why and the manufacturer(s) are being
> particularly unhelpful, but I want to try to detct it's offlinedness
> programattically. The WSH network object is singularly useless as it
> enumerates all printers but leaves no clue as to their status.
>
> I've wondered about the Shell application object: going to the Printers
> folder and enumerating that and maybe that will let me access the folder2
> object's offline status (though that's really intended for offline file
> management) but I don't want to go down that path unless there's a chance
of
> success. Coding those objects is painful as they are grossly
underdocumented
> and I haven't the patience to play trial and error for a day only to find
it
> doesn't work.
>
> Any other thoughts...
>
> Thanks
>
>
.
- Follow-Ups:
- Re: checking printer
- From: Alan Gillott
- Re: checking printer
- References:
- checking printer
- From: Alan Gillott
- checking printer
- Prev by Date: Re: Script to Check Remote Machines' GPO?
- Next by Date: Re: WshShell.Popup limitations of 2nd argument (time in seconds)
- Previous by thread: checking printer
- Next by thread: Re: checking printer
- Index(es):
Relevant Pages
|