Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Get username from printmonitor

Reply
Thread Tools Display Modes

Get username from printmonitor

 
 
Brad
Guest
Posts: n/a

 
      08-19-2010
Hi All,

I have developed a print monitor, that seems to be working correctly.

How can I get the username of the person that has printed the document?

The StartDocPort function passes a DOC_INFO_1/2/3 structure, but this only
has document name.

Must I query the spooler? How? Document name may not be unique.

 
Reply With Quote
 
 
 
 
Roberto Agostino
Guest
Posts: n/a

 
      08-22-2010
I was searching for the same answer about a log of a net-printer of HP. The
request was how can I go back up the sender of a printer-job, when the
printer and the users are in the same intranet ?

Thank for any answer.

Rob


"Brad" <brad@work> ha scritto nel messaggio
news:...
> Hi All,
>
> I have developed a print monitor, that seems to be working correctly.
>
> How can I get the username of the person that has printed the document?
>
> The StartDocPort function passes a DOC_INFO_1/2/3 structure, but this only
> has document name.
>
> Must I query the spooler? How? Document name may not be unique.



 
Reply With Quote
 
Brad
Guest
Posts: n/a

 
      08-23-2010
I was having a bit of a blonde moment, the StartDocPort does pass JobID too.

Which I can then use with GetJob to retrieve a JOB_INFO_1(or 2) which has
the Username in it.



"Brad" <brad@work> wrote in message
news:...
> Hi All,
>
> I have developed a print monitor, that seems to be working correctly.
>
> How can I get the username of the person that has printed the document?
>
> The StartDocPort function passes a DOC_INFO_1/2/3 structure, but this only
> has document name.
>
> Must I query the spooler? How? Document name may not be unique.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only access my Vista machine with my old, original username Mark Iverson Windows Vista Administration 3 08-17-2007 07:37 PM
Username and Domain are greyed out MGBloomfield ActiveSync 4 03-29-2007 05:30 PM
Vista logon using numeric username? mattmsudawg Windows Vista Administration 0 06-15-2006 09:59 PM
Vista logon using numeric username? mdyoung Windows Vista Administration 0 06-15-2006 09:59 PM
Vista logon using numeric username? mattmsudawg Windows Vista Administration 0 06-15-2006 09:58 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59