how to get status info from win32_printer provider

device driver

    Sponsored Links

    Next

  • 1. Project properties for WDM driver, warning LNK4086 and ...
    Hello, I'm building a WDM driver, it works fine but I have some questions if all the things that I did were correct. First of all I'm not sure about properties of my project. - ex. I specified that it's a dll project in "Configuratio type" as a result I have this: "warning LNK4086: entrypoint '_DriverEntry@8' is not __stdcall with 12 bytes of arguments" - Another question: When I use a "Dependency Walker" my driver subsystem appears with WIN32 GUI and not "native" though I put in Project Propreties/linker/ system - "Not Set" In a word, help me to put correct properties for my driver What else I've gorgotten? Thanks a lot in advance Nina
  • 2. Change driver association for an USB component.
    Hello, We are using a USB component which is associated by default to "EMV driver". This driver is known not to work with this component. Is there a way to associate this component to another driver (in our case CCID) driver on the computer we are installing our soft ? These computers use Vista and XP (in cases there are different ways of doing it). Regards. -- Raphal.
  • 3. WDF DMA use
    Hi. I'm designing a device driver that interacts with a master PCI DSP. I have read the documentation regarding the DMA abstraction and have some questions. The way that the DMA will work is packet-based mode, and packets will be 4KByte. Packets will be allocated by a user mode process, and an MDL will be built to describe this packet. Although the packet size is equal to a page size (32 bit OS) it might be fragment to several locations on the physical memory. A scatter\gather list will hold the description of physical address per fragment. The questions are: 1. What is the size of the smallest fragment? Will it be a byte? 1a. Can I assume what will be the number of fregamnts for 4096 bytes packet (reminder - it was allocates in a user mode application)? 2. Can I set the number of fragments and size? 3. If I set the trasfer length to be 4096 bytes and my packet size is 4096 bytes will a transaction contain one transfer? 4. If the DSP interrupts when a trasfer is completed, however it interrupts in other occasions, can the driver tell the difference? Can I write some logic in the DPC (ISR of course cannot tell the difference) in order to destingwish between two "reasons" of DSP interrupt? 5. Will a 4096 bytes Thank you in advanced for your help!
  • 4. Microsoft MPIO install?
    Hi all, According to MS documentations, the MPIO for Windows 2003 should contain a generic DSM and it could work with certain arrays/JBOD for basic failover purpose. However, in no where I can find where to download this mysterious "MPIO" package. Is it already included in the OS? I was trying to use my pair of QLogic 2310F cards but when I pop up the Sansurfer management tool and attempt to configure the failover, it says that the 'failover driver is not installed'. This prompts me to think if the MPIO package is present at all. Regards, Ernest

how to get status info from win32_printer provider

Postby manu » Fri, 17 Feb 2006 14:24:05 GMT

HI all
by using  wmi client application  i am  accessing win32_printer
provider  but the problem is  ,  i am getting only few properties like
name of printer etc..  and all other properties it is showing empty  .
please suggest me how to get printer status  , do i need to write any
plug-in for unidrive or gpd minidrive in order to get status info from
printer.


how to get status info from win32_printer provider

Postby manu » Fri, 17 Feb 2006 14:27:10 GMT

HI all
by using  wmi client application  i am  accessing win32_printer
provider  but the problem is  ,  i am getting only few properties like
name of printer etc..  and all other properties it is showing empty  .
please suggest me how to get printer status  , do i need to write any
plug-in for unidrive or gpd minidrive in order to get status info from
printer.


Re: how to get status info from win32_printer provider

Postby Alan Morris [MSFT] » Sat, 18 Feb 2006 01:38:42 GMT

The status you get is from the spooler not the physical printer but the 
virtual printer within the spooler that send data to the real device.

You will only get status if the device supports a language monitor and 
reports this information to the spooler or you have the printer connected to 
a Standard TCP/IP Port

Printer status Printing
Printer status Warmup
Printer status Idle

So if the printer is local, you need a language monitor that reports status 
to the spooler.
-- 
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
 http://www.**--****.com/ ;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.








Similar Threads:

1.how to get status info from win32_printer provider

hi
For retriving the status instead of language monitor we have
implemented in port monitor . even then we are not getting status info
so can you help me how  and  what  i have to implement in order to
retrieve status info . 
thanks for your suggestions .

2.Unable to Read Printer Status info with ReadPrinter

Hello all,
	I am trying to read printer status information without writing a language or port monitor.
I have been trying to do this by using the ReadPrinter function.  So far, I have been unsuccessful.
Has anyone tried this, or know how to do it?  Thanks in advance.


3.obtaining info about memory status

Hi,

The kernel minidump of a certain crash on XP SP2 shows me that
NdisAllocateMemoryWithTag did not succeed to allocate memory (I ASSERT
in that case and this is the reason for the BSOD).

I tried to investigate the memory status using that dump:

When I used !poolfind I got - "pool tagging is likely disabled or you
have the wrong symbols" (I know the pool tagging is disabled on the
crashed target.)

When I used !vm I got a lot of messages "GetUlongFromAddress: unable to
read from XXXX" and
"Unable to get pool descriptor
	NonPagedPool Usage:        0 (         0 Kb)
	NonPagedPool Max:          0 (         0 Kb)"

My question is: using the dump I have is there anything else I can try
to obtain more information
about the memory consumption and status?

Thanks
Miki

4.Getting Device Status

In the Windows Device Manager, one can view a list of available
devices and their statuses, i.e. whether they are working properly,
driver info, etc.

I presume that an API must exist whereby I can inquire
programmatically this information via relatively simple high level
calls. Could anybody point me in the right direction for C/C++ coding
examples, etc.?

Thank you very much!

Tom

5.SCSI reservation conflict status gets eaten!

All:  (repost since my original message in win32.programmer.kernel got zero 
response)

I'm trying to add SCSI reserve/release (using both simple and Persistent 
Reserve) to our product, and have run into a problem that seems to only show 
up on my Windows systems:

When I issue a command using pass-through direct to a tape drive that has 
been reserved by a different host:

DeviceIoControl((HANDLE)cdi_info->path.handle,
		IOCTL_SCSI_PASS_THROUGH_DIRECT,	buffer,
		sizeof (SCSI_PASS_THROUGH_DIRECT), buffer,
		sizeof (buffer), &nb, FALSE);

returns FALSE, and GetLastError() returns 0x45d (1117) which maps to 
ERROR_IO_DEVICE.  

The big problem is that the SCSI status in the SCSI_PASS_THROUGH_DIRECT 
structure gets set to zero - not the expected 0x18 or anything else that I 
could map onto "reservation conflict"

I've tried with both HP LTO and LTO-2 drives, Quantum SDLT600, using several 
LSI and Adaptec SCSI HBAs.    (Windows HBA set to SCSI ID 8, 2nd system is 
linux with LSI HBA - it  correctly returns the reservation conflict status.)

Is this a known issue with win2k (which I'm using here)?  Also appears on 
win2k3.
Thanks
-- 
chejlava/Legato

-- 
chejlava/Legato

6. Problems getting the 1394 ROM configuration info

7. How NDC gets the status of an interface??

8. help getting started - How do I read BIOS info from WinPE



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 7 guest