Change username of printjob

I am usingHow to call the EnumJobs function from a Visual Basic .NET application as a base for my solution. This article describes how to read properties of a print job.

I want to change the username (owner) of a printjob in a printqueue.

In the article a JOB_INFO_2 structure is created and loaded using pointers. You can then display the username etc. Now I want to change the username and load it back. So that the username of the printjob is really changed.

But I don't really know how to do this. I understand the article and I know I have to use the SetJob function. But I do not know how.

Who can help? Would be great if I could solve this with help from the community

[850 byte] By [PhilipWagenaar] at [2007-12-16]
# 1
Anyone?
PhilipWagenaar at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...