Print job and domain name

R

Rasmus W

Hi NG



I'm using the spool API to retrieve the user name of the user who has
printed a job my homemade port monitor. Currently I'm using JOB_INFO_2. Here
I've got MachineName and UserName. With that I use the API call
LookupAccountName() to get the domain name.

With many domains the LookupAccountName() can take a very long time,
depending on how the trusts between the domain are setup.



Is there another way to retrieve the domain name of the user who printed the
job?



Platforms: WinXP, Win2000 and Win2003

Programming language: C++ (VC6)

Posted in: microsoft.public.win2000.developer and microsoft.public.win2000.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top