Search code examples
c++winapipywin32

How to get all the IPs(or username) from server of the clients connected to a shared print object?


How to get all the IPs(or username) from server of the clients connected to a shared print object?

Any help towards this direction would be great...Thank You.. Need help in Win 32 ...


Solution

  • Please check Print Spooler API patriculary EnumJobs function.

    Also check FindFirstPrinterChangeNotification function. You can create notification object for jobs and that way monitor who submited the job & what is printed on that printer.