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.
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.